summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/keymanager.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-04-15 19:37:03 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-04-16 14:15:04 +0200
commit959665003b408ed837066307350fb76b83beaa52 (patch)
treeb95a3dbf9b91abe270732c1ae9874be488af8d16 /apps/encryption/lib/keymanager.php
parentb25c06f5769fbcd90a780cbce90998a38c112043 (diff)
downloadnextcloud-server-959665003b408ed837066307350fb76b83beaa52.tar.gz
nextcloud-server-959665003b408ed837066307350fb76b83beaa52.zip
decrypt private key for public shares correctly
Diffstat (limited to 'apps/encryption/lib/keymanager.php')
-rw-r--r--apps/encryption/lib/keymanager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/encryption/lib/keymanager.php b/apps/encryption/lib/keymanager.php
index a280ea9bde3..62970c141c5 100644
--- a/apps/encryption/lib/keymanager.php
+++ b/apps/encryption/lib/keymanager.php
@@ -337,7 +337,7 @@ class KeyManager {
$uid = $this->getPublicShareKeyId();
$shareKey = $this->getShareKey($path, $uid);
$privateKey = $this->keyStorage->getSystemUserKey($this->publicShareKeyId . '.privateKey');
- $privateKey = $this->crypt->symmetricDecryptFileContent($privateKey);
+ $privateKey = $this->crypt->decryptPrivateKey($privateKey);
} else {
$shareKey = $this->getShareKey($path, $uid);
$privateKey = $this->session->getPrivateKey();