mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-20 22:45:02 -05:00
Group warnings for CAT files
This commit is contained in:
parent
6f4e9ab597
commit
8d2b562244
5
cat.c
5
cat.c
@ -69,9 +69,6 @@ static FILE_FORMAT_CTX *cat_ctx_new(GLOBAL_OPTIONS *options, BIO *hash, BIO *out
|
|||||||
printf("Unsupported command\n");
|
printf("Unsupported command\n");
|
||||||
return NULL; /* FAILED */
|
return NULL; /* FAILED */
|
||||||
}
|
}
|
||||||
if (options->cmd == CMD_VERIFY) {
|
|
||||||
printf("Warning: Use -catalog option to verify that a file, listed in catalog file, is signed\n\n");
|
|
||||||
}
|
|
||||||
filesize = get_file_size(options->infile);
|
filesize = get_file_size(options->infile);
|
||||||
if (filesize == 0)
|
if (filesize == 0)
|
||||||
return NULL; /* FAILED */
|
return NULL; /* FAILED */
|
||||||
@ -99,6 +96,8 @@ static FILE_FORMAT_CTX *cat_ctx_new(GLOBAL_OPTIONS *options, BIO *hash, BIO *out
|
|||||||
/* Push hash on outdata, if hash is NULL the function does nothing */
|
/* Push hash on outdata, if hash is NULL the function does nothing */
|
||||||
BIO_push(hash, outdata);
|
BIO_push(hash, outdata);
|
||||||
|
|
||||||
|
if (options->cmd == CMD_VERIFY)
|
||||||
|
printf("Warning: Use -catalog option to verify that a file, listed in catalog file, is signed\n\n");
|
||||||
if (options->nest)
|
if (options->nest)
|
||||||
/* I've not tried using set_nested_signature as signtool won't do this */
|
/* I've not tried using set_nested_signature as signtool won't do this */
|
||||||
printf("Warning: CAT files do not support nesting (multiple signature)\n");
|
printf("Warning: CAT files do not support nesting (multiple signature)\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user