aboutsummaryrefslogtreecommitdiffstats
path: root/common/openpgpdefs.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-09-05 19:27:13 +0000
committerWerner Koch <[email protected]>2019-09-05 19:27:13 +0000
commit209caaff66fbe96df144e6b1474435992e087fa4 (patch)
treecd48db5a2e3feb4b4f377bbdc8a985bdf25754af /common/openpgpdefs.h
parentgpg: Rework the signature subpacket iteration function. (diff)
downloadgnupg-209caaff66fbe96df144e6b1474435992e087fa4.tar.gz
gnupg-209caaff66fbe96df144e6b1474435992e087fa4.zip
gpg: Prepare parser for the new attestation certificates.
* common/openpgpdefs.h (SIGSUBPKT_ATTST_SIGS): New. * g10/keydb.h (IS_ATTST_SIGS): New. (IS_CERT): Include the new one. * g10/sign.c (mk_notation_policy_etc): Do not put notations into attestation key signatures. * g10/parse-packet.c (dump_sig_subpkt): Add new arg digest_algo. Print the attestation sigs. (parse_one_sig_subpkt): Support SIGSUBPKT_ATTST_SIGS. (can_handle_critical): Ditto. (enum_sig_subpkt): Pass digest algo to dump_sig_subpkt. -- This change allows to list the new subpacket with --list-packets. Example output: :signature packet: algo 22, keyid C694723A1370EAB1 version 4, created 1567097576, md5len 0, sigclass 0x16 digest algo 8, begin of digest ff 0c hashed subpkt 2 len 4 (sig created 2019-08-29) hashed subpkt 37 len 32 (attst-sigs: 1 A794C6E9CCFE2F34C67E07[...]) hashed subpkt 33 len 21 (issuer fpr v4 156A3872[...]) subpkt 16 len 8 (issuer key ID C694723A1370EAB1) data: [256 bits] data: [256 bits] GnuPG-bug-id: 4694 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/openpgpdefs.h')
-rw-r--r--common/openpgpdefs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/openpgpdefs.h b/common/openpgpdefs.h
index 2f7ff456e..868e141ce 100644
--- a/common/openpgpdefs.h
+++ b/common/openpgpdefs.h
@@ -119,6 +119,8 @@ typedef enum
SIGSUBPKT_ISSUER_FPR = 33, /* Issuer fingerprint. */
SIGSUBPKT_PREF_AEAD = 34, /* Preferred AEAD algorithms. */
+ SIGSUBPKT_ATTST_SIGS = 37, /* Attested Certifications. */
+
SIGSUBPKT_FLAG_CRITICAL = 128
}
sigsubpkttype_t;