summaryrefslogtreecommitdiff
path: root/mysys_ssl
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2018-02-17 00:39:26 +0600
committerVladislav Vaintroub <wlad@mariadb.com>2018-05-21 16:34:10 +0000
commit00eb5bf3bb81b29e582a2f030735d40c6721900d (patch)
treec5ff122b193d828d99f4ccac24b6febbb13a5171 /mysys_ssl
parentf51e5e45574bc018b07e272b4d47fb0fd9296783 (diff)
downloadmariadb-git-00eb5bf3bb81b29e582a2f030735d40c6721900d.tar.gz
MDEV-15513 use EVP_MD_CTX_{new,free} instead of EVP_MD_CTX_{create, destroy}
for consistency with EVP_CIPHER_CTX_new() and EVP_CIPHER_CTX_free(). As the EVP_DIGESTINIT(3) man page says: EVP_MD_CTX_create() and EVP_MD_CTX_destroy() were renamed to EVP_MD_CTX_new() and EVP_MD_CTX_free() in OpenSSL 1.1. Closes #621
Diffstat (limited to 'mysys_ssl')
-rw-r--r--mysys_ssl/openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys_ssl/openssl.c b/mysys_ssl/openssl.c
index f3dc8f4277c..2cf37caccbb 100644
--- a/mysys_ssl/openssl.c
+++ b/mysys_ssl/openssl.c
@@ -61,8 +61,8 @@ int check_openssl_compatibility()
return 1;
alloc_size= alloc_count= 0;
- md5_ctx= EVP_MD_CTX_create();
- EVP_MD_CTX_destroy(md5_ctx);
+ md5_ctx= EVP_MD_CTX_new();
+ EVP_MD_CTX_free(md5_ctx);
if (alloc_count != 1 || !alloc_size || alloc_size > EVP_MD_CTX_SIZE)
return 1;