diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-11-20 16:04:44 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-11-20 16:04:44 -0500 |
commit | ef3e6ea50b1740dcda53ee8dc065611896b3a7db (patch) | |
tree | 3af1a3b92be1149bd7d3d26159ddd71ec758716e /b4/attest.py | |
parent | 48c1995118741eab177cbf47d22647be87a08ea9 (diff) | |
download | b4-ef3e6ea50b1740dcda53ee8dc065611896b3a7db.tar.gz |
Fix signature verification for b4 pr
We moved pgp sig verification code around, so fix it for the invocation
in b4 pr.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/attest.py')
-rw-r--r-- | b4/attest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/b4/attest.py b/b4/attest.py index 4391b19..a4012d7 100644 --- a/b4/attest.py +++ b/b4/attest.py @@ -39,7 +39,7 @@ def in_header_attest(lmsg: b4.LoreMessage, mode: str = 'pgp', replace: bool = Fa f'm={lmsg.attestation.mb}', f'p={lmsg.attestation.pb}', ] - hhname, hhval = b4.LoreAttestation.dkim_canonicalize_header(lmsg.attestation.hashes_header_name, '; '.join(hparts)) + hhname, hhval = b4.dkim_canonicalize_header(lmsg.attestation.hashes_header_name, '; '.join(hparts)) headers.append(f'{hhname}:{hhval}') logger.debug('Signing with mode=%s', mode) @@ -59,7 +59,7 @@ def in_header_attest(lmsg: b4.LoreMessage, mode: str = 'pgp', replace: bool = Fa 'b=', ] - shname, shval = b4.LoreAttestation.dkim_canonicalize_header(lmsg.attestation.sig_header_name, '; '.join(hparts)) + shname, shval = b4.dkim_canonicalize_header(lmsg.attestation.sig_header_name, '; '.join(hparts)) headers.append(f'{shname}:{shval}') payload = '\r\n'.join(headers).encode() ecode, out, err = b4.gpg_run_command(gpgargs, payload) |