[Commits] Rev 4347: improve OpenSSL error reporting in lp:~maria-captains/maria/5.5

Sergei Golubchik serg at mariadb.org
Tue Nov 11 21:04:10 EET 2014


At lp:~maria-captains/maria/5.5

------------------------------------------------------------
revno: 4347
revision-id: sergii at pisem.net-20141111190410-g76u6f6wt6vorc57
parent: sergii at pisem.net-20141110181739-qdtdu9rnyo0i81og
committer: Sergei Golubchik <sergii at pisem.net>
branch nick: 5.5
timestamp: Tue 2014-11-11 20:04:10 +0100
message:
  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"
=== modified file 'vio/viossl.c'
--- a/vio/viossl.c	2014-03-17 12:04:28 +0000
+++ b/vio/viossl.c	2014-11-11 19:04:10 +0000
@@ -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



More information about the commits mailing list