mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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:
parent
7788aba7d8
commit
e208ccc66c
4 changed files with 8 additions and 8 deletions
|
@ -207,7 +207,7 @@ parse_import_options(char *str,unsigned int *options,int noisy)
|
|||
{"show-only", (IMPORT_SHOW | IMPORT_DRY_RUN), NULL,
|
||||
NULL},
|
||||
|
||||
{"no-seckeys", IMPORT_NO_SECKEY, NULL, NULL},
|
||||
{"only-pubkeys", IMPORT_ONLY_PUBKEYS, NULL, NULL},
|
||||
|
||||
/* Aliases for backward compatibility */
|
||||
{"allow-local-sigs",IMPORT_LOCAL_SIGS,NULL,NULL},
|
||||
|
@ -3026,7 +3026,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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue