Commit Graph

491 Commits

Author SHA1 Message Date
yjh-styx e0eb331baf Postpone stripping old signature after it is extracted (#260) 2023-04-28 11:59:07 +02:00
olszomal 7bb21c3539 Tests: generate new certificates and keys 2023-04-16 10:43:24 +02:00
olszomal edcb18d63f Tests: use TSA-CRLfile 2023-04-16 10:43:24 +02:00
olszomal 3d7b8d2a21 Get Certificate Revocation List from a CRL distribution point 2023-04-16 10:43:24 +02:00
olszomal 7bfe3b5db9 Fix update_data_size() 2023-03-30 20:57:38 +02:00
olszomal dd365d68c4 Calculate padding length 2023-03-30 20:57:38 +02:00
olszomal 09555e8c05 Inspect PE attribute certificate table 2023-03-30 20:57:38 +02:00
olszomal e4aa06f0c0 Check PE checksum 2023-03-30 20:57:38 +02:00
olszomal 46e9ee447f Fix pagehash resource leak, CID 1536895 2023-03-29 08:51:01 +02:00
olszomal 3e7247d9dc Fix pe_page_hash_get(), CID 1536895, 1536897 2023-03-28 21:02:12 +02:00
olszomal d2f1b9c035 Fix leafhash resource leak, CID 1536899 2023-03-28 21:00:42 +02:00
olszomal 4199310cdf Fix indata resource leak, CID 1536896 2023-03-28 20:59:57 +02:00
Michał Trojnara 0204d04a25 Stop using tabs for indentation 2023-03-25 23:39:52 +01:00
olszomal 246f0abbfc Optional CMake parameters 2023-03-25 20:34:25 +01:00
Małgorzata Olszówka 0f51a06b8f Separate common and format-dependent functions (#241) 2023-03-25 20:32:58 +01:00
Charles Duffy 44a6768089 Avoid link failures on Darwin when AppleClang not matched (#246) 2023-03-14 14:37:24 +01:00
olszomal 93f5f800d6 Fix resource leak, CID 1535262 2023-02-28 08:27:46 +01:00
olszomal 4db6ed0cad Fix memory leak 2023-02-26 21:12:07 +01:00
olszomal 32b65659be Use big/little-endian conversion in pe_calc_realchecksum() 2023-02-26 21:12:07 +01:00
olszomal 8e74a05b40 msi_calc_digest() with FILE_HEADER parameter 2023-02-26 21:12:07 +01:00
olszomal 83e47e0252 Specify the maximum NumberOfSections value 2023-02-26 21:12:07 +01:00
olszomal 41e6042c26 Specify the maximum SizeOfOptionalHeader value 2023-02-26 21:12:07 +01:00
olszomal 33c1fdaa85 Remove wrong type casting 2023-02-26 21:12:07 +01:00
olszomal 11eb76d4f3 Use bio_hash_data() to compute a message digest value of a CAB file 2023-02-26 21:12:07 +01:00
olszomal b0391244a6 New function bio_hash_data() 2023-02-26 21:12:07 +01:00
olszomal 83f6ceeaea Fix compiler warnings 2023-02-26 21:12:07 +01:00
olszomal b96a7a2232 Use BIO_f_md instead of EVP_MD_CTX to compute a message digest value of the PE and CAB file 2023-02-26 21:12:07 +01:00
olszomal ff8034af2e Use BIO_f_md instead of EVP_MD_CTX to compute a message digest value of the MSI file 2023-02-26 21:12:07 +01:00
olszomal bde67ec1e2 Use BIO_f_md instead of EVP_MD_CTX to calculate timestamp, page hash and leaf hash 2023-02-26 21:12:07 +01:00
Julien Cristau c5ad70d31a Fix asn1_get_time_t timezone offset
mktime takes an input in local time, but what we have is UTC.  timegm
does the right thing but is a nonstandard GNU and BSD extension, while
Windows has _mkgmtime.
2023-02-24 11:03:08 +01:00
Michał Trojnara 27a2a2bfa3 Install Xcode 2023-02-22 16:38:32 +01:00
olszomal 827f167f8b Fix default command "sign" 2023-02-22 15:40:18 +01:00
Michał Trojnara 4098a5efc7 Install missing "make" in the CI on macOS (#236) 2023-02-22 15:39:03 +01:00
Michał Trojnara e88bc1ca14 Remove an automake dependency 2023-01-24 10:09:35 +01:00
olszomal dd2aaf0804 Provide a non-zero divisor, CID 1519382 2023-01-23 18:04:37 +01:00
olszomal 08113a08cb Check pagesize upper bound, CID 1519382 2023-01-23 14:13:43 +01:00
olszomal 29843ccf40 Fix resource leak, CID 1530764, 1530765 2023-01-23 11:14:06 +01:00
olszomal 5fef4faf47 Check PE header value ranges, CID 1519382 2023-01-20 15:26:18 +01:00
olszomal 5981c740c9 Check signature length, CID 1519389 2023-01-20 15:20:52 +01:00
olszomal f3af509973 Unsupported input file type to use with -catalog option 2023-01-20 10:53:49 +01:00
olszomal c29e14e697 Reset calculated message digest, CID 1519395 2023-01-20 10:53:49 +01:00
olszomal 4da5526c05 Unmap a file in case of error, CID 1519391 2023-01-19 17:52:28 +01:00
olszomal 4ec23dbaa5 Fix resource leak, CID 1519397 2023-01-19 17:51:35 +01:00
olszomal d9979c4bc6 Check a value range, CID 1519382 2023-01-19 17:51:08 +01:00
olszomal 695892b8bf Check sector location, CID 1519384 2023-01-19 17:50:27 +01:00
olszomal 192ff59916 Fix use after free null url, CID 1530710 2023-01-19 17:48:39 +01:00
Michał Trojnara 506daf84ac Discover engine ID if full path was specified
Fix #180
2023-01-19 11:58:52 +01:00
olszomal bb6322e378 Close a file descriptor, CID 1208035 2023-01-18 21:19:35 +01:00
olszomal b0eaa96d45 Squash the uninitialized pointer read warning, CID 1519385, 1519387 2023-01-18 21:17:50 +01:00
olszomal fade782e58 Fix memory leak in stream_handle(), CID 1519397, 1519388, 1519402, 1519403 2023-01-18 21:16:34 +01:00