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, 4 insertions, 1 deletions
diff --git a/ossl_cipher.c b/ossl_cipher.c
index eef7c90..a00e823 100644
--- a/ossl_cipher.c
+++ b/ossl_cipher.c
@@ -310,13 +310,16 @@ ossl_cipher_set_iv(VALUE self, VALUE iv)
static VALUE
ossl_cipher_set_padding(VALUE self, VALUE padding)
{
+#if defined(HAVE_ST_FLAGS)
EVP_CIPHER_CTX *ctx;
GetCipher(self, ctx);
if (EVP_CIPHER_CTX_set_padding(ctx, NUM2INT(padding)) != 1)
ossl_raise(eCipherError, NULL);
-
+#else
+ rb_notimplement();
+#endif
return padding;
}