aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-06-11 13:52:07 +0000
committerWerner Koch <[email protected]>2024-06-11 13:54:09 +0000
commitdb556fcb7adabb42332143cebe4ab30c077a00ca (patch)
tree8c05e0aa8d6ec3af87c4e66a8f8f9b3b6524ff3b
parentgpg: Do not bail out on secret keys with an unknown algo (diff)
downloadgnupg-db556fcb7adabb42332143cebe4ab30c077a00ca.tar.gz
gnupg-db556fcb7adabb42332143cebe4ab30c077a00ca.zip
gpg: Add --import-option "no-seckeys".
* g10/import.c (parse_import_options): Add "no-seckeys". -- GnuPG-bug-id: 7146
-rw-r--r--doc/gpg.texi3
-rw-r--r--g10/import.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/gpg.texi b/doc/gpg.texi
index 8755b9455..b533bfdee 100644
--- a/doc/gpg.texi
+++ b/doc/gpg.texi
@@ -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
diff --git a/g10/import.c b/g10/import.c
index ff8847cb6..82c119425 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -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},