Skip to content

Commit 93c5176

Browse files
authored
Merge pull request #16500 from nextcloud/backport/16495/stable16
[stable16] Pass $configargs to openssl_pkey_export
2 parents 55e7085 + abd714d commit 93c5176

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/private/Authentication/Token/PublicKeyTokenProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ private function newToken(string $token,
299299
$this->logOpensslError();
300300
}
301301

302-
openssl_pkey_export($res, $privateKey);
302+
if (openssl_pkey_export($res, $privateKey, null, $config) === false) {
303+
$this->logOpensslError();
304+
}
303305

304306
// Extract the public key from $res to $pubKey
305307
$publicKey = openssl_pkey_get_details($res);

0 commit comments

Comments
 (0)