mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-05 17:08:05 -05:00
added support for sha384 and sha512
This commit is contained in:
parent
9152c925c0
commit
e8bd3c3b68
@ -637,7 +637,7 @@ static void usage(const char *argv0)
|
|||||||
"\t[ sign ]\n"
|
"\t[ sign ]\n"
|
||||||
"\t\t( -certs <certfile> -key <keyfile> | -pkcs12 <pkcs12file> )\n"
|
"\t\t( -certs <certfile> -key <keyfile> | -pkcs12 <pkcs12file> )\n"
|
||||||
"\t\t[ -pass <password> ]\n"
|
"\t\t[ -pass <password> ]\n"
|
||||||
"\t\t[ -h {md5,sha1,sha2} ]\n"
|
"\t\t[ -h {md5,sha1,sha2(56),sha384,sha512} ]\n"
|
||||||
"\t\t[ -n <desc> ] [ -i <url> ] [ -jp <level> ] [ -comm ]\n"
|
"\t\t[ -n <desc> ] [ -i <url> ] [ -jp <level> ] [ -comm ]\n"
|
||||||
#ifdef ENABLE_CURL
|
#ifdef ENABLE_CURL
|
||||||
"\t\t[ -t <timestampurl> [ -p <proxy> ]]\n"
|
"\t\t[ -t <timestampurl> [ -p <proxy> ]]\n"
|
||||||
@ -1311,8 +1311,12 @@ int main(int argc, char **argv)
|
|||||||
md = EVP_md5();
|
md = EVP_md5();
|
||||||
} else if (!strcmp(*argv, "sha1")) {
|
} else if (!strcmp(*argv, "sha1")) {
|
||||||
md = EVP_sha1();
|
md = EVP_sha1();
|
||||||
} else if (!strcmp(*argv, "sha2")) {
|
} else if (!strcmp(*argv, "sha2") || !strcmp(*argv, "sha256")) {
|
||||||
md = EVP_sha256();
|
md = EVP_sha256();
|
||||||
|
} else if (!strcmp(*argv, "sha384")) {
|
||||||
|
md = EVP_sha384();
|
||||||
|
} else if (!strcmp(*argv, "sha512")) {
|
||||||
|
md = EVP_sha512();
|
||||||
} else {
|
} else {
|
||||||
usage(argv0);
|
usage(argv0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user