diff options
author | Andreas Fischer <bantu@owncloud.com> | 2015-08-03 06:39:53 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2015-08-03 09:43:45 +0200 |
commit | 3b803db6d815a6d015d5fa013c8147d66a559973 (patch) | |
tree | a57c944135af4bb3390c1db1806937d320b4b3cd /apps/files_external/lib/config.php | |
parent | 27bfab37bc2cdc4cc4e3de891c2ecfa7d71b90fd (diff) | |
download | nextcloud-server-3b803db6d815a6d015d5fa013c8147d66a559973.tar.gz nextcloud-server-3b803db6d815a6d015d5fa013c8147d66a559973.zip |
Update phpseclib to 2.0
Diffstat (limited to 'apps/files_external/lib/config.php')
-rw-r--r-- | apps/files_external/lib/config.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 5dc6d06ae06..91e1aa7d509 100644 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -31,6 +31,8 @@ * */ +use phpseclib\Crypt\AES; + /** * Class to configure mount.json globally and for users */ @@ -895,10 +897,7 @@ class OC_Mount_Config { * Returns the encryption cipher */ private static function getCipher() { - if (!class_exists('Crypt_AES', false)) { - include('Crypt/AES.php'); - } - $cipher = new Crypt_AES(CRYPT_AES_MODE_CBC); + $cipher = new AES(AES::MODE_CBC); $cipher->setKey(\OC::$server->getConfig()->getSystemValue('passwordsalt', null)); return $cipher; } |