mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Add option --cert-extension.
This commit is contained in:
parent
cd8c8b7af4
commit
a51675fabe
6 changed files with 47 additions and 4 deletions
|
@ -176,7 +176,8 @@ enum cmd_and_opt_values {
|
|||
oDisablePubkeyAlgo,
|
||||
oIgnoreTimeConflict,
|
||||
oNoRandomSeedFile,
|
||||
oNoCommonCertsImport
|
||||
oNoCommonCertsImport,
|
||||
oIgnoreCertExtension
|
||||
};
|
||||
|
||||
|
||||
|
@ -376,6 +377,7 @@ static ARGPARSE_OPTS opts[] = {
|
|||
ARGPARSE_s_n (oIgnoreTimeConflict, "ignore-time-conflict", "@"),
|
||||
ARGPARSE_s_n (oNoRandomSeedFile, "no-random-seed-file", "@"),
|
||||
ARGPARSE_s_n (oNoCommonCertsImport, "no-common-certs-import", "@"),
|
||||
ARGPARSE_s_s (oIgnoreCertExtension, "ignore-cert-extension", "@"),
|
||||
|
||||
/* Command aliases. */
|
||||
ARGPARSE_c (aListKeys, "list-key", "@"),
|
||||
|
@ -1391,6 +1393,10 @@ main ( int argc, char **argv)
|
|||
}
|
||||
break;
|
||||
|
||||
case oIgnoreCertExtension:
|
||||
add_to_strlist (&opt.ignored_cert_extensions, pargs.r.ret_str);
|
||||
break;
|
||||
|
||||
default:
|
||||
pargs.err = configfp? ARGPARSE_PRINT_WARNING:ARGPARSE_PRINT_ERROR;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue