mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-04 19:52:33 +00:00
Debug
This commit is contained in:
1 parent
94c4b31e39
commit
7345381f85
2 files changed
+9
No files matched your search
@@ -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())
|
||||
|
||||
@@ -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) + ')')
|
||||
|
||||
Reference in new issue
Block a user