aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-06-29 09:03:58 +0000
committerWerner Koch <[email protected]>2015-06-29 09:06:41 +0000
commit2c9c46e2a2b8f9a1bdc1ef46a135b5fc7d1a8073 (patch)
treee37f62f94baf893e462490dd9c874179c1ded14e /sm/gpgsm.c
parentscd: Support button flag and AES key data for OpenPGPcard v3.0. (diff)
downloadgnupg-2c9c46e2a2b8f9a1bdc1ef46a135b5fc7d1a8073.tar.gz
gnupg-2c9c46e2a2b8f9a1bdc1ef46a135b5fc7d1a8073.zip
gpgsm: Add command option "offline".
* sm/server.c (option_handler): Add "offline". (cmd_getinfo): Ditto. * sm/certchain.c (is_cert_still_valid): (do_validate_chain): * sm/gpgsm.c (gpgsm_init_default_ctrl): Default "offline" to the value of --disable-dirmngr. * sm/call-dirmngr.c (start_dirmngr_ext): Better also check for ctrl->offline. -- Adding this option makes it easier to implement the corresponding feature in gpgme. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index 39c3c403b..977494ce4 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -2067,6 +2067,7 @@ gpgsm_init_default_ctrl (struct server_control_s *ctrl)
ctrl->include_certs = default_include_certs;
ctrl->use_ocsp = opt.enable_ocsp;
ctrl->validation_model = default_validation_model;
+ ctrl->offline = opt.disable_dirmngr;
}