mirror of
https://github.com/nextcloud/server.git
synced 2026-05-13 00:51:10 -04:00
Merge pull request #23271 from owncloud/backport-23192
[stable9] Backport 23192
This commit is contained in:
commit
adbc5bbd1f
1 changed files with 7 additions and 0 deletions
|
|
@ -266,6 +266,13 @@ 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…
Reference in a new issue