From ee2216aa3f36d9a8472dfa9397a39a88dfb1256c Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Fri, 18 Sep 2020 09:25:08 +0200 Subject: [PATCH] Build fix for OpenSSL < 1.1 --- libmariadb/secure/openssl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }