Kaynağa Gözat

Pass $configargs to openssl_pkey_export

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
tags/v17.0.0beta1
Daniel Kesselberg 4 yıl önce
ebeveyn
işleme
608f4d3ee9
No account linked to committer's email address

+ 4
- 1
lib/private/Authentication/Token/PublicKeyTokenProvider.php Dosyayı Görüntüle

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

Loading…
İptal
Kaydet