diff options
author | Werner Koch <[email protected]> | 2019-09-05 18:36:38 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-09-05 18:38:23 +0000 |
commit | e1d9be730ca07e10a20df5ef60d7562030f10676 (patch) | |
tree | 5acbb9b3236c3d0ac4230c69d42779c5245a0dff /g10/pkclist.c | |
parent | scd: Implement auto-switching between Yubikey apps. (diff) | |
download | gnupg-e1d9be730ca07e10a20df5ef60d7562030f10676.tar.gz gnupg-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 <[email protected]>
Diffstat (limited to 'g10/pkclist.c')
-rw-r--r-- | g10/pkclist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/pkclist.c b/g10/pkclist.c index 1fd23a3e4..36ec4757e 100644 --- a/g10/pkclist.c +++ b/g10/pkclist.c @@ -63,8 +63,8 @@ do_show_revocation_reason( PKT_signature *sig ) int seq = 0; const char *text; - while( (p = enum_sig_subpkt (sig->hashed, SIGSUBPKT_REVOC_REASON, - &n, &seq, NULL )) ) { + while ((p = enum_sig_subpkt (sig, 1, SIGSUBPKT_REVOC_REASON, + &n, &seq, NULL)) ) { if( !n ) continue; /* invalid - just skip it */ |