diff options
| author | Werner Koch <[email protected]> | 2024-06-24 09:49:05 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2024-06-24 09:49:05 +0000 |
| commit | 4c65dfeb2878ee397edcd9918e32db2c39529101 (patch) | |
| tree | cfa9a3e295dfc02c8f49f58ae17057e7dab1f407 /g10/import.c | |
| parent | sm: Emit user IDs in colon mode even if the Subject is empty. (diff) | |
| download | gnupg-4c65dfeb2878ee397edcd9918e32db2c39529101.tar.gz gnupg-4c65dfeb2878ee397edcd9918e32db2c39529101.zip | |
gpg: Rename recently added import option no-seckeys to only-pubkeys.
* g10/import.c (parse_import_options): Rename option.
* g10/options.h (IMPORT_NO_SECKEY): Rename to IMPORT_ONLY_PUBKEYS.
Change all users.
--
GnuPG-bug-id: 7146
Diffstat (limited to 'g10/import.c')
| -rw-r--r-- | g10/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/import.c b/g10/import.c index 45bf23c25..ea3ba2991 100644 --- a/g10/import.c +++ b/g10/import.c @@ -212,7 +212,7 @@ 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}, + {"only-pubkeys", IMPORT_ONLY_PUBKEYS, NULL, NULL}, /* Hidden options which are enabled by default and are provided * in case of problems with the respective implementation. */ @@ -3191,7 +3191,7 @@ import_secret_one (ctrl_t ctrl, kbnode_t keyblock, } stats->secret_read++; - if ((options & IMPORT_NO_SECKEY)) + if ((options & IMPORT_ONLY_PUBKEYS)) { if (!for_migration) log_error (_("importing secret keys not allowed\n")); |
