1958,13 → 1958,17 |
const ENFORCE_SSL_NO = 0; |
const ENFORCE_SSL_YES = 1; |
const ENFORCE_SSL_AUTO = 2; |
|
/** |
* @var bool|null |
*/ |
private static $sslAvailableCache = null; |
|
/** |
* @return bool|void|null |
* @return bool |
* @throws OIDplusException, OIDplusConfigInitializationException |
*/ |
public static function isSslAvailable() { |
public static function isSslAvailable(): bool { |
if (!is_null(self::$sslAvailableCache)) return self::$sslAvailableCache; |
|
if (PHP_SAPI == 'cli') { |
2040,6 → 2044,9 |
return false; |
} |
} |
} else { |
assert(false); |
return false; |
} |
} |
} |