Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
e221b55f
Commit
e221b55f
authored
11 years ago
by
Kamil Dudka
Browse files
Options
Downloads
Patches
Plain Diff
nss: make sure that 'sslver' is always initialized
parent
865666af
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/nss.c
+5
-4
5 additions, 4 deletions
lib/nss.c
with
5 additions
and
4 deletions
lib/nss.c
+
5
−
4
View file @
e221b55f
...
...
@@ -1191,13 +1191,10 @@ static CURLcode nss_init_sslver(SSLVersionRange *sslver,
switch
(
data
->
set
.
ssl
.
version
)
{
default:
case
CURL_SSLVERSION_DEFAULT
:
sslver
->
min
=
SSL_LIBRARY_VERSION_3_0
;
if
(
data
->
state
.
ssl_connect_retry
)
{
infof
(
data
,
"TLS disabled due to previous handshake failure
\n
"
);
sslver
->
max
=
SSL_LIBRARY_VERSION_3_0
;
}
else
sslver
->
max
=
SSL_LIBRARY_VERSION_TLS_1_0
;
return
CURLE_OK
;
case
CURL_SSLVERSION_TLSv1
:
...
...
@@ -1251,7 +1248,6 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
{
PRErrorCode
err
=
0
;
PRFileDesc
*
model
=
NULL
;
SSLVersionRange
sslver
;
PRBool
ssl_no_cache
;
PRBool
ssl_cbc_random_iv
;
struct
SessionHandle
*
data
=
conn
->
data
;
...
...
@@ -1263,6 +1259,11 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
long
time_left
;
PRUint32
timeout
;
SSLVersionRange
sslver
=
{
SSL_LIBRARY_VERSION_3_0
,
/* min */
SSL_LIBRARY_VERSION_TLS_1_0
/* max */
};
if
(
connssl
->
state
==
ssl_connection_complete
)
return
CURLE_OK
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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