Skip to content

Commit

Permalink
RSA: add note discussion source of openssl errors
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Dec 3, 2023
1 parent e84886f commit 6d1cc74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions phpseclib/Crypt/RSA.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ function createKey($bits = 1024, $timeout = false, $partial = array())
$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) {
}

Expand Down

0 comments on commit 6d1cc74

Please sign in to comment.