mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
dirmngr: Improve debug output for TLS.
* dirmngr/misc.c (dump_cert): Also print SubjectAltNames. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
16078f3dee
commit
714faea4fa
@ -296,6 +296,7 @@ dump_cert (const char *text, ksba_cert_t cert)
|
|||||||
ksba_sexp_t sexp;
|
ksba_sexp_t sexp;
|
||||||
char *p;
|
char *p;
|
||||||
ksba_isotime_t t;
|
ksba_isotime_t t;
|
||||||
|
int idx;
|
||||||
|
|
||||||
log_debug ("BEGIN Certificate '%s':\n", text? text:"");
|
log_debug ("BEGIN Certificate '%s':\n", text? text:"");
|
||||||
if (cert)
|
if (cert)
|
||||||
@ -326,6 +327,13 @@ dump_cert (const char *text, ksba_cert_t cert)
|
|||||||
dump_string (p);
|
dump_string (p);
|
||||||
ksba_free (p);
|
ksba_free (p);
|
||||||
log_printf ("\n");
|
log_printf ("\n");
|
||||||
|
for (idx=1; (p = ksba_cert_get_subject (cert, idx)); idx++)
|
||||||
|
{
|
||||||
|
log_debug (" aka: ");
|
||||||
|
dump_string (p);
|
||||||
|
ksba_free (p);
|
||||||
|
log_printf ("\n");
|
||||||
|
}
|
||||||
|
|
||||||
log_debug (" hash algo: %s\n", ksba_cert_get_digest_algo (cert));
|
log_debug (" hash algo: %s\n", ksba_cert_get_digest_algo (cert));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user