mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +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
b2cedc108d
commit
e23dc755fa
4 changed files with 54 additions and 0 deletions
|
@ -203,6 +203,7 @@ enum cmd_and_opt_values {
|
|||
oNoRandomSeedFile,
|
||||
oNoCommonCertsImport,
|
||||
oIgnoreCertExtension,
|
||||
oIgnoreCertWithOID,
|
||||
oAuthenticode,
|
||||
oAttribute,
|
||||
oChUid,
|
||||
|
@ -302,6 +303,7 @@ static gpgrt_opt_t 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 (oKeyboxdProgram, "keyboxd-program", "@"),
|
||||
|
@ -1427,6 +1429,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 oAuthenticode: opt.authenticode = 1; break;
|
||||
|
||||
case oAttribute:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue