mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 11:52:48 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
7bdb09c4bd
@ -494,6 +494,7 @@ class RSA
|
|||||||
case !isset($versions['Header']):
|
case !isset($versions['Header']):
|
||||||
case !isset($versions['Library']):
|
case !isset($versions['Library']):
|
||||||
case $versions['Header'] == $versions['Library']:
|
case $versions['Header'] == $versions['Library']:
|
||||||
|
case version_compare($versions['Header'], '1.0.0') >= 0 && version_compare($versions['Library'], '1.0.0') >= 0:
|
||||||
define('CRYPT_RSA_MODE', self::MODE_OPENSSL);
|
define('CRYPT_RSA_MODE', self::MODE_OPENSSL);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -292,6 +292,7 @@ class BigInteger
|
|||||||
case !isset($versions['Header']):
|
case !isset($versions['Header']):
|
||||||
case !isset($versions['Library']):
|
case !isset($versions['Library']):
|
||||||
case $versions['Header'] == $versions['Library']:
|
case $versions['Header'] == $versions['Library']:
|
||||||
|
case version_compare($versions['Header'], '1.0.0') >= 0 && version_compare($versions['Library'], '1.0.0') >= 0:
|
||||||
define('MATH_BIGINTEGER_OPENSSL_ENABLED', true);
|
define('MATH_BIGINTEGER_OPENSSL_ENABLED', true);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user