aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index 3fab49731..161d185b1 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -111,6 +111,9 @@ enum cmd_and_opt_values {
oDisableCRLChecks,
oEnableCRLChecks,
+ oDisableOCSP,
+ oEnableOCSP,
+
oIncludeCerts,
oPolicyFile,
@@ -253,6 +256,9 @@ static ARGPARSE_OPTS opts[] = {
{ oDisableCRLChecks, "disable-crl-checks", 0, N_("never consult a CRL")},
{ oEnableCRLChecks, "enable-crl-checks", 0, "@"},
+ { oDisableOCSP, "disable-ocsp", 0, "@" },
+ { oEnableOCSP, "enable-ocsp", 0, N_("check validity using OCSP")},
+
{ oIncludeCerts, "include-certs", 1,
N_("|N|number of certificates to include") },
@@ -825,6 +831,13 @@ main ( int argc, char **argv)
opt.no_crl_check = 0;
break;
+ case oDisableOCSP:
+ opt.enable_ocsp = 0;
+ break;
+ case oEnableOCSP:
+ opt.enable_ocsp = 1;
+ break;
+
case oIncludeCerts: ctrl.include_certs = pargs.r.ret_int; break;
case oPolicyFile:
@@ -1360,6 +1373,7 @@ void
gpgsm_init_default_ctrl (struct server_control_s *ctrl)
{
ctrl->include_certs = 1; /* only include the signer's cert */
+ ctrl->use_ocsp = opt.enable_ocsp;
}