Browse Source

Drop OpenSSL 0.9.8 workaround

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
pull/26324/head
J0WI 5 years ago
parent
commit
21494a5b7b
  1. 7
      apps/encryption/lib/Crypto/Crypt.php

7
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;
}

Loading…
Cancel
Save