mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
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
This commit is contained in:
parent
e4e0aea644
commit
d218b5c33a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue