summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-09 10:28:02 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-09 10:28:02 +0200
commit45575d0135368169af71379a39c8914e7a1cf524 (patch)
tree4c38adac97c64f85ddc1cb8d4022693b6cf5a4fc /lib/public
parent56f1ffe820383ac82c208552213848c6a8deec6d (diff)
downloadnextcloud-server-45575d0135368169af71379a39c8914e7a1cf524.tar.gz
nextcloud-server-45575d0135368169af71379a39c8914e7a1cf524.zip
Check if the key exists, before trying to delete it
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/encryption/keys/istorage.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/encryption/keys/istorage.php b/lib/public/encryption/keys/istorage.php
index 898ab81c373..c6933e7afab 100644
--- a/lib/public/encryption/keys/istorage.php
+++ b/lib/public/encryption/keys/istorage.php
@@ -89,7 +89,7 @@ interface IStorage {
* @param string $uid ID if the user for whom we want to delete the key
* @param string $keyId id of the key
*
- * @return boolean
+ * @return boolean False when the key could not be deleted
*/
public function deleteUserKey($uid, $keyId);
@@ -99,7 +99,7 @@ interface IStorage {
* @param string $path path to file
* @param string $keyId id of the key
*
- * @return boolean
+ * @return boolean False when the key could not be deleted
*/
public function deleteFileKey($path, $keyId);
@@ -107,7 +107,7 @@ interface IStorage {
* delete all file keys for a given file
*
* @param string $path to the file
- * @return boolean
+ * @return boolean False when the keys could not be deleted
*/
public function deleteAllFileKeys($path);
@@ -117,7 +117,7 @@ interface IStorage {
*
* @param string $keyId id of the key
*
- * @return boolean
+ * @return boolean False when the key could not be deleted
*/
public function deleteSystemUserKey($keyId);