From e8bd3c3b685f565251704b44212060355130b37e Mon Sep 17 00:00:00 2001 From: Per Allansson Date: Wed, 13 Mar 2013 17:24:54 +0100 Subject: [PATCH] added support for sha384 and sha512 --- osslsigncode.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/osslsigncode.c b/osslsigncode.c index 6871f23..31d05f6 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -637,7 +637,7 @@ static void usage(const char *argv0) "\t[ sign ]\n" "\t\t( -certs -key | -pkcs12 )\n" "\t\t[ -pass ]\n" - "\t\t[ -h {md5,sha1,sha2} ]\n" + "\t\t[ -h {md5,sha1,sha2(56),sha384,sha512} ]\n" "\t\t[ -n ] [ -i ] [ -jp ] [ -comm ]\n" #ifdef ENABLE_CURL "\t\t[ -t [ -p ]]\n" @@ -1311,8 +1311,12 @@ int main(int argc, char **argv) md = EVP_md5(); } else if (!strcmp(*argv, "sha1")) { md = EVP_sha1(); - } else if (!strcmp(*argv, "sha2")) { + } else if (!strcmp(*argv, "sha2") || !strcmp(*argv, "sha256")) { md = EVP_sha256(); + } else if (!strcmp(*argv, "sha384")) { + md = EVP_sha384(); + } else if (!strcmp(*argv, "sha512")) { + md = EVP_sha512(); } else { usage(argv0); }