diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-07-21 22:21:59 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-07-21 22:21:59 +0200 |
commit | 608f4d3ee9aded5e6b2b9784a1575ffedbd5002f (patch) | |
tree | 7dfb9723174b5016405aa1d212fb987329d6a4e8 /lib | |
parent | d15ad1b5afa8dc869407b4bedab7a838f3348eca (diff) | |
download | nextcloud-server-608f4d3ee9aded5e6b2b9784a1575ffedbd5002f.tar.gz nextcloud-server-608f4d3ee9aded5e6b2b9784a1575ffedbd5002f.zip |
Pass $configargs to openssl_pkey_export
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/Token/PublicKeyTokenProvider.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php index adc4b4bed38..318d4468ddc 100644 --- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php +++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php @@ -316,7 +316,10 @@ class PublicKeyTokenProvider implements IProvider { throw new \RuntimeException('OpenSSL reported a problem'); } - openssl_pkey_export($res, $privateKey); + if (openssl_pkey_export($res, $privateKey, null, $config) === false) { + $this->logOpensslError(); + throw new \RuntimeException('OpenSSL reported a problem'); + } // Extract the public key from $res to $pubKey $publicKey = openssl_pkey_get_details($res); |