--- a/ext/openssl/openssl.c 2021-01-04 10:37:47.781547763 +1100 +++ b/ext/openssl/openssl.c 2021-01-04 10:38:23.017764662 +1100 @@ -6901,7 +6901,7 @@ int cipher_mode = EVP_CIPHER_mode(cipher_type); memset(mode, 0, sizeof(struct php_openssl_cipher_mode)); switch (cipher_mode) { -#if PHP_OPENSSL_API_VERSION >= 0x10100 +#ifdef EVP_CIPH_OCB_MODE case EVP_CIPH_GCM_MODE: case EVP_CIPH_OCB_MODE: case EVP_CIPH_CCM_MODE: