]> source.dussan.org Git - nextcloud-server.git/commitdiff
Pass $configargs to openssl_pkey_export 16500/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Sun, 21 Jul 2019 20:21:59 +0000 (22:21 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 22 Jul 2019 12:37:10 +0000 (14:37 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/private/Authentication/Token/PublicKeyTokenProvider.php

index fa9f11a65abcf4f8c5378c6531a9127a944b0e5c..53cc4866f1b0820004621ced8301dbf042549fc8 100644 (file)
@@ -299,7 +299,9 @@ class PublicKeyTokenProvider implements IProvider {
                        $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);