summaryrefslogtreecommitdiff
path: root/ext/openssl/openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/openssl.c')
-rw-r--r--ext/openssl/openssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 63958ac571..4ec4c4f4ed 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -4917,6 +4917,10 @@ PHP_FUNCTION(openssl_seal)
php_error_docref(NULL, E_WARNING, "Unknown signature algorithm.");
RETURN_FALSE;
}
+ if (EVP_CIPHER_iv_length(cipher) > 0) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Ciphers with modes requiring IV are not supported");
+ RETURN_FALSE;
+ }
} else {
cipher = EVP_rc4();
}