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:
parent
0598a5f990
commit
009af80106
@ -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…
x
Reference in New Issue
Block a user