diff options
author | Werner Koch <wk@gnupg.org> | 2022-04-11 17:57:14 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2022-04-11 17:57:14 +0200 |
commit | 137e59a6a5c5cd89091471811bf7c7c67de5890d (patch) | |
tree | b42fcefb640195e287a9126abf35ae0022a1da13 /common | |
parent | scd: Support for GeNUA cards. (diff) | |
download | gnupg2-137e59a6a5c5cd89091471811bf7c7c67de5890d.tar.xz gnupg2-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 'common')
-rw-r--r-- | common/asshelp2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/asshelp2.c b/common/asshelp2.c index 4aad8a242..3e45c6a6c 100644 --- a/common/asshelp2.c +++ b/common/asshelp2.c @@ -63,11 +63,15 @@ vprint_assuan_status (assuan_context_t ctx, const char *format, va_list arg_ptr) { int rc; + size_t n; char *buf; rc = gpgrt_vasprintf (&buf, format, arg_ptr); if (rc < 0) return gpg_err_make (default_errsource, gpg_err_code_from_syserror ()); + n = strlen (buf); + if (n && buf[n-1] == '\n') + buf[n-1] = 0; /* Strip trailing LF to avoid earning from Assuan */ rc = assuan_write_status (ctx, keyword, buf); xfree (buf); return rc; |