gpg: New command --quick-adduid.
authorWerner Koch <wk@gnupg.org>
Fri, 8 May 2015 14:08:57 +0000 (16:08 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 8 May 2015 14:08:57 +0000 (16:08 +0200)
commit64e809b791645f343feb69112baba8e2700e454b
tree3b0d7d6f286b9f53dce65545f001ed8632981fe2
parent3c439c0447f8a7468a61bbdc4c9a101ef2451dcb
gpg: New command --quick-adduid.

* g10/keygen.c (ask_user_id): Factor some code out to ...
(uid_already_in_keyblock): new.
(generate_user_id): Add arg UIDSTR.  Fix leaked P.
* g10/keyedit.c (menu_adduid): Add new arg uidstring.  Adjust caller.
(keyedit_quick_adduid): New.
* g10/gpg.c (aQuickAddUid): New.
(opts):  Add command --quick-adduid.
(main): Implement that.
--

GnuPG-bug-id: 1956
Signed-off-by: Werner Koch <wk@gnupg.org>
doc/gpg.texi
g10/gpg.c
g10/keyedit.c
g10/keygen.c
g10/main.h
g10/packet.h