Skip to content

Commit 32cd5a1

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Next attempt to fix bug #80368
2 parents 0076b47 + ecee3f1 commit 32cd5a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/openssl/openssl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6901,8 +6901,9 @@ static void php_openssl_load_cipher_mode(struct php_openssl_cipher_mode *mode, c
69016901
int cipher_mode = EVP_CIPHER_mode(cipher_type);
69026902
memset(mode, 0, sizeof(struct php_openssl_cipher_mode));
69036903
switch (cipher_mode) {
6904-
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
6905-
/* Note: While OpenSSL 1.1 supports OCB mode, LibreSSL does not support it. */
6904+
#ifdef EVP_CIPH_OCB_MODE
6905+
/* Since OpenSSL 1.1, all AEAD ciphers use a common framework. We check for
6906+
* EVP_CIPH_OCB_MODE, because LibreSSL does not support it. */
69066907
case EVP_CIPH_GCM_MODE:
69076908
case EVP_CIPH_OCB_MODE:
69086909
case EVP_CIPH_CCM_MODE:

0 commit comments

Comments
 (0)