1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-10 21:38:50 +01:00

gpg: Add --import-option "no-seckeys".

* g10/import.c (parse_import_options): Add "no-seckeys".
--

GnuPG-bug-id: 7146
This commit is contained in:
Werner Koch 2024-06-11 15:52:07 +02:00
parent d6bbb90f1e
commit db556fcb7a
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 5 additions and 0 deletions

View File

@ -2147,6 +2147,9 @@ are available for all keyserver types, some common options are:
this option is not used with HKP keyservers, as they do not support
retrieving keys by subkey id.
@item no-seckeys
Do now allow to import secret keys.
@item timeout
@itemx http-proxy=@var{value}
@itemx verbose

View File

@ -212,6 +212,8 @@ parse_import_options(char *str,unsigned int *options,int noisy)
/* New options. Right now, without description string. */
{"ignore-attributes", IMPORT_IGNORE_ATTRIBUTES, NULL, NULL},
{"no-seckeys", IMPORT_NO_SECKEY, NULL, NULL},
/* Hidden options which are enabled by default and are provided
* in case of problems with the respective implementation. */
{"collapse-uids", IMPORT_COLLAPSE_UIDS, NULL, NULL},