]> source.dussan.org Git - nextcloud-server.git/commit
Harden key generation
authorJulius Härtl <jus@bitgrid.net>
Wed, 22 Jul 2020 08:05:51 +0000 (10:05 +0200)
committerJulius Härtl <jus@bitgrid.net>
Fri, 14 Aug 2020 05:58:40 +0000 (07:58 +0200)
commit36cfdd320bd766798930dc09acea74b27f58d95c
tree21afcb71b33a109cc1d2d2bfb739f3f64ef1a8bd
parented461155930219c2de3a648e7dfdf75778af2f7a
Harden key generation

There might be cases where multiple requests trigger the key generation
at the same time and the instance ends up with a non-fitting
public/private key pair. Therefore the whole key generation should be
locked. Other than that this makes sure that user key generation return
values are properly validated.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/encryption/lib/AppInfo/Application.php
apps/encryption/lib/KeyManager.php
apps/encryption/lib/Users/Setup.php
apps/settings/lib/Controller/ChangePasswordController.php