mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
sm: New option --ignore-cert-with-oid.
* sm/gpgsm.c (oIgnoreCertWithOID): New. (opts): Add option. (main): Store its value. * sm/call-agent.c (learn_cb): Test against that list. --
This commit is contained in:
parent
e058d15d2d
commit
bcf446b70c
4 changed files with 54 additions and 0 deletions
|
@ -198,6 +198,7 @@ enum cmd_and_opt_values {
|
|||
oNoRandomSeedFile,
|
||||
oNoCommonCertsImport,
|
||||
oIgnoreCertExtension,
|
||||
oIgnoreCertWithOID,
|
||||
oNoAutostart
|
||||
};
|
||||
|
||||
|
@ -290,6 +291,7 @@ static ARGPARSE_OPTS opts[] = {
|
|||
ARGPARSE_s_s (oCompliance, "compliance", "@"),
|
||||
ARGPARSE_s_n (oNoCommonCertsImport, "no-common-certs-import", "@"),
|
||||
ARGPARSE_s_s (oIgnoreCertExtension, "ignore-cert-extension", "@"),
|
||||
ARGPARSE_s_s (oIgnoreCertWithOID, "ignore-cert-with-oid", "@"),
|
||||
ARGPARSE_s_n (oNoAutostart, "no-autostart", "@"),
|
||||
ARGPARSE_s_s (oAgentProgram, "agent-program", "@"),
|
||||
ARGPARSE_s_s (oDirmngrProgram, "dirmngr-program", "@"),
|
||||
|
@ -1383,6 +1385,10 @@ main ( int argc, char **argv)
|
|||
add_to_strlist (&opt.ignored_cert_extensions, pargs.r.ret_str);
|
||||
break;
|
||||
|
||||
case oIgnoreCertWithOID:
|
||||
add_to_strlist (&opt.ignore_cert_with_oid, pargs.r.ret_str);
|
||||
break;
|
||||
|
||||
case oNoAutostart: opt.autostart = 0; break;
|
||||
|
||||
case oCompliance:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue