Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/lib print Issuer Fingerp...



details:   https://anonhg.NetBSD.org/src/rev/6255c194011e
branches:  trunk
changeset: 1022622:6255c194011e
user:      jhigh <jhigh%NetBSD.org@localhost>
date:      Wed Jul 28 22:31:45 2021 +0000

description:
print Issuer Fingerprint subpacket 33 (rfc4880bis-08:5.2.3.28) rather than Unknown

diffstat:

 crypto/external/bsd/netpgp/dist/src/lib/packet-print.c |  10 +++++++++-
 crypto/external/bsd/netpgp/dist/src/lib/packet-show.c  |   4 +++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs (55 lines):

diff -r fcd4aaea6a54 -r 6255c194011e crypto/external/bsd/netpgp/dist/src/lib/packet-print.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/packet-print.c    Wed Jul 28 22:17:49 2021 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/packet-print.c    Wed Jul 28 22:31:45 2021 +0000
@@ -58,7 +58,7 @@
 
 #if defined(__NetBSD__)
 __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: packet-print.c,v 1.42 2012/02/22 06:29:40 agc Exp $");
+__RCSID("$NetBSD: packet-print.c,v 1.43 2021/07/28 22:31:45 jhigh Exp $");
 #endif
 
 #include <string.h>
@@ -1090,6 +1090,14 @@
                end_subpacket(&print->indent);
                break;
 
+       case PGP_PTAG_SS_ISSUER_FINGERPRINT:
+               start_subpacket(&print->indent, pkt->tag);
+               print_hexdump(print->indent, "Issuer Fingerprint",
+                             content->ss_issuer_fingerprint.fingerprint, 
+                             content->ss_issuer_fingerprint.len);
+               end_subpacket(&print->indent);
+               break;
+
        case PGP_PTAG_SS_PREFERRED_SKA:
                start_subpacket(&print->indent, pkt->tag);
                print_data(print->indent, "Preferred Symmetric Algorithms",
diff -r fcd4aaea6a54 -r 6255c194011e crypto/external/bsd/netpgp/dist/src/lib/packet-show.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/packet-show.c     Wed Jul 28 22:17:49 2021 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/packet-show.c     Wed Jul 28 22:31:45 2021 +0000
@@ -60,7 +60,7 @@
 
 #if defined(__NetBSD__)
 __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: packet-show.c,v 1.21 2011/08/14 11:19:51 christos Exp $");
+__RCSID("$NetBSD: packet-show.c,v 1.22 2021/07/28 22:31:45 jhigh Exp $");
 #endif
 
 #include <stdlib.h>
@@ -115,6 +115,7 @@
        {PGP_PTAG_SS_PREFERRED_SKA, "SS: Preferred Secret Key Algorithm"},
        {PGP_PTAG_SS_REVOCATION_KEY, "SS: Revocation Key"},
        {PGP_PTAG_SS_ISSUER_KEY_ID, "SS: Issuer Key Id"},
+       {PGP_PTAG_SS_ISSUER_FINGERPRINT, "SS: Issuer Fingerprint"},
        {PGP_PTAG_SS_NOTATION_DATA, "SS: Notation Data"},
        {PGP_PTAG_SS_PREFERRED_HASH, "SS: Preferred Hash Algorithm"},
        {PGP_PTAG_SS_PREF_COMPRESS, "SS: Preferred Compression Algorithm"},
@@ -164,6 +165,7 @@
        {PGP_PTAG_SS_PREFERRED_SKA, "Preferred Symmetric Algorithms"},
        {PGP_PTAG_SS_REVOCATION_KEY, "Revocation Key"},
        {PGP_PTAG_SS_ISSUER_KEY_ID, "Issuer key ID"},
+       {PGP_PTAG_SS_ISSUER_FINGERPRINT, "Issuer Fingerprint"},
        {PGP_PTAG_SS_NOTATION_DATA, "Notation Data"},
        {PGP_PTAG_SS_PREFERRED_HASH, "Preferred Hash Algorithms"},
        {PGP_PTAG_SS_PREF_COMPRESS, "Preferred Compression Algorithms"},



Home | Main Index | Thread Index | Old Index