pe-binary: drop pe_hash() and friends when OpenSSL support is disabled
These three functions are currently only used by sbsign, which requires OpenSSL. Moreover, pe_hash() and uki_hash() anyway do not work if OpenSSL is disabled. Let's only declare them when OpenSSL support is enabled.
This commit is contained in:
@@ -151,8 +151,11 @@ bool pe_is_addon(const PeHeader *pe_header, const IMAGE_SECTION_HEADER *sections
|
||||
bool pe_is_native(const PeHeader *pe_header);
|
||||
int pe_is_native_fd(int fd);
|
||||
|
||||
#if HAVE_OPENSSL
|
||||
int pe_hash(int fd, const EVP_MD *md, void **ret_hash, size_t *ret_hash_size);
|
||||
|
||||
/* This does not depend on OpenSSL, but is currently only used by sbsign which requires OpenSSL. */
|
||||
int pe_checksum(int fd, uint32_t *ret);
|
||||
|
||||
int uki_hash(int fd, const EVP_MD *md, void *ret_hashes[static _UNIFIED_SECTION_MAX], size_t *ret_hash_size);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user