mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
d2fdf2e1b6
commit
2c9c46e2a2
6 changed files with 151 additions and 8 deletions
|
@ -198,7 +198,7 @@ start_dirmngr_ext (ctrl_t ctrl, assuan_context_t *ctx_r)
|
|||
gpg_error_t err;
|
||||
assuan_context_t ctx;
|
||||
|
||||
if (opt.disable_dirmngr)
|
||||
if (opt.disable_dirmngr || ctrl->offline)
|
||||
return gpg_error (GPG_ERR_NO_DIRMNGR);
|
||||
|
||||
if (*ctx_r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue