add forgotten usign_v sigfile parameter
authorDaniel Golle <daniel@makrotopia.org>
Thu, 7 Jun 2018 10:09:57 +0000 (12:09 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 14 Jun 2018 16:51:22 +0000 (18:51 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This work was sponsored by WIO (wiowireless.com)

usign-exec.c

index bed3db7ee059ba14af797452eea609a4cfc3de5b..91129883d25ad332ed519b0c50e526709b1fc75c 100644 (file)
@@ -30,6 +30,11 @@ int usign_v(const char *msgfile, const char *pubkeyfile,
                usign_argv[usign_argc++] = pubkeydir;
        }
 
+       if (sigfile) {
+               usign_argv[usign_argc++] = "-x";
+               usign_argv[usign_argc++] = sigfile;
+       }
+
        pid = fork();
        switch (pid) {
        case -1: