Skip to content

Commit 13434be

Browse files
committed
Do not compile proto version helpers for OpenSSL 1.0
1 parent f018fe6 commit 13434be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/openssl/xp_ssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,7 @@ static inline int php_openssl_get_max_proto_version_flag(int flags) /* {{{ */
10221022
}
10231023
/* }}} */
10241024

1025+
#if PHP_OPENSSL_API_VERSION >= 0x10100
10251026
static inline int php_openssl_map_proto_version(int flag) /* {{{ */
10261027
{
10271028
switch (flag) {
@@ -1052,6 +1053,7 @@ static int php_openssl_get_max_proto_version(int flags) /* {{{ */
10521053
return php_openssl_map_proto_version(php_openssl_get_max_proto_version_flag(flags));
10531054
}
10541055
/* }}} */
1056+
#endif
10551057

10561058
static int php_openssl_get_proto_version_flags(int flags, int min, int max) /* {{{ */
10571059
{

0 commit comments

Comments
 (0)