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