Skip to content

Commit 00eb5bf

Browse files
0xAXvaintroub
authored andcommitted
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
1 parent f51e5e4 commit 00eb5bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysys_ssl/openssl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ int check_openssl_compatibility()
6161
return 1;
6262

6363
alloc_size= alloc_count= 0;
64-
md5_ctx= EVP_MD_CTX_create();
65-
EVP_MD_CTX_destroy(md5_ctx);
64+
md5_ctx= EVP_MD_CTX_new();
65+
EVP_MD_CTX_free(md5_ctx);
6666
if (alloc_count != 1 || !alloc_size || alloc_size > EVP_MD_CTX_SIZE)
6767
return 1;
6868

0 commit comments

Comments
 (0)