From afe86cd0a26f188f7039c2ae996c2d0c777ee93f Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Wed, 12 May 2021 15:32:00 -0400 Subject: 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 --- b4/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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]: -- cgit v1.2.3