diff options
author | Werner Koch <[email protected]> | 2022-02-03 13:14:14 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-02-03 13:17:10 +0000 |
commit | e23dc755fa725877ce96eb5a6a6f5788457267f4 (patch) | |
tree | d0c1a1c26a0e2424fe91f4266b4216eb8a2dd7f2 /sm/gpgsm.c | |
parent | gpg: Fix for -Wformat when using uint64_t. (diff) | |
download | gnupg-e23dc755fa725877ce96eb5a6a6f5788457267f4.tar.gz gnupg-e23dc755fa725877ce96eb5a6a6f5788457267f4.zip |
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.
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r-- | sm/gpgsm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c index b95edf83b..61dd86aab 100644 --- a/sm/gpgsm.c +++ b/sm/gpgsm.c @@ -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: |