From 62e8ffd0c9aedf844452b80c5a72f3d0808cabbe Mon Sep 17 00:00:00 2001 From: olszomal Date: Fri, 19 Jul 2019 12:05:30 +0200 Subject: [PATCH] allow timestamping with the add command --- osslsigncode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osslsigncode.c b/osslsigncode.c index 5e33441..3a034dc 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -2511,16 +2511,16 @@ int main(int argc, char **argv) { if (--argc < 1) usage(argv0); url = *(++argv); #ifdef ENABLE_CURL - } else if ((cmd == CMD_SIGN) && !strcmp(*argv, "-t")) { + } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-t")) { if (--argc < 1) usage(argv0); turl[nturl++] = *(++argv); - } else if ((cmd == CMD_SIGN) && !strcmp(*argv, "-ts")) { + } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-ts")) { if (--argc < 1) usage(argv0); tsurl[ntsurl++] = *(++argv); - } else if ((cmd == CMD_SIGN) && !strcmp(*argv, "-p")) { + } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-p")) { if (--argc < 1) usage(argv0); proxy = *(++argv); - } else if ((cmd == CMD_SIGN) && !strcmp(*argv, "-noverifypeer")) { + } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-noverifypeer")) { noverifypeer = 1; #endif } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-addUnauthenticatedBlob")) {