aboutsummaryrefslogtreecommitdiffstats
path: root/g10/getkey.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-10-27 16:23:59 +0000
committerDavid Shaw <[email protected]>2005-10-27 16:23:59 +0000
commitb3ea683ac97d0f60ce4a17f1cf18ca11a95b4b2a (patch)
tree0f4d983fb6a6b84fb5eed6f5a3c469e57f3b4433 /g10/getkey.c
parentcygwin fixes (diff)
downloadgnupg-b3ea683ac97d0f60ce4a17f1cf18ca11a95b4b2a.tar.gz
gnupg-b3ea683ac97d0f60ce4a17f1cf18ca11a95b4b2a.zip
* keyedit.c (menu_addrevoker), getkey.c (finish_lookup): Fix problem with
adding a cert-only designated revoker. Code was looking for a key with sign ability, and not cert ability. Noted by Timo Schulz.
Diffstat (limited to '')
-rw-r--r--g10/getkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index 2dde1bb51..35e74f1d5 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -2345,7 +2345,7 @@ finish_lookup (GETKEY_CTX ctx)
KBNODE k;
KBNODE foundk = NULL;
PKT_user_id *foundu = NULL;
-#define USAGE_MASK (PUBKEY_USAGE_SIG|PUBKEY_USAGE_ENC)
+#define USAGE_MASK (PUBKEY_USAGE_SIG|PUBKEY_USAGE_ENC|PUBKEY_USAGE_CERT)
unsigned int req_usage = ( ctx->req_usage & USAGE_MASK );
/* Request the primary if we're certifying another key, and also
if signing data while --pgp6 or --pgp7 is on since pgp 6 and 7