summaryrefslogtreecommitdiffstats
path: root/apps/encryption
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2021-03-26 19:10:37 +0100
committerJ0WI <J0WI@users.noreply.github.com>2021-03-26 19:23:10 +0100
commit21494a5b7bea0204e094ff27a1da5b7a78bc83e8 (patch)
tree94fad89281e65920ed6c6cb4251c7fd25f2e4dbb /apps/encryption
parenta75f0e62fa0b9e140ba0dd8ffb2e928a5d3007dd (diff)
downloadnextcloud-server-21494a5b7bea0204e094ff27a1da5b7a78bc83e8.tar.gz
nextcloud-server-21494a5b7bea0204e094ff27a1da5b7a78bc83e8.zip
Drop OpenSSL 0.9.8 workaround
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'apps/encryption')
-rw-r--r--apps/encryption/lib/Crypto/Crypt.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php
index 2ba30425c7f..c956283e5f6 100644
--- a/apps/encryption/lib/Crypto/Crypt.php
+++ b/apps/encryption/lib/Crypto/Crypt.php
@@ -270,13 +270,6 @@ class Crypt {
$cipher = self::DEFAULT_CIPHER;
}
- // Workaround for OpenSSL 0.9.8. Fallback to an old cipher that should work.
- if (OPENSSL_VERSION_NUMBER < 0x1000101f) {
- if ($cipher === 'AES-256-CTR' || $cipher === 'AES-128-CTR') {
- $cipher = self::LEGACY_CIPHER;
- }
- }
-
return $cipher;
}