summaryrefslogtreecommitdiff
path: root/mysys_ssl
diff options
context:
space:
mode:
Diffstat (limited to 'mysys_ssl')
-rw-r--r--mysys_ssl/openssl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mysys_ssl/openssl.c b/mysys_ssl/openssl.c
index a11db113b14..b38d4ba309c 100644
--- a/mysys_ssl/openssl.c
+++ b/mysys_ssl/openssl.c
@@ -32,7 +32,9 @@ int check_openssl_compatibility()
#else
#include <openssl/evp.h>
#include <ssl_compat.h>
-static uint testing, alloc_size, alloc_count;
+
+static uint testing;
+size_t alloc_size, alloc_count;
static void *coc_malloc(size_t size, const char *f __attribute__((unused)),
int l __attribute__((unused)))
@@ -61,8 +63,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;