summaryrefslogtreecommitdiffstats
path: root/tests/lib/security
Commit message (Collapse)AuthorAgeFilesLines
* Refactor OC_Request into TrustedDomainHelper and IRequestLukas Reschke2015-02-161-0/+70
| | | | | | | | | | This changeset removes the static class `OC_Request` and moves the functions either into `IRequest` which is accessible via `\OC::$server::->getRequest()` or into a separated `TrustedDomainHelper` class for some helper methods which should not be publicly exposed. This changes only internal methods and nothing on the public API. Some public functions in `util.php` have been deprecated though in favour of the new non-static functions. Unfortunately some part of this code uses things like `__DIR__` and thus is not completely unit-testable. Where tests where possible they ahve been added though. Fixes https://github.com/owncloud/core/issues/13976 which was requested in https://github.com/owncloud/core/pull/13973#issuecomment-73492969
* certificate manager should always use a \OC\Files\View otherwise we will get ↵Bjoern Schiessle2015-01-261-2/+2
| | | | problems for different primary storages
* certificate manager only needs the user-id, no need to pass on the complete ↵Bjoern Schiessle2015-01-261-4/+2
| | | | user object
* Make remaining files extend the test baseJoas Schilling2014-11-195-7/+14
|
* Merge pull request #12218 from owncloud/issue/10991-fixesMorris Jobke2014-11-171-3/+3
|\ | | | | Issue/10991 Make unit tests pass on windows
| * Correctly close handle of directory when listing certificatesJoas Schilling2014-11-171-3/+3
| |
* | Add OCP\Security\IHasherLukas Reschke2014-11-061-0/+115
|/ | | | | | | Public interface for hashing which also works with legacy ownCloud hashes and supports updating the legacy hash via a passed reference. Follow-up of https://github.com/owncloud/core/pull/10219#issuecomment-61624662 Requires https://github.com/owncloud/3rdparty/pull/136
* Remove unused and overflowing functionLukas Reschke2014-09-181-5/+0
| | | | Resolves https://github.com/owncloud/core/issues/10991 failure 4
* Merge pull request #10642 from owncloud/securityutilsLukas Reschke2014-09-033-0/+184
|\ | | | | Add some security utilities
| * Add test for the second argumentLukas Reschke2014-09-031-0/+19
| |
| * Refactor tests a little bitLukas Reschke2014-09-033-31/+61
| |
| * Add char consts, hash the specified password for the HMACLukas Reschke2014-09-031-1/+1
| |
| * Use DILukas Reschke2014-08-271-6/+6
| |
| * Add some security utilitiesLukas Reschke2014-08-273-0/+135
| | | | | | | | | | | | | | | | | | | | | | | This adds some security utilities to core including: - A library for basic crypto operations (e.g. to encrypt passwords) - A better library for cryptographic actions which allows you to specify the charset - A library for secure string comparisions Remove .htaccess Remove .htaccess Fix typo Add public API Use timing constant comparision Remove CBC constant Adjust code Remove confusing $this
* 5.3 syntax...Robin Appelman2014-08-311-9/+14
|
* Explicitly set the timezonesRobin Appelman2014-08-311-6/+6
|
* Add test for expired certificateLukas Reschke2014-08-311-3/+1
| | | | Will only work after tomorrow
* Add unit tests and fix rootcerts creation bugLukas Reschke2014-08-312-0/+177