diff --git a/Crypto/src/CipherImpl.cpp b/Crypto/src/CipherImpl.cpp index 2edfd1c62..ae5747759 100644 --- a/Crypto/src/CipherImpl.cpp +++ b/Crypto/src/CipherImpl.cpp @@ -113,7 +113,7 @@ namespace (dir == DIR_ENCRYPT) ? 1 : 0); #endif -#if OPENSSL_VERSION_NUMBER >= 0x10000000L +#if OPENSSL_VERSION_NUMBER >= 0x10001000L if (_iv.size() != EVP_CIPHER_iv_length(_pCipher) && EVP_CIPHER_mode(_pCipher) == EVP_CIPH_GCM_MODE) { #if OPENSSL_VERSION_NUMBER >= 0x10100000L @@ -161,7 +161,7 @@ namespace std::string CryptoTransformImpl::getTag(std::size_t tagSize) { std::string tag; -#if OPENSSL_VERSION_NUMBER >= 0x10000000L +#if OPENSSL_VERSION_NUMBER >= 0x10001000L Poco::Buffer buffer(tagSize); #if OPENSSL_VERSION_NUMBER >= 0x10100000L int rc = EVP_CIPHER_CTX_ctrl(_pContext, EVP_CTRL_GCM_GET_TAG, tagSize, buffer.begin()); @@ -179,7 +179,7 @@ namespace { #if OPENSSL_VERSION_NUMBER >= 0x10100000L int rc = EVP_CIPHER_CTX_ctrl(_pContext, EVP_CTRL_GCM_SET_TAG, tag.size(), const_cast(tag.data())); -#elif OPENSSL_VERSION_NUMBER >= 0x10000000L +#elif OPENSSL_VERSION_NUMBER >= 0x10001000L int rc = EVP_CIPHER_CTX_ctrl(&_context, EVP_CTRL_GCM_SET_TAG, tag.size(), const_cast(tag.data())); #else int rc = 0; diff --git a/Crypto/src/CipherKeyImpl.cpp b/Crypto/src/CipherKeyImpl.cpp index 0bd8c2c32..2af173bce 100644 --- a/Crypto/src/CipherKeyImpl.cpp +++ b/Crypto/src/CipherKeyImpl.cpp @@ -115,7 +115,7 @@ CipherKeyImpl::Mode CipherKeyImpl::mode() const case EVP_CIPH_OFB_MODE: return MODE_OFB; -#if OPENSSL_VERSION_NUMBER >= 0x10000000L +#if OPENSSL_VERSION_NUMBER >= 0x10001000L case EVP_CIPH_CTR_MODE: return MODE_CTR;