summaryrefslogtreecommitdiffstats
path: root/lib/private/Encryption
Commit message (Collapse)AuthorAgeFilesLines
* Catch throwable instead of exceptionRoeland Jago Douma2021-01-071-1/+1
| | | | | | | The error that gets thrown can also be a type error etc. So we should properly catch the Throwable. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont apply encryption wrapper for root mountRobin Appelman2020-12-291-1/+1
| | | | | | | the `shouldEncrypt` already disables encryption for anything thats not in the users data folder, however the encryption wrapper being applied anyway on the root folder breaks groupfolders Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-163-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* New SSE key formatRoeland Jago Douma2020-08-201-15/+131
| | | | | | | * Encrypt the keys with the instance secret * Store them as json (so we can add other things if needed) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH usage in ↵Morris Jobke2020-07-102-2/+2
| | | | | | files_external Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-293-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-102-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1014-51/+9
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-315-0/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-265-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Keep the modification time during decryptFilesammo28282020-02-011-0/+1
|
* Update license headersChristoph Wurst2019-12-0516-19/+21
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-229-13/+6
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* list files which could not be decryptedBjoern Schiessle2018-12-141-0/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add interface to allow storages from opting out of encryptionRobin Appelman2018-11-291-3/+1
| | | | | | As opposed to hard-coding a list of excluded storages Signed-off-by: Robin Appelman <robin@icewind.nl>
* skip already decrypted files on decrypt all commandBjoern Schiessle2018-10-241-0/+6
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove deprecated \OCP\User::userExistsRoeland Jago Douma2018-03-261-3/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated \OCP\User::getUsersRoeland Jago Douma2018-03-251-2/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* this was a migration step to ownCloud 8.0 to restructure the encryption ↵Bjoern Schiessle2018-03-021-9/+0
| | | | | | folder which is no longer needed Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Simplify ternary operator statementsMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-067-1/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* only collect detailed access list if it is really neededBjoern Schiessle2017-07-061-1/+9
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* don't try to encrypt/decrypt the certificate bundleBjoern Schiessle2017-06-131-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix translationsJoas Schilling2017-04-181-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-131-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return the token as wellJoas Schilling2017-04-131-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return the paths for the users without setting them all upJoas Schilling2017-04-131-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix commentsRoeland Jago Douma2017-04-131-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Port Encryption/file to new getAccessListRoeland Jago Douma2017-04-131-6/+27
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't add the Encryption Storage Wrapper if there are no encryption modulesRoeland Jago Douma2017-03-291-2/+5
| | | | | | | | | | | | | fixes #4125 If there is no encryption module enabled it makes no sense to setup the encryption wrapper (because we can't do anything anyway). This saves reading the header of files. Especialy on external storage/objectstore this should improve performance Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Ignore exception when deleting keys of deleted userVincent Petry2017-03-171-2/+16
| | | | | | | | Whenever a user was deleted for encryption where the keys are stored in the home, we can ignore user existence exceptions because it means the keys are already gone. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove legacy class OC_Group and OC_UserMorris Jobke2017-03-091-1/+11
| | | | | | * basically a straight replacement of the wrapped code at the calling code parts Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* create new encryption keys on password reset and backup the old oneBjoern Schiessle2017-01-101-0/+35
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Ignore AppData in encryption wrapperRoeland Jago Douma2016-11-291-0/+1
| | | | | | Fixes part of #2407 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix shared storage namespace in DecryptAll classVincent Petry2016-10-201-1/+1
|
* Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-1/+1
|
* skip shared files, if files get decrypted only for a specific user we ↵Bjoern Schiessle2016-07-271-0/+4
| | | | shouldn't touch files owned by a different user.
* Fix othersJoas Schilling2016-07-2116-20/+40
|
* Use capped cache for encryption's user access listVincent Petry2016-06-101-0/+3
|
* Allow to decrypt user '0' files onlyJoas Schilling2016-06-071-2/+2
|
* Use isEncrpyted() insteadVincent Petry2016-05-301-1/+1
|
* Respect oc coding style guide.Christian Jürges2016-05-301-1/+1
|
* Check if file needs to decrypted or not for speed up large oc setups.Christian Jürges2016-05-301-3/+9
|