mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-03 11:42:47 -05:00
Use bio_hash_data() to compute a message digest value of a CAB file
This commit is contained in:

committed by
Michał Trojnara

parent
b0391244a6
commit
11eb76d4f3
2
msi.c
2
msi.c
@ -745,7 +745,7 @@ int msi_calc_digest(char *indata, int mdtype, u_char *mdbuf, uint32_t fileend)
|
||||
return 0; /* FAILED */
|
||||
}
|
||||
BIO_push(bhash, BIO_new(BIO_s_null()));
|
||||
if (!bio_hash_data(indata, bhash, 0, fileend)) {
|
||||
if (!bio_hash_data(indata, bhash, 0, 0, fileend)) {
|
||||
printf("Unable to calculate digest\n");
|
||||
BIO_free_all(bhash);
|
||||
return 0; /* FAILED */
|
||||
|
Reference in New Issue
Block a user