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
d4ca1bc2
Unverified
Commit
d4ca1bc2
authored
6 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
wolfssl: add support for CRL
parent
babd55e2
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/vtls/cyassl.c
+13
-0
13 additions, 0 deletions
lib/vtls/cyassl.c
with
13 additions
and
0 deletions
lib/vtls/cyassl.c
+
13
−
0
View file @
d4ca1bc2
...
...
@@ -157,6 +157,7 @@ cyassl_connect_step1(struct connectdata *conn,
struct
ssl_connect_data
*
connssl
=
&
conn
->
ssl
[
sockindex
];
SSL_METHOD
*
req_method
=
NULL
;
curl_socket_t
sockfd
=
conn
->
sock
[
sockindex
];
const
char
*
const
ssl_crlfile
=
SSL_SET_OPTION
(
CRLfile
);
#ifdef HAVE_SNI
bool
sni
=
FALSE
;
#define use_sni(x) sni = (x)
...
...
@@ -403,6 +404,14 @@ cyassl_connect_step1(struct connectdata *conn,
return
CURLE_OUT_OF_MEMORY
;
}
if
(
ssl_crlfile
)
{
if
(
wolfSSL_LoadCRL
(
BACKEND
->
handle
,
ssl_crlfile
,
SSL_FILETYPE_PEM
,
0
)
!=
SSL_SUCCESS
)
{
failf
(
data
,
"Error reading CRL file %s"
,
ssl_crlfile
);
return
CURLE_SSL_CRL_BADFILE
;
}
}
#ifdef HAVE_ALPN
if
(
conn
->
bits
.
tls_enable_alpn
)
{
char
protocols
[
128
];
...
...
@@ -541,6 +550,10 @@ cyassl_connect_step2(struct connectdata *conn,
}
}
#endif
else
if
(
-
362
==
detail
)
{
/* CRL_MISSING */
failf
(
data
,
"CRL file missing!"
);
return
CURLE_SSL_CRL_BADFILE
;
}
else
{
failf
(
data
,
"SSL_connect failed with error %d: %s"
,
detail
,
ERR_error_string
(
detail
,
error_buffer
));
...
...
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