We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b281493 commit 51e3cb3Copy full SHA for 51e3cb3
ext/openssl/xp_ssl.c
@@ -1711,16 +1711,12 @@ int php_openssl_setup_crypto(php_stream *stream,
1711
}
1712
1713
if (GET_VER_OPT("security_level")) {
1714
-#ifdef HAVE_SEC_LEVEL
1715
zend_long lval = zval_get_long(val);
1716
if (lval < 0 || lval > 5) {
1717
php_error_docref(NULL, E_WARNING, "Security level must be between 0 and 5");
1718
+#ifdef HAVE_SEC_LEVEL
1719
SSL_CTX_set_security_level(sslsock->ctx, lval);
1720
-#else
1721
- php_error_docref(NULL, E_WARNING,
1722
- "security_level is not supported by the linked OpenSSL library "
1723
- "- it is supported from version 1.1.0");
1724
#endif
1725
1726
0 commit comments