aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-08-09 14:25:09 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-08-09 14:25:09 +0200
commita969c23e59e26f2d82a1f8626444a59ae003c30e (patch)
treefa451b00e444d5b8394148d1ea69055f60b33fd5 /apps/files_encryption/lib
parent800942ece74ac336c4a9213228f14406d7e494f7 (diff)
downloadnextcloud-server-a969c23e59e26f2d82a1f8626444a59ae003c30e.tar.gz
nextcloud-server-a969c23e59e26f2d82a1f8626444a59ae003c30e.zip
disable admin choice of encryption mode once a decision was taken
Diffstat (limited to 'apps/files_encryption/lib')
-rw-r--r--apps/files_encryption/lib/keymanager.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_encryption/lib/keymanager.php b/apps/files_encryption/lib/keymanager.php
index 4c30c163957..62c5082a2f7 100644
--- a/apps/files_encryption/lib/keymanager.php
+++ b/apps/files_encryption/lib/keymanager.php
@@ -199,6 +199,13 @@ class Keymanager {
return $result;
}
+ /**
+ * @brief change password of private encryption key
+ *
+ * @param string $oldpasswd old password
+ * @param string $newpasswd new password
+ * @return bool true/false
+ */
public static function changePasswd($oldpasswd, $newpasswd) {
if ( \OCP\User::checkPassword(\OCP\User::getUser(), $newpasswd) ) {
return Crypt::changekeypasscode($oldpasswd, $newpasswd);