Kaynağa Gözat

Call openssl_pkey_export with $config and log errors.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
tags/v20.0.0beta1
Daniel Kesselberg 3 yıl önce
ebeveyn
işleme
ddc06e3a88
No account linked to committer's email address
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4
    1
      core/Service/LoginFlowV2Service.php

+ 4
- 1
core/Service/LoginFlowV2Service.php Dosyayı Görüntüle

@@ -225,7 +225,10 @@ class LoginFlowV2Service {
throw new \RuntimeException('Could not initialize keys');
}

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