Skip to content

RFC: Additional SSL error reporting in verbose mode.#179

Merged
rbsec merged 4 commits intorbsec:masterfrom
MarcT512:master
Jun 16, 2019
Merged

RFC: Additional SSL error reporting in verbose mode.#179
rbsec merged 4 commits intorbsec:masterfrom
MarcT512:master

Conversation

@MarcT512
Copy link
Contributor

@MarcT512 MarcT512 commented Jun 4, 2019

Add a function to convert SSL error codes to a string.
In addition, get the underlying error from OpenSSL and display it (when in verbose mode).

Before:
[...]
Accepted TLSv1.0 128 bits AES128-SHA
SSL_get_error(ssl, cipherStatus) said: 1

After:
[...]
Accepted TLSv1.0 128 bits AES128-SHA
SSL_get_error(ssl, cipherStatus) returned: 1 (SSL_ERROR_SSL)
[sslscan.c:testCipher@1584]:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

MarcT512 added 4 commits June 3, 2019 17:02
Fix use after free of ssl object. (rbsec#178)
Add a function to convert SSL error codes to a string.
In addition, get the underlying error from OpenSSL and display it.

Before:
[...]
Accepted  TLSv1.0  128 bits  AES128-SHA
SSL_get_error(ssl, cipherStatus) said: 1

After:
[...]
Accepted  TLSv1.0  128 bits  AES128-SHA
SSL_get_error(ssl, cipherStatus) returned: 1 (SSL_ERROR_SSL)
[sslscan.c:testCipher@1584]:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
RFC: Additional SSL error reporting in verbose mode.
@rbsec
Copy link
Owner

rbsec commented Jun 16, 2019

@MarcT512 thanks for this - it's certainly more useful to have the readable error codes for debugging (even if some of them aren't actually that useful). Bit awkward having the lookup table (there might be an OpenSSL header that we could include that has it?), but then some many things are awkward in OpenSSL....

~rbsec

@rbsec rbsec merged commit ab801b9 into rbsec:master Jun 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants