1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Build fix for OpenSSL < 1.1

This commit is contained in:
Georg Richter
2020-09-18 09:25:08 +02:00
parent 65cf891e49
commit ee2216aa3f

View File

@@ -354,7 +354,10 @@ static int ma_tls_set_certs(MYSQL *mysql, SSL_CTX *ctx)
if ((mysql->options.ssl_cipher && if ((mysql->options.ssl_cipher &&
mysql->options.ssl_cipher[0] != 0)) mysql->options.ssl_cipher[0] != 0))
{ {
if(SSL_CTX_set_ciphersuites(ctx, mysql->options.ssl_cipher) == 0 && if(
#ifdef HAVE_OPENSSL_1_1_API
SSL_CTX_set_ciphersuites(ctx, mysql->options.ssl_cipher) == 0 &&
#endif
SSL_CTX_set_cipher_list(ctx, mysql->options.ssl_cipher) == 0) SSL_CTX_set_cipher_list(ctx, mysql->options.ssl_cipher) == 0)
goto error; goto error;
} }