From e1d9be730ca07e10a20df5ef60d7562030f10676 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 5 Sep 2019 20:36:38 +0200 Subject: 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 --- g10/build-packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/build-packet.c') diff --git a/g10/build-packet.c b/g10/build-packet.c index 2a95df694..865f2b500 100644 --- a/g10/build-packet.c +++ b/g10/build-packet.c @@ -1527,7 +1527,7 @@ sig_to_notation(PKT_signature *sig) - n1 bytes of name data - n2 bytes of value data */ - while((p=enum_sig_subpkt(sig->hashed,SIGSUBPKT_NOTATION,&len,&seq,&crit))) + while((p=enum_sig_subpkt (sig, 1, SIGSUBPKT_NOTATION, &len, &seq, &crit))) { int n1,n2; struct notation *n=NULL; -- cgit v1.2.3