diff options
author | Werner Koch <wk@gnupg.org> | 2019-09-05 21:27:13 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-09-05 21:27:13 +0200 |
commit | 209caaff66fbe96df144e6b1474435992e087fa4 (patch) | |
tree | cd48db5a2e3feb4b4f377bbdc8a985bdf25754af /dirmngr | |
parent | gpg: Rework the signature subpacket iteration function. (diff) | |
download | gnupg2-209caaff66fbe96df144e6b1474435992e087fa4.tar.xz gnupg2-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 <wk@gnupg.org>
Diffstat (limited to 'dirmngr')
0 files changed, 0 insertions, 0 deletions