diff options
| author | Autumn <git@autumnfo.rest> | 2026-05-17 11:41:46 +0100 |
|---|---|---|
| committer | Autumn <git@autumnfo.rest> | 2026-05-17 11:41:46 +0100 |
| commit | 879a900ac8e741e310f65fbafe014d0a32fb63f0 (patch) | |
| tree | 4b8bd7db4eff984bc207ef4dd00e24da08c049d5 | |
| parent | 416f346eb994b932040201f0af0b3a880833dc8e (diff) | |
[fetch] verbose log the signature validity
| -rw-r--r-- | fetch.lua | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -64,15 +64,21 @@ print("R> Response Status: -- get signature information local responseSignature = pawsd.signature.get(response) -local responseSignatureValid = pawsd.signature.validate(response) +local responseSignatureValid = pawsd.signature.validate(responseSignature, server.key) print("R> Signature: " .. responseSignature) +if responseSignatureValid then + print("R> Signature Validity: VALID") +else + print("R> Signature Validity: INVALID") +end + -- get service info local responseIndex = pawsd.service.index(response) local responseFlags = pawsd.service.flags(response) -print("R> Index: " .. responseIndex) +print("\nR> Index: " .. responseIndex) print("R> Flags: " .. responseFlags) -- get number of records |
