aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/keyedit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 55fc685c0..1e07b1d41 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -3380,9 +3380,11 @@ menu_addrevoker( KBNODE pub_keyblock, KBNODE sec_keyblock, int sensitive )
goto fail;
}
- /* Note that I'm requesting SIG here and not CERT. We're making
- a certification, but it is okay to be a subkey. */
- revoker_pk->req_usage=PUBKEY_USAGE_SIG;
+ /* Note that I'm requesting CERT here, which usually implies
+ primary keys only, but some casual testing shows that PGP and
+ GnuPG both can handle a designated revokation from a
+ subkey. */
+ revoker_pk->req_usage=PUBKEY_USAGE_CERT;
rc=get_pubkey_byname(revoker_pk,answer,NULL,NULL,1);
if(rc)
{