Merge pull request #16500 from nextcloud/backport/16495/stable16

[stable16] Pass $configargs to openssl_pkey_export
This commit is contained in:
Morris Jobke 2019-07-22 16:03:29 +02:00 committed by GitHub
commit 93c5176f1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -299,7 +299,9 @@ class PublicKeyTokenProvider implements IProvider {
$this->logOpensslError(); $this->logOpensslError();
} }
openssl_pkey_export($res, $privateKey); if (openssl_pkey_export($res, $privateKey, null, $config) === false) {
$this->logOpensslError();
}
// Extract the public key from $res to $pubKey // Extract the public key from $res to $pubKey
$publicKey = openssl_pkey_get_details($res); $publicKey = openssl_pkey_get_details($res);