mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 01:35:31 +02:00
improve OpenSSL error reporting
e.g. from "error:00000001:lib(0):func(0):reason(1)" to "error:140830B5:SSL routines:SSL3_CLIENT_HELLO:no ciphers available"
This commit is contained in:
parent
302b50fa30
commit
c8fa6f782c
1 changed files with 12 additions and 0 deletions
12
vio/viossl.c
12
vio/viossl.c
|
|
@ -26,6 +26,18 @@
|
|||
|
||||
#ifdef HAVE_OPENSSL
|
||||
|
||||
#ifndef HAVE_YASSL
|
||||
/*
|
||||
yassl seem to be different here, SSL_get_error() value can be
|
||||
directly passed to ERR_error_string(), and these errors don't go
|
||||
into ERR_get_error() stack.
|
||||
in openssl, apparently, SSL_get_error() values live in a different
|
||||
namespace, one needs to use ERR_get_error() as an argument
|
||||
for ERR_error_string().
|
||||
*/
|
||||
#define SSL_get_error(X,Y) ERR_get_error()
|
||||
#endif
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue