diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-05-11 17:46:02 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-05-11 17:46:02 -0400 |
commit | f23c1474ffc7ae9d71d1f43e19d0cf902eeaa2b5 (patch) | |
tree | efb7170480f75820f0470b0329e954cf7e126cf3 /b4/__init__.py | |
parent | 28bf91d1b24767d9b5de48f3611ee9c9f050c395 (diff) | |
download | b4-f23c1474ffc7ae9d71d1f43e19d0cf902eeaa2b5.tar.gz |
Rudimentary support for showing patatt key info
I expect that we'll have better keyring management tooling in the
future, but for now show some rudimentary information about patatt keys
used in a thread via --show-keys, e.g.:
b4 mbox --show-keys 20210511143536.743919-1-konstantin@linuxfoundation.org
b4 mbox --show-keys 20210507181322.172569-1-konstantin@linuxfoundation.org
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/__init__.py')
-rw-r--r-- | b4/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py index 59dfccf..12afe94 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -1027,7 +1027,8 @@ class LoreMessage: attestations = patatt.validate_message(self.msg.as_bytes(), sources) for passing, identity, signtime, keysrc, keyalgo, errors in attestations: - attestor = LoreAttestorPatatt(passing, identity, signtime, keysrc, keyalgo, errors) + signdt = LoreAttestor.parse_ts(signtime) + attestor = LoreAttestorPatatt(passing, identity, signdt, keysrc, keyalgo, errors) self._attestors.append(attestor) def get_attestation_trailers(self, attpolicy: str, maxdays: int = 0) -> Tuple[str, list, bool]: |