summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/crypt.php
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2013-02-05 13:12:34 +0000
committerSam Tuke <samtuke@owncloud.com>2013-02-05 13:12:34 +0000
commit927d4c98a14e27b9412a205fb94bab2b94e8978b (patch)
tree4450079721b32e8f1739fc5a0ac46f7b3b00ef8f /apps/files_encryption/lib/crypt.php
parent8ded07dd5c0e15a3c05112b3fa5875f326fb44df (diff)
downloadnextcloud-server-927d4c98a14e27b9412a205fb94bab2b94e8978b.tar.gz
nextcloud-server-927d4c98a14e27b9412a205fb94bab2b94e8978b.zip
Fixed todos: undefined vars and unreachable code
Diffstat (limited to 'apps/files_encryption/lib/crypt.php')
-rwxr-xr-xapps/files_encryption/lib/crypt.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/apps/files_encryption/lib/crypt.php b/apps/files_encryption/lib/crypt.php
index 4323ad66de2..bfffda9ba32 100755
--- a/apps/files_encryption/lib/crypt.php
+++ b/apps/files_encryption/lib/crypt.php
@@ -615,24 +615,6 @@ class Crypt {
}
- public static function changekeypasscode($oldPassword, $newPassword) {
-
- //
- // TODO: UNDEFINED VARIABLES: $user, $view
- //
-
- if(\OCP\User::isLoggedIn()){
- $key = Keymanager::getPrivateKey( $user, $view );
- if ( ($key = Crypt::symmetricDecryptFileContent($key,$oldPassword)) ) {
- if ( ($key = Crypt::symmetricEncryptFileContent($key, $newPassword)) ) {
- Keymanager::setPrivateKey($key);
- return true;
- }
- }
- }
- return false;
- }
-
/**
* @brief Get the blowfish encryption handeler for a key
* @param $key string (optional)