mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-23 13:32:11 +01:00
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:
@@ -130,7 +130,7 @@ namespace
|
|||||||
CryptoTransformImpl::~CryptoTransformImpl()
|
CryptoTransformImpl::~CryptoTransformImpl()
|
||||||
{
|
{
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||||
EVP_CIPHER_CTX_cleanup(_pContext);
|
EVP_CIPHER_CTX_reset(_pContext);
|
||||||
EVP_CIPHER_CTX_free(_pContext);
|
EVP_CIPHER_CTX_free(_pContext);
|
||||||
#else
|
#else
|
||||||
EVP_CIPHER_CTX_cleanup(&_context);
|
EVP_CIPHER_CTX_cleanup(&_context);
|
||||||
|
|||||||
Reference in New Issue
Block a user