From ef31396727771eb771b450e91e7b097b2ca151b9 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 13 Sep 2022 13:06:54 +0200 Subject: [PATCH] Mark method as deprecated Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Carl Schwan --- lib/private/Authentication/Token/PublicKeyTokenProvider.php | 2 +- lib/private/Security/Crypto.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php index 3a6558df0d6..741b8fe0c2d 100644 --- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php +++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php @@ -339,7 +339,7 @@ class PublicKeyTokenProvider implements IProvider { } /** - * @depreacted Fallback for instances where the secret might not have been set by accident + * @deprecated Fallback for instances where the secret might not have been set by accident */ private function hashTokenWithEmptySecret(string $token): string { return hash('sha512', $token); diff --git a/lib/private/Security/Crypto.php b/lib/private/Security/Crypto.php index ece69d6deeb..aeeafcc271c 100644 --- a/lib/private/Security/Crypto.php +++ b/lib/private/Security/Crypto.php @@ -133,7 +133,6 @@ class Crypto implements ICrypto { // Retry with empty secret as a fallback for instances where the secret might not have been set by accident return $this->decryptWithoutSecret($authenticatedCiphertext, ''); } - throw $e; } }