summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-04-24 13:02:06 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-04-27 13:01:18 +0200
commit27683f944289e7b37f20ec7d877ed295d5ca66a3 (patch)
tree83c7f72931cbdc6549816030bf8333a0ca9eef2d /lib/public
parente58029f8ad9ed4ddb1a68ea91e76e6a8d749fe27 (diff)
downloadnextcloud-server-27683f944289e7b37f20ec7d877ed295d5ca66a3.tar.gz
nextcloud-server-27683f944289e7b37f20ec7d877ed295d5ca66a3.zip
fall back to the ownCloud default encryption module and aes128 if we read a encrypted file without a header
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/encryption/iencryptionmodule.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/encryption/iencryptionmodule.php b/lib/public/encryption/iencryptionmodule.php
index dc55f8939ef..0dda042d759 100644
--- a/lib/public/encryption/iencryptionmodule.php
+++ b/lib/public/encryption/iencryptionmodule.php
@@ -50,6 +50,7 @@ interface IEncryptionModule {
*
* @param string $path to the file
* @param string $user who read/write the file (null for public access)
+ * @param string $mode php stream open mode
* @param array $header contains the header data read from the file
* @param array $accessList who has access to the file contains the key 'users' and 'public'
*
@@ -58,7 +59,7 @@ interface IEncryptionModule {
* or if no additional data is needed return a empty array
* @since 8.1.0
*/
- public function begin($path, $user, array $header, array $accessList);
+ public function begin($path, $user, $mode, array $header, array $accessList);
/**
* last chunk received. This is the place where you can perform some final