[Pkg-gnupg-commit] [gnupg2] 06/49: sm: Fix colon listing of fields > 12 in crt records.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Nov 8 19:30:51 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 1bf5cbd3ef01b7f5fdcfa30c882047b924dcf3f0
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Oct 17 20:56:55 2017 +0200

    sm: Fix colon listing of fields > 12 in crt records.
    
    * sm/keylist.c (print_capabilities): Move colon printing ...
    (list_cert_colon): to here.
    --
    
    Fixes-commit: 7af008bfe1641938a6c2c995cb065829fa05a693
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 sm/keylist.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sm/keylist.c b/sm/keylist.c
index 24c86e1..9997da8 100644
--- a/sm/keylist.c
+++ b/sm/keylist.c
@@ -289,8 +289,6 @@ print_capabilities (ksba_cert_t cert, estream_t fp)
     es_putc ('S', fp);
   if ((use & KSBA_KEYUSAGE_KEY_CERT_SIGN))
     es_putc ('C', fp);
-
-  es_putc (':', fp);
 }
 
 
@@ -503,6 +501,7 @@ list_cert_colon (ctrl_t ctrl, ksba_cert_t cert, unsigned int validity,
   es_putc (':', fp);
   /* Field 12, capabilities: */
   print_capabilities (cert, fp);
+  es_putc (':', fp);
   /* Field 13, not used: */
   es_putc (':', fp);
   /* Field 14, not used: */

-- 
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