mirror of
https://github.com/nextcloud/spreed.git
synced 2025-07-22 06:48:21 +00:00
Merge pull request #15524 from nextcloud/fix/noid/clear-openssl-errors
fix(setupcheck): Clear OpenSSL errors before executing
This commit is contained in:
@ -583,6 +583,9 @@ class Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function deriveSignalingTokenPublicKey(string $privateKey, string $alg): string {
|
public function deriveSignalingTokenPublicKey(string $privateKey, string $alg): string {
|
||||||
|
// Clear any existing (unrelated) OpenSSL errors
|
||||||
|
while (openssl_error_string() !== false);
|
||||||
|
|
||||||
if (str_starts_with($alg, 'ES') || str_starts_with($alg, 'RS')) {
|
if (str_starts_with($alg, 'ES') || str_starts_with($alg, 'RS')) {
|
||||||
$opensslPrivateKey = openssl_pkey_get_private($privateKey);
|
$opensslPrivateKey = openssl_pkey_get_private($privateKey);
|
||||||
$this->throwOnOpensslError();
|
$this->throwOnOpensslError();
|
||||||
|
Reference in New Issue
Block a user