merge-requests/21/head
Bob Mottram 2021-03-14 15:25:49 +00:00
parent 94c4b31e39
commit 7345381f85
2 changed files with 9 additions and 0 deletions

View File

@ -267,6 +267,8 @@ def verifyPostHeaders(httpPrefix: str, publicKeyPem: str, headers: dict,
print('DEBUG: verifyPostHeaders ' + method)
print('verifyPostHeaders publicKeyPem: ' + str(publicKeyPem))
print('verifyPostHeaders headers: ' + str(headers))
print('verifyPostHeaders messageBodyJsonStr: ' +
str(messageBodyJsonStr))
pubkey = load_pem_public_key(publicKeyPem.encode('utf-8'),
backend=default_backend())

View File

@ -279,6 +279,13 @@ def testHttpSigNew():
'cvhBfgn/xeAsNxz67SIHMgiXvLL6TFqEI1en9dl9A3ihB6ZO6+W' + \
'gUoW7OobZNlPxAUkQCc2A6oVjCYOdpKdrMAXQp2TQQ==:'
# publicKeyPem = ''
assert verifyPostHeaders(httpPrefix, publicKeyPem, headers,
boxpath, False, None,
messageBodyJsonStr, debug,
True)
def _testHttpsigBase(withDigest):
print('testHttpsig(' + str(withDigest) + ')')