summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/config.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2015-08-03 06:39:53 +0200
committerAndreas Fischer <bantu@owncloud.com>2015-08-03 09:43:45 +0200
commit3b803db6d815a6d015d5fa013c8147d66a559973 (patch)
treea57c944135af4bb3390c1db1806937d320b4b3cd /apps/files_external/lib/config.php
parent27bfab37bc2cdc4cc4e3de891c2ecfa7d71b90fd (diff)
downloadnextcloud-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.php7
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;
}