1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +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

@@ -1535,6 +1535,27 @@ mysql_ssl_free(MYSQL *mysql __attribute__((unused)))
mysql->connector_fd = 0;
DBUG_VOID_RETURN;
}
/*
Return the SSL cipher (if any) used for current
connection to the server.
SYNOPSYS
mysql_get_ssl_cipher()
mysql pointer to the mysql connection
*/
const char * STDCALL
mysql_get_ssl_cipher(MYSQL *mysql)
{
DBUG_ENTER("mysql_get_ssl_cipher");
if (mysql->net.vio && mysql->net.vio->ssl_arg)
DBUG_RETURN(SSL_get_cipher_name((SSL*)mysql->net.vio->ssl_arg));
DBUG_RETURN(NULL);
}
#endif /* HAVE_OPENSSL */