[Pkg-gnupg-commit] [gnupg2] 46/116: dirmngr: Improve debug output for TLS.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Jan 24 04:40:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 714faea4fa7f30d42e9986358214a99aa8fa57b3
Author: Werner Koch <wk at gnupg.org>
Date:   Sun Jan 8 18:07:18 2017 +0100

    dirmngr: Improve debug output for TLS.
    
    * dirmngr/misc.c (dump_cert): Also print SubjectAltNames.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 dirmngr/misc.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dirmngr/misc.c b/dirmngr/misc.c
index ac3856e..2ee6d82 100644
--- a/dirmngr/misc.c
+++ b/dirmngr/misc.c
@@ -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));
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list