summaryrefslogtreecommitdiff
path: root/ext/openssl/php_openssl.h
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2017-06-25 18:08:50 +0100
committerJakub Zelenka <bukka@php.net>2017-06-25 18:08:50 +0100
commit0c707fcb1051c5dfaae22b638bfbebf8c44543b1 (patch)
treee9d227ea1e3387d9a8333e8e7203f8ec30fcc060 /ext/openssl/php_openssl.h
parentbda0f4e8dce25280ee9db4b6058b80b74a80991f (diff)
downloadphp-git-0c707fcb1051c5dfaae22b638bfbebf8c44543b1.tar.gz
Add OPENSSL_DONT_ZERO_PAD_KEY constant to prevent key padding
It fixes bug #71917 (openssl_open() returns junk on envelope < 16 bytes) and bug #72362 (OpenSSL Blowfish encryption is incorrect for short keys).
Diffstat (limited to 'ext/openssl/php_openssl.h')
-rw-r--r--ext/openssl/php_openssl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/php_openssl.h b/ext/openssl/php_openssl.h
index 08f240e8e4..bab7159512 100644
--- a/ext/openssl/php_openssl.h
+++ b/ext/openssl/php_openssl.h
@@ -31,6 +31,7 @@ extern zend_module_entry openssl_module_entry;
#define OPENSSL_RAW_DATA 1
#define OPENSSL_ZERO_PADDING 2
+#define OPENSSL_DONT_ZERO_PAD_KEY 4
#define OPENSSL_ERROR_X509_PRIVATE_KEY_VALUES_MISMATCH 0x0B080074