summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-04-07 11:36:28 +0200
committerunknown <msvensson@neptunus.(none)>2006-04-07 11:36:28 +0200
commit2b8d552df52a1058a47f3f78e9bbbe94af0c4dd6 (patch)
tree14127faae0d147408d967bbfdb334e1fc8ee45d0 /sql-common
parent040fc2d335bc8dc83b403562cde3c6e2e89c0e6a (diff)
parent80eccf26cdd469440ac2fb47bf897df89f0ce8af (diff)
downloadmariadb-git-2b8d552df52a1058a47f3f78e9bbbe94af0c4dd6.tar.gz
Merge bk-internal:/home/bk/mysql-5.1-new
into neptunus.(none):/home/msvensson/mysql/mysql-5.1 sql-common/client.c: Auto merged
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index 84df31b7440..1303b26c325 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -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)
+ SSL_get_cipher_name((SSL*)mysql->net.vio->ssl_arg);
+ DBUG_RETURN(NULL);
+}
+
#endif /* HAVE_OPENSSL */