1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Backport fix for mysql client not using SSl library directly

- Add function mysql_get_ssl_cipher
 - Use function mysql_get_ssl_cipher from mysql
This commit is contained in:
msvensson@neptunus.(none)
2006-04-22 00:48:13 +02:00
parent 26be6ababe
commit 29ace143a1
5 changed files with 26 additions and 3 deletions

View File

@@ -3235,10 +3235,9 @@ com_status(String *buffer __attribute__((unused)),
mysql_free_result(result);
}
#ifdef HAVE_OPENSSL
if (mysql.net.vio && mysql.net.vio->ssl_arg &&
SSL_get_cipher((SSL*) mysql.net.vio->ssl_arg))
if ((status= mysql_get_ssl_cipher(&mysql)))
tee_fprintf(stdout, "SSL:\t\t\tCipher in use is %s\n",
SSL_get_cipher((SSL*) mysql.net.vio->ssl_arg));
status);
else
#endif /* HAVE_OPENSSL */
tee_puts("SSL:\t\t\tNot in use", stdout);