Skip to content

Commit b525afa

Browse files
committed
Fix switch statement
1 parent 7fbc6da commit b525afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/openssl_backend_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,6 @@ void php_openssl_load_cipher_mode(struct php_openssl_cipher_mode *mode, const EV
16561656
/* We check for EVP_CIPH_SIV_MODE and EVP_CIPH_SIV_MODE, because LibreSSL does not support it. */
16571657
#ifdef EVP_CIPH_SIV_MODE
16581658
case EVP_CIPH_SIV_MODE:
1659-
mode->aad_supports_vector = true;
16601659
#endif
16611660
#ifdef EVP_CIPH_OCB_MODE
16621661
case EVP_CIPH_OCB_MODE:
@@ -1667,6 +1666,7 @@ void php_openssl_load_cipher_mode(struct php_openssl_cipher_mode *mode, const EV
16671666
php_openssl_set_aead_flags(mode);
16681667
mode->set_tag_length_when_encrypting = cipher_mode == EVP_CIPH_CCM_MODE;
16691668
mode->is_single_run_aead = cipher_mode == EVP_CIPH_CCM_MODE;
1669+
mode->aad_supports_vector = cipher_mode == EVP_CIPH_SIV_MODE;
16701670
break;
16711671
#ifdef NID_chacha20_poly1305
16721672
default:

0 commit comments

Comments
 (0)