tDump content if signature is verified - sick - sign and check files using ed25519
 (HTM) git clone git://z3bra.org/sick
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b3e88aee5ac4cd166913cb6cb90eab185f04efbb
 (DIR) parent ec3a06cca6264dbe7ba775a13af695750b752fd0
 (HTM) Author: z3bra <willyatmailoodotorg>
       Date:   Mon, 16 May 2016 09:26:40 +0200
       
       Dump content if signature is verified
       
       Diffstat:
         M sick.c                              |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/sick.c b/sick.c
       t@@ -229,7 +229,6 @@ check(FILE *fp, FILE *key)
                        return ERR_NOSIG;
                }
        
       -
                if ((len = extractmsg(&msg, buf)) == 0) {
                        free(buf);
                        free(sig);
       t@@ -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);