diff --git a/g10/ChangeLog b/g10/ChangeLog index 1ccd8f4aa..f42954c4c 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,8 @@ +2004-02-27 David Shaw + + * keyedit.c (menu_addrevoker): Do not allow appointing a subkey as + a designated revoker. + 2004-02-25 David Shaw * delkey.c (do_delete_key): Allow deleting a public key with a diff --git a/g10/keyedit.c b/g10/keyedit.c index 1a180e358..0ef891a8e 100644 --- a/g10/keyedit.c +++ b/g10/keyedit.c @@ -2485,6 +2485,13 @@ menu_addrevoker( KBNODE pub_keyblock, KBNODE sec_keyblock, int sensitive ) continue; } + if(!revoker_pk->is_primary) + { + log_error(_("cannot appoint a subkey as a designated revoker\n")); + m_free(answer); + continue; + } + m_free(answer); fingerprint_from_pk(revoker_pk,revkey.fpr,&fprlen);