Skip to content

Commit

Permalink
mysql_ssl_set replaced with mysql_options
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Plugin authored and vaintroub committed Feb 19, 2024
1 parent 5cfaa10 commit 1edbba5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/drivers/mysql/drv_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,14 @@ static int mysql_drv_real_connect(db_mysql_conn_t *db_mysql_con)

if (args.use_ssl)
{
DEBUG("mysql_ssl_set(%p, \"%s\", \"%s\", \"%s\", NULL, \"%s\")", con,
DEBUG("mysql_options(%p, \"%s\", \"%s\", \"%s\", \"%s\")", con,
SAFESTR(args.ssl_key), SAFESTR(args.ssl_cert), SAFESTR(args.ssl_ca),
SAFESTR(args.ssl_cipher));

mysql_ssl_set(con, args.ssl_key, args.ssl_cert, args.ssl_ca, NULL,
args.ssl_cipher);
mysql_options(con, MYSQL_OPT_SSL_KEY, args.ssl_key);
mysql_options(con, MYSQL_OPT_SSL_CERT, args.ssl_cert);
mysql_options(con, MYSQL_OPT_SSL_CA, args.ssl_ca);
mysql_options(con, MYSQL_OPT_SSL_CIPHER, args.ssl_cipher);
}

if (args.use_compression)
Expand Down

0 comments on commit 1edbba5

Please sign in to comment.