diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-29 09:21:00 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-29 09:21:00 +0200 |
commit | c398fc59ad870751cee73a2fbef8bc75233a7515 (patch) | |
tree | f686bab6d58a62fefd231b8132b5efa0001ba0ec /apps/files_encryption/hooks | |
parent | 09b54ccb2b01c558b1d9ccad1e335492d97b4fe1 (diff) | |
parent | 7c0c6bd779cb73c4fdc9993f6dc78f9dd1138a88 (diff) | |
download | nextcloud-server-c398fc59ad870751cee73a2fbef8bc75233a7515.tar.gz nextcloud-server-c398fc59ad870751cee73a2fbef8bc75233a7515.zip |
Merge branch 'master' into remove_unused_vars
Conflicts:
apps/files_encryption/hooks/hooks.php
apps/files_encryption/lib/proxy.php
apps/files_encryption/lib/session.php
apps/files_encryption/lib/stream.php
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r-- | apps/files_encryption/hooks/hooks.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 6bac7debea2..955425595ba 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -57,7 +57,7 @@ class Hooks { $privateKey = Crypt::symmetricDecryptFileContent($encryptedKey, $params['password']);
- $session = new Session($view);
+ $session = new \OCA\Encryption\Session($view);
$session->setPrivateKey($privateKey, $params['uid']);
@@ -75,13 +75,13 @@ class Hooks { $userView->file_exists('encryption.key')
&& $encLegacyKey = $userView->file_get_contents('encryption.key')
) {
-
+
$plainLegacyKey = Crypt::legacyBlockDecrypt($encLegacyKey, $params['password']);
-
+
$session->setLegacyKey($plainLegacyKey);
-
+
}
-
+
// Encrypt existing user files:
// This serves to upgrade old versions of the encryption
// app (see appinfo/spec.txt)
@@ -151,7 +151,7 @@ class Hooks { $view = new \OC_FilesystemView('/');
- $session = new Session($view);
+ $session = new \OCA\Encryption\Session($view);
// Get existing decrypted private key
$privateKey = $session->getPrivateKey();
@@ -268,7 +268,7 @@ class Hooks { if ($params['itemType'] === 'file' || $params['itemType'] === 'folder') {
$view = new \OC_FilesystemView('/');
- $session = new Session($view);
+ $session = new \OCA\Encryption\Session($view);
$userId = \OCP\User::getUser();
$util = new Util($view, $userId);
$path = $util->fileIdToPath($params['itemSource']);
@@ -442,7 +442,7 @@ class Hooks { \OC_FileProxy::$enabled = false;
$view = new \OC_FilesystemView('/');
- $session = new Session($view);
+ $session = new \OCA\Encryption\Session($view);
$userId = \OCP\User::getUser();
$util = new Util($view, $userId);
|