mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: New option --add-desig-revoker
* g10/gpg.c (oAddDesigRevoker): New.
(opts): Add new option.
* g10/options.h (opt): Add field desig_revokers.
* g10/keygen.c (get_parameter_idx): New.
(get_parameter): Make use of get_parameter_idx.
(prepare_desig_revoker): New.
(get_parameter_revkey): Add arg idx.
(proc_parameter_file): Add designated revokers.
(do_generate_keypair): Write all designated revokers.
--
(cherry picked from commit 3d094e2bcf
)
Support for v5 desig revokers has been removed. However, we should
check whether we can add a longer v4 desig revoker fingerprint in
addition to the regular v4 desig revoker.
This commit is contained in:
parent
8c8608425a
commit
6c9db01101
6 changed files with 130 additions and 16 deletions
|
@ -59,7 +59,7 @@ register_trusted_key (const char *string)
|
|||
/* Some users have conf files with entries like
|
||||
* trusted-key 0x1234567812345678 # foo
|
||||
* That is obviously wrong. Before fixing bug#1206 trailing garbage
|
||||
* on a key specification if was ignored. We detect the above use case
|
||||
* on a key specification was ignored. We detect the above use case
|
||||
* here and cut off the junk-looking-like-a comment. */
|
||||
if (strchr (string, '#'))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue