aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-03-02 10:39:00 +0000
committerJustus Winter <[email protected]>2017-03-02 10:39:00 +0000
commit62d21a4ab4029b32ea129f1cf3a0e1f22e2fb7b0 (patch)
tree7247dd865aff0458422bbe63b0601f40627831f5 /g10/keyedit.c
parenttests: Log information about ssh, add comments to test. (diff)
downloadgnupg-62d21a4ab4029b32ea129f1cf3a0e1f22e2fb7b0.tar.gz
gnupg-62d21a4ab4029b32ea129f1cf3a0e1f22e2fb7b0.zip
g10: Signal an error when trying to revoke non-existant UID.
* g10/keyedit.c (keyedit_quick_revuid): Signal an error when trying to revoke non-existant UID. * tests/openpgp/quick-key-manipulation.scm: Test that. GnuPG-bug-id: 2962 Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r--g10/keyedit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 892da1ad5..c591600a5 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -3053,6 +3053,8 @@ keyedit_quick_revuid (ctrl_t ctrl, const char *username, const char *uidtorev)
}
}
+ log_error (_("User ID revocation failed: %s\n"), gpg_strerror (GPG_ERR_NOT_FOUND));
+
leave:
release_kbnode (keyblock);
keydb_release (kdbhd);