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
4511f7ac
Commit
4511f7ac
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
SSL_get_verify_result() returns a long, so we receive the result in a long
and not an int.
parent
b9f76f11
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/ssluse.c
+8
-5
8 additions, 5 deletions
lib/ssluse.c
with
8 additions
and
5 deletions
lib/ssluse.c
+
8
−
5
View file @
4511f7ac
...
...
@@ -1078,6 +1078,7 @@ Curl_SSLConnect(struct connectdata *conn,
#ifdef USE_SSLEAY
struct
SessionHandle
*
data
=
conn
->
data
;
int
err
;
long
lerr
;
int
what
;
char
*
str
;
SSL_METHOD
*
req_method
;
...
...
@@ -1440,18 +1441,20 @@ Curl_SSLConnect(struct connectdata *conn,
/* We could do all sorts of certificate verification stuff here before
deallocating the certificate. */
err
=
data
->
set
.
ssl
.
certverifyresult
=
SSL_get_verify_result
(
connssl
->
handle
);
lerr
=
data
->
set
.
ssl
.
certverifyresult
=
SSL_get_verify_result
(
connssl
->
handle
);
if
(
data
->
set
.
ssl
.
certverifyresult
!=
X509_V_OK
)
{
if
(
data
->
set
.
ssl
.
verifypeer
)
{
/* We probably never reach this, because SSL_connect() will fail
and we return earlyer if verifypeer is set? */
failf
(
data
,
"SSL certificate verify result: %s (%d)"
,
X509_verify_cert_error_string
(
err
),
err
);
failf
(
data
,
"SSL certificate verify result: %s (%
l
d)"
,
X509_verify_cert_error_string
(
l
err
),
l
err
);
retcode
=
CURLE_SSL_PEER_CERTIFICATE
;
}
else
infof
(
data
,
"SSL certificate verify result: %s (%d), continuing anyway.
\n
"
,
X509_verify_cert_error_string
(
err
),
err
);
infof
(
data
,
"SSL certificate verify result: %s (%ld),"
" continuing anyway.
\n
"
,
X509_verify_cert_error_string
(
err
),
lerr
);
}
else
infof
(
data
,
"SSL certificate verify ok.
\n
"
);
...
...
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