Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jannik Hoelling
alpaca-libraries
Commits
35751270
Commit
35751270
authored
Sep 24, 2021
by
Jannik Hoelling
Browse files
mbedtls exitcodes
parent
714ceac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
mbedtls/client/client.c
View file @
35751270
...
...
@@ -196,8 +196,13 @@ cleanup:
if
(
ret
!=
0
)
{
char
error_buf
[
100
];
mbedtls_strerror
(
ret
,
error_buf
,
100
);
if
(
strstr
(
error_buf
,
"X509 - Certificate verification failed"
)
!=
NULL
)
{
ret
=
134
;
}
else
if
(
strstr
(
error_buf
,
"Processing of the ServerHello handshake message failed"
)
!=
NULL
)
{
ret
=
120
;
}
mbedtls_printf
(
"Last error was: %d - %s
\n
"
,
ret
,
error_buf
);
return
-
1
;
return
ret
;
}
return
0
;
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment