mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
Merge pull request #2995 from bytedreamer/bytedreamer-patch-1
Fix set padding call for new versions of OpenSSL
This commit is contained in:
@@ -151,7 +151,7 @@ namespace
|
|||||||
int CryptoTransformImpl::setPadding(int padding)
|
int CryptoTransformImpl::setPadding(int padding)
|
||||||
{
|
{
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||||
return EVP_CIPHER_CTX_block_size(_pContext);
|
return EVP_CIPHER_CTX_set_padding(_pContext, padding);
|
||||||
#else
|
#else
|
||||||
return EVP_CIPHER_CTX_set_padding(&_context, padding);
|
return EVP_CIPHER_CTX_set_padding(&_context, padding);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user