mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* keyedit.c (menu_addrevoker): Do not allow appointing a subkey as a
designated revoker.
This commit is contained in:
parent
0598a5f990
commit
009af80106
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue