dirmngr: Improve debug output for TLS.

* dirmngr/misc.c (dump_cert): Also print SubjectAltNames.
Signed-off-by: 's avatarWerner Koch <wk@gnupg.org>
parent 16078f3d
......@@ -296,6 +296,7 @@ dump_cert (const char *text, ksba_cert_t cert)
ksba_sexp_t sexp;
char *p;
ksba_isotime_t t;
int idx;
log_debug ("BEGIN Certificate '%s':\n", text? text:"");
if (cert)
......@@ -326,6 +327,13 @@ dump_cert (const char *text, ksba_cert_t cert)
dump_string (p);
ksba_free (p);
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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment