summaryrefslogtreecommitdiff
path: root/vio/viosslfactories.c
diff options
context:
space:
mode:
authorunknown <gluh@gluh.(none)>2002-11-05 12:05:58 +0400
committerunknown <gluh@gluh.(none)>2002-11-05 12:05:58 +0400
commit69a5dd196cc89c690b3531b75bb77f9c4a048b50 (patch)
treee27e1d7b216164535ab3100467fa0dea7d08a146 /vio/viosslfactories.c
parentf6b9a33fb67c9143bda91e2fbdef6272c6d2e209 (diff)
downloadmariadb-git-69a5dd196cc89c690b3531b75bb77f9c4a048b50.tar.gz
Error code for ssl connection
Fix bug when server hang(with SSL, with modified libmysql) Add options master-ssl-capath and master-ssl-cipher Add some error checking(SSL) include/errmsg.h: Error code for SSL connection include/violite.h: Change return value in sslaccept Remove unused variable open_ libmysql/errmsg.c: Add client side descriptive message when ssl handshake fail libmysql/libmysql.c: Add ssl error code Add proper error checking sql/mysqld.cc: Add options master-ssl-capath and master-ssl-cipher sql/sql_parse.cc: Add error checking after sslaccept vio/viossl.c: Add ssl handshake error cheking vio/viosslfactories.c: Change error description when using wrong key or certificate
Diffstat (limited to 'vio/viosslfactories.c')
-rw-r--r--vio/viosslfactories.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vio/viosslfactories.c b/vio/viosslfactories.c
index 9e7a1475951..31bc457d1ae 100644
--- a/vio/viosslfactories.c
+++ b/vio/viosslfactories.c
@@ -93,7 +93,10 @@ vio_set_cert_stuff(SSL_CTX *ctx, const char *cert_file, const char *key_file)
{
DBUG_PRINT("error",("unable to get certificate from '%s'\n",cert_file));
/* FIX stderr */
+ fprintf(stderr,"Error when connection to server using SSL:");
ERR_print_errors_fp(stderr);
+ fprintf(stderr,"Unable to get certificate from '%s'\n", cert_file);
+ fflush(stderr);
DBUG_RETURN(0);
}
if (key_file == NULL)
@@ -103,7 +106,10 @@ vio_set_cert_stuff(SSL_CTX *ctx, const char *cert_file, const char *key_file)
{
DBUG_PRINT("error", ("unable to get private key from '%s'\n",key_file));
/* FIX stderr */
+ fprintf(stderr,"Error when connection to server using SSL:");
ERR_print_errors_fp(stderr);
+ fprintf(stderr,"Unable to get private key from '%s'\n", cert_file);
+ fflush(stderr);
DBUG_RETURN(0);
}