Skip to content

Commit 4ce3348

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Next attempt to fix bug #80368
2 parents e42bf72 + 32cd5a1 commit 4ce3348

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
@@ -6886,8 +6886,9 @@ static void php_openssl_load_cipher_mode(struct php_openssl_cipher_mode *mode, c
68866886
int cipher_mode = EVP_CIPHER_mode(cipher_type);
68876887
memset(mode, 0, sizeof(struct php_openssl_cipher_mode));
68886888
switch (cipher_mode) {
6889-
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
6890-
/* Note: While OpenSSL 1.1 supports OCB mode, LibreSSL does not support it. */
6889+
#ifdef EVP_CIPH_OCB_MODE
6890+
/* Since OpenSSL 1.1, all AEAD ciphers use a common framework. We check for
6891+
* EVP_CIPH_OCB_MODE, because LibreSSL does not support it. */
68916892
case EVP_CIPH_GCM_MODE:
68926893
case EVP_CIPH_OCB_MODE:
68936894
case EVP_CIPH_CCM_MODE:

0 commit comments

Comments
 (0)