#3183: fix setPadding

This commit is contained in:
Günter Obiltschnig 2021-04-11 16:50:25 +02:00
parent b30bebffb0
commit cb1889a007

View File

@ -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