From 6d1cc74bf3a44314916794c7026556c012dfaec2 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 3 Dec 2023 09:44:23 -0600 Subject: [PATCH] RSA: add note discussion source of openssl errors --- phpseclib/Crypt/RSA.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index dc47396f..15aab4ab 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -622,6 +622,7 @@ class Crypt_RSA $publickey = call_user_func_array(array($this, '_convertPublicKey'), array_values($this->_parseKey($publickey, CRYPT_RSA_PUBLIC_FORMAT_PKCS1))); // clear the buffer of error strings stemming from a minimalistic openssl.cnf + // https://github.com/php/php-src/issues/11054 talks about other errors this'll pick up while (openssl_error_string() !== false) { }