People should not have to worry about the used openssl version
when downgrading security_level.
}
if (GET_VER_OPT("security_level")) {
-#ifdef HAVE_SEC_LEVEL
zend_long lval = zval_get_long(val);
if (lval < 0 || lval > 5) {
php_error_docref(NULL, E_WARNING, "Security level must be between 0 and 5");
}
+#ifdef HAVE_SEC_LEVEL
SSL_CTX_set_security_level(sslsock->ctx, lval);
-#else
- php_error_docref(NULL, E_WARNING,
- "security_level is not supported by the linked OpenSSL library "
- "- it is supported from version 1.1.0");
#endif
}