diff options
author | Werner Koch <[email protected]> | 2022-04-11 15:57:14 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-04-11 15:57:14 +0000 |
commit | 137e59a6a5c5cd89091471811bf7c7c67de5890d (patch) | |
tree | b42fcefb640195e287a9126abf35ae0022a1da13 /sm/misc.c | |
parent | scd: Support for GeNUA cards. (diff) | |
download | gnupg-137e59a6a5c5cd89091471811bf7c7c67de5890d.tar.gz gnupg-137e59a6a5c5cd89091471811bf7c7c67de5890d.zip |
sm: Print diagnostic about CRL problems due to Tor mode.
* dirmngr/crlfetch.c (crl_fetch, crl_fetch_default)
(ca_cert_fetch, start_cert_fetch): Factor Tor error out to ...
(no_crl_due_to_tor): new. Print status note.
* dirmngr/ks-engine-ldap.c (ks_ldap_get)
(ks_ldap_search, ks_ldap_put): Factor Tor error out to ...
(no_ldap_due_to_tor): new. Print status note.
* dirmngr/ocsp.c (do_ocsp_request): Print status note.
* sm/misc.c (gpgsm_print_further_info): New.
* sm/call-dirmngr.c (warning_and_note_printer): New.
(isvalid_status_cb): Call it.
(lookup_status_cb): Ditto.
(run_command_status_cb): Ditto.
* common/asshelp2.c (vprint_assuan_status): Strip a possible trailing
LF.
--
Diffstat (limited to 'sm/misc.c')
-rw-r--r-- | sm/misc.c | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -35,6 +35,27 @@ #include "../common/sexp-parse.h" +/* Print a message + * "(further info: %s)\n + * in verbose mode to further explain an error. That message is + * intended to help debug a problem and should not be translated. + */ +void +gpgsm_print_further_info (const char *format, ...) +{ + va_list arg_ptr; + + if (!opt.verbose) + return; + + log_info (_("(further info: ")); + va_start (arg_ptr, format); + log_logv (GPGRT_LOGLVL_CONT, format, arg_ptr); + va_end (arg_ptr); + log_printf (")\n"); +} + + /* Setup the environment so that the pinentry is able to get all required information. This is used prior to an exec of the protect-tool. */ |