Merge branch '3.0'

This commit is contained in:
terrafrost 2022-03-20 11:30:52 -05:00
commit ed0f7cc9f6

View File

@ -935,6 +935,9 @@ abstract class RSA extends AsymmetricKey
*/
public function getEngine()
{
if (!isset(self::$engines['PHP'])) {
self::useBestEngine();
}
return self::$engines['OpenSSL'] && self::$defaultExponent == 65537 ?
'OpenSSL' :
'PHP';