1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

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
This commit is contained in:
Werner Koch 2024-06-24 11:49:05 +02:00
parent 1067e544c2
commit 4c65dfeb28
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
4 changed files with 8 additions and 8 deletions

View file

@ -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"));