Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use ssl as libmysqlclient did
  • Loading branch information
vuvova committed Sep 7, 2016
1 parent 11a47c5 commit c87193a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libmariadb/mariadb_lib.c
Expand Up @@ -973,7 +973,9 @@ mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert,
const char *ca, const char *capath, const char *cipher)
{
#ifdef HAVE_TLS
return (mysql_optionsv(mysql, MYSQL_OPT_SSL_KEY, key) |
char enable= 1;
return (mysql_optionsv(mysql, MYSQL_OPT_SSL_ENFORCE, &enable) |
mysql_optionsv(mysql, MYSQL_OPT_SSL_KEY, key) |
mysql_optionsv(mysql, MYSQL_OPT_SSL_CERT, cert) |
mysql_optionsv(mysql, MYSQL_OPT_SSL_CA, ca) |
mysql_optionsv(mysql, MYSQL_OPT_SSL_CAPATH, capath) |
Expand Down

0 comments on commit c87193a

Please sign in to comment.