com php-src: Sync with behavior change in OpenSSL 1.1.1b: ext/openssl/openssl.c

From: Date: Fri, 08 Mar 2019 14:47:32 +0000
Subject: com php-src: Sync with behavior change in OpenSSL 1.1.1b: ext/openssl/openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105048@lists.php.net to get a copy of this message
Commit: 66bd861fcd2a508d5321d8a3be6158f5026aafc6 Author: Anatol Belski <ab@php.net> Thu, 28 Feb 2019 12:48:47 +0100 Parents: b6308f5b48a21da53150af35855912f3ac55e94a Branches: PHP-7.1 PHP-7.2 PHP-7.3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=66bd861fcd2a508d5321d8a3be6158f5026aafc6 Log: Sync with behavior change in OpenSSL 1.1.1b A behavior change in revealed by some openssl_decrypt() based test, where an encrypt API is used with a decrypt context. The EVP_Cipher* functions will automatically choose the right operation depending on the context passed. (cherry picked from commit 19a44ffb7be91344550fa700830b8e62a73031ba) Changed paths: M ext/openssl/openssl.c Diff: diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 44fe00b..39b6a20 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -6339,7 +6339,7 @@ static int php_openssl_cipher_update(const EVP_CIPHER *cipher_type, { int i = 0; - if (mode->is_single_run_aead && !EVP_EncryptUpdate(cipher_ctx, NULL, &i, NULL, (int)data_len)) { + if (mode->is_single_run_aead && !EVP_CipherUpdate(cipher_ctx, NULL, &i, NULL, (int)data_len)) { php_openssl_store_errors(); php_error_docref(NULL, E_WARNING, "Setting of data length failed"); return FAILURE;

« previous php.cvs (#105048) next »