diff options
author | Werner Koch <wk@gnupg.org> | 2019-09-05 20:36:38 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-09-05 20:38:23 +0200 |
commit | e1d9be730ca07e10a20df5ef60d7562030f10676 (patch) | |
tree | 5acbb9b3236c3d0ac4230c69d42779c5245a0dff /g10/key-clean.c | |
parent | scd: Implement auto-switching between Yubikey apps. (diff) | |
download | gnupg2-e1d9be730ca07e10a20df5ef60d7562030f10676.tar.xz gnupg2-e1d9be730ca07e10a20df5ef60d7562030f10676.zip |
gpg: Rework the signature subpacket iteration function.
* g10/parse-packet.c (enum_sig_subpkt): Replace first arg by two args
so that the entire signature packet is available. Change all callers.
(parse_sig_subpkt): Ditto.
--
This patch is a prerequisite to support the new attestation key
signatures.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/key-clean.c')
-rw-r--r-- | g10/key-clean.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/key-clean.c b/g10/key-clean.c index d701a6665..496d0194e 100644 --- a/g10/key-clean.c +++ b/g10/key-clean.c @@ -192,7 +192,7 @@ mark_usable_uid_certs (ctrl_t ctrl, kbnode_t keyblock, kbnode_t uidnode, const byte *p; u32 expire; - p = parse_sig_subpkt (sig->hashed, SIGSUBPKT_SIG_EXPIRE, NULL ); + p = parse_sig_subpkt (sig, 1, SIGSUBPKT_SIG_EXPIRE, NULL ); expire = p? sig->timestamp + buf32_to_u32(p) : 0; if (expire==0 || expire > curtime ) |