mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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. --
This commit is contained in:
parent
0dcc249852
commit
137e59a6a5
7 changed files with 122 additions and 23 deletions
21
sm/misc.c
21
sm/misc.c
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue