Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 anos atrás
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 anos atrás
Julius Härtl
00e62171d2
Test for locking state in key generation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
3 anos atrás
Morris Jobke
234b510652
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
3 anos atrás
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
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>
4 anos atrás
Christoph Wurst
14c996d982
Use elseif instead of else if
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 anos atrás
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 anos atrás
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 anos atrás
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 anos atrás
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 anos atrás
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 anos atrás
Roeland Jago Douma
3a7cf40aaa
Mode to modern phpunit
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 anos atrás
Roeland Jago Douma
c007ca624f
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 anos atrás
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 anos atrás
Morris Jobke
c733cdaa65
Use ::class in test mocks of encryption app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 anos atrás
Vincent Petry
6b9ef15803
Use master key for public links as well
7 anos atrás
Vincent Petry
305718370a
Add tests for null user
7 anos atrás
Bjoern Schiessle
fcda3a20f4
create new encryption keys on password reset and backup the old one
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 anos atrás
Roeland Jago Douma
0c154c1ed7
Fix getMock encryption
7 anos atrás
Joas Schilling
813f0a0f40
Fix apps/
8 anos atrás
Lukas Reschke
aba539703c
Update license headers
8 anos atrás
Joas Schilling
4a3311f430
Move Encryption app to PSR-4 (#24524)
* Move Encryption to PSR-4
* Move encryption tests to PSR-4
* Fix the tests
8 anos atrás
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
8 anos atrás
Lukas Reschke
ca350294a6
Add tests for setVersion
8 anos atrás
Lukas Reschke
6724f76573
Use cache and add tests
8 anos atrás
Thomas Müller
682821c71e
Happy new year!
8 anos atrás
Björn Schießle
46f6c289ca
only use master key ID if a user is logged in. Otherwise keep the public link share key
8 anos atrás
Morris Jobke
b945d71384
update licence headers via script
8 anos atrás
Bjoern Schiessle
acfc7d7c4d
enable usage of a master key
8 anos atrás
Bjoern Schiessle
62bc0e5264
use password hash instead of the plain password to encrypt the private key
8 anos atrás
Bjoern Schiessle
1e284b15ff
only create new key pair if both keys are missing
9 anos atrás
Morris Jobke
f63915d0c8
update license headers and authors
9 anos atrás
Joas Schilling
d3e3a84cae
Move the helpful method to the TestCase class
9 anos atrás
Bjoern Schiessle
70a44621be
check recovery setting for the right user
9 anos atrás
Bjoern Schiessle
959665003b
decrypt private key for public shares correctly
9 anos atrás
Thomas Müller
a4483243ac
fixing license headers - encryption code related
9 anos atrás
Clark Tomlinson
d637bffac6
adding user setup test and adding 4 tests to keymanager
9 anos atrás
Thomas Müller
4c899238e9
fixing unit test execution
9 anos atrás
Clark Tomlinson
e507dc11a0
adding util test and reducing keymanager instances to one in test
9 anos atrás
Bjoern Schiessle
c9ca068427
keyManagerTest: remove code which is no longer needed
9 anos atrás
Bjoern Schiessle
4efbcb0280
cleanup keymanager test and add some additional tests
9 anos atrás
Clark Tomlinson
e6dc6944c2
moving methods to their final places
and updating test some.
9 anos atrás
Clark Tomlinson
d15c2e52b0
cleanup and removing cachefactory
9 anos atrás
Clark Tomlinson
0c2f9ca849
Updating keystorage movement and fixing hooks
9 anos atrás
Clark Tomlinson
39733c8da1
Initial commit
9 anos atrás