commit b3e88aee5ac4cd166913cb6cb90eab185f04efbb parent ec3a06cca6264dbe7ba775a13af695750b752fd0 Author: z3bra <willyatmailoodotorg> Date: Mon May 16 09:26:40 +12000 Dump content if signature is verified Diffstat:
sick.c | | | 4 | +++- |
diff --git a/sick.c b/sick.c @@ -229,7 +229,6 @@ check(FILE *fp, FILE *key) return ERR_NOSIG; } - if ((len = extractmsg(&msg, buf)) == 0) { free(buf); free(sig); @@ -237,6 +236,9 @@ check(FILE *fp, FILE *key) ret = ed25519_verify(sig, msg, len, pub); + if (ret) + fwrite(msg, 1, len, stdout); + free(msg); free(buf); free(sig);