mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
g10: When adding a user id, make sure the keyblock has been prepared.
* g10/keyedit.c (keyedit_quick_adduid): Call merge_keys_and_selfsig on KEYBLOCK before adding the user id. * tests/openpgp/quick-key-manipulation.scm: Make sure that the key capabilities don't change when adding a user id. (key-data): New function. -- Signed-off-by: Neal H. Walfield <neal@g10code.com> GnuPG-bug-id: 2697
This commit is contained in:
parent
7e0379a754
commit
df5353b95e
2 changed files with 24 additions and 1 deletions
|
@ -2932,6 +2932,8 @@ keyedit_quick_adduid (ctrl_t ctrl, const char *username, const char *newuid)
|
|||
|
||||
fix_keyblock (&keyblock);
|
||||
|
||||
merge_keys_and_selfsig (keyblock);
|
||||
|
||||
if (menu_adduid (ctrl, keyblock, 0, NULL, uidstring))
|
||||
{
|
||||
err = keydb_update_keyblock (kdbhd, keyblock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue