aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index e70e2aaff..6e3da64ac 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -199,6 +199,7 @@ enum cmd_and_opt_values {
oNoCommonCertsImport,
oIgnoreCertExtension,
oIgnoreCertWithOID,
+ oRequireCompliance,
oNoAutostart
};
@@ -289,6 +290,7 @@ static ARGPARSE_OPTS opts[] = {
ARGPARSE_s_s (oPolicyFile, "policy-file",
N_("|FILE|take policy information from FILE")),
ARGPARSE_s_s (oCompliance, "compliance", "@"),
+ ARGPARSE_p_u (oMinRSALength, "min-rsa-length", "@"),
ARGPARSE_s_n (oNoCommonCertsImport, "no-common-certs-import", "@"),
ARGPARSE_s_s (oIgnoreCertExtension, "ignore-cert-extension", "@"),
ARGPARSE_s_s (oIgnoreCertWithOID, "ignore-cert-with-oid", "@"),
@@ -387,7 +389,7 @@ static ARGPARSE_OPTS opts[] = {
ARGPARSE_s_s (oDisablePubkeyAlgo, "disable-pubkey-algo", "@"),
ARGPARSE_s_n (oIgnoreTimeConflict, "ignore-time-conflict", "@"),
ARGPARSE_s_n (oNoRandomSeedFile, "no-random-seed-file", "@"),
- ARGPARSE_p_u (oMinRSALength, "min-rsa-length", "@"),
+ ARGPARSE_s_n (oRequireCompliance, "require-compliance", "@"),
ARGPARSE_header (NULL, N_("Options for unattended use")),
@@ -421,7 +423,6 @@ static ARGPARSE_OPTS opts[] = {
ARGPARSE_s_s (oLCmessages, "lc-messages", "@"),
ARGPARSE_s_s (oXauthority, "xauthority", "@"),
-
ARGPARSE_header (NULL, ""), /* Stop the header group. */
@@ -1410,6 +1411,8 @@ main ( int argc, char **argv)
case oMinRSALength: opt.min_rsa_length = pargs.r.ret_ulong; break;
+ case oRequireCompliance: opt.require_compliance = 1; break;
+
default:
if (configname)
pargs.err = ARGPARSE_PRINT_WARNING;