src: openssl 1.1 fix

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2017-07-07 21:55:40 +02:00
parent 20b50b7f21
commit 17f21f1bc3
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ CLEANUP:
#if OPENSSL_VERSION_NUMBER < 0x10100000L
EVP_CIPHER_CTX_cleanup(&ctx);
#else
EVP_CIPHER_CTX_cleanup(ctx);
EVP_CIPHER_CTX_free(ctx);
#endif
return 0;

View File

@ -130,7 +130,7 @@ int store_file(struct session_data *sdata, char *filename, int len, struct __con
#if OPENSSL_VERSION_NUMBER < 0x10100000L
EVP_CIPHER_CTX_cleanup(&ctx);
#else
EVP_CIPHER_CTX_cleanup(ctx);
EVP_CIPHER_CTX_free(ctx);
#endif
gettimeofday(&tv2, &tz);