aboutsummaryrefslogtreecommitdiff
path: root/b4
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-12 15:32:00 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-12 15:32:00 -0400
commitafe86cd0a26f188f7039c2ae996c2d0c777ee93f (patch)
tree2662317291b10b3eb797cc8cdcb40190ac288094 /b4
parente7ceda03356acc9579b50d745e6ab8120cdb677d (diff)
downloadb4-afe86cd0a26f188f7039c2ae996c2d0c777ee93f.tar.gz
Properly fail with BADSIG on bad signature
Fix logic error where we incorrectly reported "No key" when it was actually "BADSIG". Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4')
-rw-r--r--b4/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 61fe542..5a8466b 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -1633,6 +1633,8 @@ class LoreAttestorPatatt(LoreAttestor):
if result == patatt.RES_VALID:
self.passing = True
self.have_key = True
+ elif result >= patatt.RES_BADSIG:
+ self.have_key = True
def _run_command(cmdargs: list, stdin: Optional[bytes] = None) -> Tuple[int, bytes, bytes]: