1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-02 12:01:32 +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 12ac129a70
commit 8e691efb05
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 5 additions and 0 deletions

View File

@ -2176,6 +2176,9 @@ are available for all keyserver types, some common options are:
this option is not used with HKP keyservers, as they do not support this option is not used with HKP keyservers, as they do not support
retrieving keys by subkey id. retrieving keys by subkey id.
@item no-seckeys
Do now allow to import secret keys.
@item timeout @item timeout
@itemx http-proxy=@var{value} @itemx http-proxy=@var{value}
@itemx verbose @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. */ /* New options. Right now, without description string. */
{"ignore-attributes", IMPORT_IGNORE_ATTRIBUTES, NULL, NULL}, {"ignore-attributes", IMPORT_IGNORE_ATTRIBUTES, NULL, NULL},
{"no-seckeys", IMPORT_NO_SECKEY, NULL, NULL},
/* Hidden options which are enabled by default and are provided /* Hidden options which are enabled by default and are provided
* in case of problems with the respective implementation. */ * in case of problems with the respective implementation. */
{"collapse-uids", IMPORT_COLLAPSE_UIDS, NULL, NULL}, {"collapse-uids", IMPORT_COLLAPSE_UIDS, NULL, NULL},