Pass $configargs to openssl_pkey_export

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-07-21 22:21:59 +02:00 committed by Morris Jobke
parent 55e70858b1
commit abd714d685
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 3 additions and 1 deletions

View 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);