Commit c8fa6f78 authored by Sergei Golubchik's avatar Sergei Golubchik

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"
parent 302b50fa
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment