summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorkent@mysql.com <>2006-07-03 20:08:38 +0200
committerkent@mysql.com <>2006-07-03 20:08:38 +0200
commitcaa3fcf673198b4a7649ded6075c55d6c67d3bbe (patch)
treecfb095c8cfd4d574819baee6718864cc18fc8c20 /sql-common
parent4b6878e4b0896892a4eb44d6f5e8aab1c7d62c5c (diff)
downloadmariadb-git-caa3fcf673198b4a7649ded6075c55d6c67d3bbe.tar.gz
client.c:
Define 'mysql_get_ssl_cipher' even if no SSL built in, it is referenced in libmysql.def
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index 56a5862c90e..31e85475f08 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -1514,6 +1514,7 @@ mysql_ssl_set(MYSQL *mysql __attribute__((unused)) ,
*/
#ifdef HAVE_OPENSSL
+
static void
mysql_ssl_free(MYSQL *mysql __attribute__((unused)))
{
@@ -1538,6 +1539,7 @@ mysql_ssl_free(MYSQL *mysql __attribute__((unused)))
DBUG_VOID_RETURN;
}
+#endif /* HAVE_OPENSSL */
/*
Return the SSL cipher (if any) used for current
@@ -1553,8 +1555,10 @@ const char * STDCALL
mysql_get_ssl_cipher(MYSQL *mysql)
{
DBUG_ENTER("mysql_get_ssl_cipher");
+#ifdef HAVE_OPENSSL
if (mysql->net.vio && mysql->net.vio->ssl_arg)
DBUG_RETURN(SSL_get_cipher_name((SSL*)mysql->net.vio->ssl_arg));
+#endif /* HAVE_OPENSSL */
DBUG_RETURN(NULL);
}
@@ -1573,6 +1577,9 @@ mysql_get_ssl_cipher(MYSQL *mysql)
1 Failed to validate server
*/
+
+#ifdef HAVE_OPENSSL
+
static int ssl_verify_server_cert(Vio *vio, const char* server_hostname)
{
SSL *ssl;