mirror of
https://github.com/nextcloud/spreed.git
synced 2025-07-21 10:37:10 +00:00
fix(setupcheck): Clear OpenSSL errors before executing
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
@ -583,6 +583,9 @@ class Config {
|
||||
}
|
||||
|
||||
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')) {
|
||||
$opensslPrivateKey = openssl_pkey_get_private($privateKey);
|
||||
$this->throwOnOpensslError();
|
||||
|
Reference in New Issue
Block a user