1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-21 14:47:03 +01:00

* keyedit.c (menu_addrevoker): Do not allow appointing a subkey as a

designated revoker.
This commit is contained in:
David Shaw 2004-02-27 19:56:15 +00:00
parent 0598a5f990
commit 009af80106
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-02-27 David Shaw <dshaw@jabberwocky.com>
* keyedit.c (menu_addrevoker): Do not allow appointing a subkey as
a designated revoker.
2004-02-25 David Shaw <dshaw@jabberwocky.com>
* delkey.c (do_delete_key): Allow deleting a public key with a

View File

@ -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);