aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_cipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'ossl_cipher.c')
-rw-r--r--ossl_cipher.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ossl_cipher.c b/ossl_cipher.c
index 2054c1c..b2323fc 100644
--- a/ossl_cipher.c
+++ b/ossl_cipher.c
@@ -341,10 +341,7 @@ ossl_cipher_set_iv(VALUE self, VALUE iv)
static VALUE
ossl_cipher_set_padding(VALUE self, VALUE padding)
{
-/* EVP_CIPHER_CTX_set_padding existed in an earlier versions of openssl.
- I don't know the exact version number, but it does exist in 0x0090702fL.
-*/
-#if defined(HAVE_ST_FLAGS) || OPENSSL_VERSION_NUMBER >= 0x0090702fL
+#if defined(HAVE_EVP_CIPHER_CTX_SET_PADDING)
EVP_CIPHER_CTX *ctx;
GetCipher(self, ctx);