mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
cdf300eb47
commit
2cdd458079
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue