This commit is contained in:
bashrc committed 2021-03-14 15:25:49 +00:00
1 parent 94c4b31e39
commit 7345381f85
2 files changed
+9

No files matched your search

+2
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())
+7
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) + ')')