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/netpgpverify absorb issu...



details:   https://anonhg.NetBSD.org/src/rev/d8a4362aacff
branches:  trunk
changeset: 941049:d8a4362aacff
user:      jhigh <jhigh%NetBSD.org@localhost>
date:      Sat Oct 17 23:08:57 2020 +0000

description:
absorb issuer fingerprint (RFC4880bis 5.2.3.28) in libverify.c

diffstat:

 crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (31 lines):

diff -r 3b724e57a7de -r d8a4362aacff crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c
--- a/crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c      Sat Oct 17 21:32:30 2020 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c      Sat Oct 17 23:08:57 2020 +0000
@@ -151,6 +151,8 @@
        char                    *features;
        char                    *why_revoked;
        uint8_t                 *revoke_fingerprint;
+       uint8_t                 *issuer_fingerprint;
+       uint8_t                  ifver;
        uint8_t                  revoke_alg;
        uint8_t                  revoke_sensitive;
        uint8_t                  trustsig;
@@ -925,6 +927,7 @@
 #define SUBPKT_FEATURES                        30
 #define SUBPKT_SIGNATURE_TARGET                31
 #define SUBPKT_EMBEDDED_SIGNATURE      32
+#define SUBPKT_ISSUER_FINGERPRINT      33
 
 #define UNCOMPRESSED                   0
 #define ZIP_COMPRESSION                        1
@@ -1180,6 +1183,10 @@
                        sigpkt->sig.revoked = *p++ + 1;
                        sigpkt->sig.why_revoked = (char *)(void *)p;
                        break;
+               case SUBPKT_ISSUER_FINGERPRINT:
+                       sigpkt->sig.ifver = *p;
+                       sigpkt->sig.issuer_fingerprint = &p[1];
+                       break;
                default:
                        printf("Ignoring unusual/reserved signature subpacket %d\n", subpkt.tag);
                        break;



Home | Main Index | Thread Index | Old Index