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

Sergei Golubchik serg at mariadb.org
Tue Nov 11 14:45:46 EET 2014


At lp:~maria-captains/maria/5.5

------------------------------------------------------------
revno: 4347
revision-id: sergii at pisem.net-20141111124545-njiqhn44zcyu9bcf
parent: sergii at pisem.net-20141110181739-qdtdu9rnyo0i81og
committer: Sergei Golubchik <sergii at pisem.net>
branch nick: 5.5
timestamp: Tue 2014-11-11 13:45:45 +0100
message:
  improve SSL 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 12:45:45 +0000
@@ -190,7 +190,7 @@ static int ssl_do(struct st_VioSSLFd *pt
   if ((r= connect_accept_func(ssl)) < 1)
   {
     DBUG_PRINT("error", ("SSL_connect/accept failure"));
-    *errptr= SSL_get_error(ssl, r);
+    *errptr= ERR_get_error();
     SSL_free(ssl);
     vio_blocking(vio, was_blocking, &unused);
     DBUG_RETURN(1);



More information about the commits mailing list