diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-03 14:19:31 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-06-03 14:19:31 +0200 |
commit | 471d2b732c504d7231aa7f343f5cda8a701fa447 (patch) | |
tree | 4aba6d147e98cccf6ba91aec216247fe8886eb84 /apps/files_encryption/lib/session.php | |
parent | a134ffcf2cce4dcd2c41ccd49a5b6306260bb0f3 (diff) | |
download | nextcloud-server-471d2b732c504d7231aa7f343f5cda8a701fa447.tar.gz nextcloud-server-471d2b732c504d7231aa7f343f5cda8a701fa447.zip |
introduce decryptPrivateKey() method which also checks if the result is a valid private key to avoid additional checks on various places
Diffstat (limited to 'apps/files_encryption/lib/session.php')
-rw-r--r-- | apps/files_encryption/lib/session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/session.php b/apps/files_encryption/lib/session.php index bff1737554b..9b0ca224c84 100644 --- a/apps/files_encryption/lib/session.php +++ b/apps/files_encryption/lib/session.php @@ -89,7 +89,7 @@ class Session { \OC_FileProxy::$enabled = false; $encryptedKey = $this->view->file_get_contents( '/owncloud_private_key/' . $publicShareKeyId . '.private.key' ); - $privateKey = Crypt::symmetricDecryptFileContent( $encryptedKey, '' ); + $privateKey = Crypt::decryptPrivateKey($encryptedKey, ''); $this->setPublicSharePrivateKey( $privateKey ); \OC_FileProxy::$enabled = $proxyStatus; |