1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-30 19:58:44 +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 c489bf7e7e
commit 7788aba7d8
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 5 additions and 0 deletions

View File

@ -2037,6 +2037,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

@ -207,6 +207,8 @@ parse_import_options(char *str,unsigned int *options,int noisy)
{"show-only", (IMPORT_SHOW | IMPORT_DRY_RUN), NULL, {"show-only", (IMPORT_SHOW | IMPORT_DRY_RUN), NULL,
NULL}, NULL},
{"no-seckeys", IMPORT_NO_SECKEY, NULL, NULL},
/* Aliases for backward compatibility */ /* Aliases for backward compatibility */
{"allow-local-sigs",IMPORT_LOCAL_SIGS,NULL,NULL}, {"allow-local-sigs",IMPORT_LOCAL_SIGS,NULL,NULL},
{"repair-hkp-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG,NULL,NULL}, {"repair-hkp-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG,NULL,NULL},