diff --git a/libmariadb/secure/openssl.c b/libmariadb/secure/openssl.c index 6f87410e..9192d4ed 100644 --- a/libmariadb/secure/openssl.c +++ b/libmariadb/secure/openssl.c @@ -354,7 +354,10 @@ static int ma_tls_set_certs(MYSQL *mysql, SSL_CTX *ctx) if ((mysql->options.ssl_cipher && 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) goto error; }