Merge pull request #2995 from bytedreamer/bytedreamer-patch-1

Fix set padding call for new versions of OpenSSL
This commit is contained in:
Günter Obiltschnig 2020-05-12 07:34:49 +02:00 committed by GitHub
commit bc9f15e9e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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