mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-28 17:48:35 +00:00
Remove conditions for PHP < 5.3.0 for this branch
This commit is contained in:
parent
df6b201ab9
commit
78bac871af
@ -473,11 +473,7 @@ class RSA
|
|||||||
case defined('MATH_BIGINTEGER_OPENSSL_DISABLE'):
|
case defined('MATH_BIGINTEGER_OPENSSL_DISABLE'):
|
||||||
define('CRYPT_RSA_MODE', self::MODE_INTERNAL);
|
define('CRYPT_RSA_MODE', self::MODE_INTERNAL);
|
||||||
break;
|
break;
|
||||||
// openssl_pkey_get_details - which is used in the only place Crypt/RSA.php uses OpenSSL - was introduced in PHP 5.2.0
|
case extension_loaded('openssl') && file_exists($this->configFile):
|
||||||
case extension_loaded('openssl') && version_compare(PHP_VERSION, '5.2.0', "<="):
|
|
||||||
define('CRYPT_RSA_MODE', self::MODE_INTERNAL);
|
|
||||||
break;
|
|
||||||
case extension_loaded('openssl') && version_compare(PHP_VERSION, '4.2.0', '>=') && file_exists($this->configFile):
|
|
||||||
// some versions of XAMPP have mismatched versions of OpenSSL which causes it not to work
|
// some versions of XAMPP have mismatched versions of OpenSSL which causes it not to work
|
||||||
ob_start();
|
ob_start();
|
||||||
@phpinfo();
|
@phpinfo();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user