summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-09-13 13:06:54 +0200
committerVincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com>2022-12-05 16:10:55 +0000
commit7416f44dbca3274de16860fd884a6d56641e002e (patch)
tree10cab7e232822cea728ce7a90d9d99dc988e87bf
parent1d33d37bf21ccc51f21c056fac8a65f5d3276729 (diff)
downloadnextcloud-server-7416f44dbca3274de16860fd884a6d56641e002e.tar.gz
nextcloud-server-7416f44dbca3274de16860fd884a6d56641e002e.zip
Mark method as deprecated
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Carl Schwan <carl@carlschwan.eu> (cherry picked from commit ef31396727771eb771b450e91e7b097b2ca151b9)
-rw-r--r--lib/private/Authentication/Token/PublicKeyTokenProvider.php2
-rw-r--r--lib/private/Security/Crypto.php1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php
index ecc3fe23596..c7e29568383 100644
--- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php
+++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php
@@ -352,7 +352,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;
}
}