mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
Fix set padding call for new versions of OpenSSL
This commit is contained in:
parent
daa729c66e
commit
8d632dbb76
@ -151,7 +151,7 @@ namespace
|
||||
int CryptoTransformImpl::setPadding(int padding)
|
||||
{
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
return EVP_CIPHER_CTX_block_size(_pContext);
|
||||
return EVP_CIPHER_CTX_set_padding(_pContext, padding);
|
||||
#else
|
||||
return EVP_CIPHER_CTX_set_padding(&_context, padding);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user