CipherImpl: Fix small error with OpenSSL 1.1

EVP_CIPHER_CTX_cleanup is deprecated in 1.1. Replaced by _reset.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2019-11-02 22:10:56 -07:00
parent 2471aa19d3
commit 8b0ea3b538

View File

@ -130,7 +130,7 @@ namespace
CryptoTransformImpl::~CryptoTransformImpl()
{
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
EVP_CIPHER_CTX_cleanup(_pContext);
EVP_CIPHER_CTX_reset(_pContext);
EVP_CIPHER_CTX_free(_pContext);
#else
EVP_CIPHER_CTX_cleanup(&_context);