Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
82e9b78a
Commit
82e9b78a
authored
15 years ago
by
Kamil Dudka
Browse files
Options
Downloads
Patches
Plain Diff
nss: fix SSL handshake timeout underflow
parent
07f45946
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES
+3
-0
3 additions, 0 deletions
CHANGES
RELEASE-NOTES
+1
-0
1 addition, 0 deletions
RELEASE-NOTES
lib/nss.c
+9
-1
9 additions, 1 deletion
lib/nss.c
with
13 additions
and
1 deletion
CHANGES
+
3
−
0
View file @
82e9b78a
...
...
@@ -14,6 +14,9 @@ Kamil Dudka (24 Apr 2010)
- Fixed test536 in order to not fail with threaded DNS resolver and tweaked
comments in certain examples using curl_multi_fdset().
- Fixed SSL handshake timeout underflow in libcurl-NSS, which caused test405
to hang on a slow machine.
Daniel Stenberg (21 Apr 2010)
- The -O option caused curl to crash on windows and DOS due to the tool
writing out of boundary memory.
...
...
This diff is collapsed.
Click to expand it.
RELEASE-NOTES
+
1
−
0
View file @
82e9b78a
...
...
@@ -20,6 +20,7 @@ This release includes the following bugfixes:
o -J/--remote-header-name strips CRLF
o MSVC makefiles now use ws2_32.lib instead of wsock32.lib
o -O crash on windows
o SSL handshake timeout underflow in libcurl-NSS
This release includes the following known bugs:
...
...
This diff is collapsed.
Click to expand it.
lib/nss.c
+
9
−
1
View file @
82e9b78a
...
...
@@ -1025,6 +1025,7 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
int
curlerr
;
const
int
*
cipher_to_enable
;
PRSocketOptionData
sock_opt
;
long
time_left
;
PRUint32
timeout
;
curlerr
=
CURLE_SSL_CONNECT_ERROR
;
...
...
@@ -1302,8 +1303,15 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
SSL_SetURL
(
connssl
->
handle
,
conn
->
host
.
name
);
/* check timeout situation */
time_left
=
Curl_timeleft
(
conn
,
NULL
,
TRUE
);
if
(
time_left
<
0L
)
{
failf
(
data
,
"timed out before SSL handshake"
);
goto
error
;
}
timeout
=
PR_MillisecondsToInterval
((
PRUint32
)
time_left
);
/* Force the handshake now */
timeout
=
PR_MillisecondsToInterval
((
PRUint32
)
Curl_timeleft
(
conn
,
NULL
,
TRUE
));
if
(
SSL_ForceHandshakeWithTimeout
(
connssl
->
handle
,
timeout
)
!=
SECSuccess
)
{
if
(
conn
->
data
->
set
.
ssl
.
certverifyresult
==
SSL_ERROR_BAD_CERT_DOMAIN
)
curlerr
=
CURLE_PEER_FAILED_VERIFICATION
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment