From abd714d685749ebd84037b1ff9a317d7fec27473 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Sun, 21 Jul 2019 22:21:59 +0200 Subject: [PATCH] Pass $configargs to openssl_pkey_export Signed-off-by: Daniel Kesselberg --- lib/private/Authentication/Token/PublicKeyTokenProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php index fa9f11a65abcf..53cc4866f1b08 100644 --- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php +++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php @@ -299,7 +299,9 @@ private function newToken(string $token, $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 $publicKey = openssl_pkey_get_details($res);