mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 10:24:46 +00:00
Tidying
This commit is contained in:
1 parent
cdf300eb47
commit
2cdd458079
1 file changed
+2
-1
+2
-1
@@ -250,7 +250,8 @@ def verifyPostHeaders(httpPrefix: str, publicKeyPem: str, headers: dict,
|
||||
signature = base64.b64decode(signatureDict['signature'])
|
||||
|
||||
try:
|
||||
pkcs1_15.new(publicKeyPem).verify(headerDigest, signature)
|
||||
pubKey = pkcs1_15.new(publicKeyPem)
|
||||
pubKey.verify(headerDigest, signature)
|
||||
return True
|
||||
except (ValueError, TypeError):
|
||||
if debug:
|
||||
|
||||
Reference in new issue
Block a user