vaseboot/include/VasEBoot/module_verifier.h

21 lines
718 B
C

#include <stdint.h>
#include <stdlib.h>
#include <VasEBoot/types.h>
#define VAS_EBOOT_MODULE_VERIFY_SUPPORTS_REL 1
#define VAS_EBOOT_MODULE_VERIFY_SUPPORTS_RELA 2
struct VasEBoot_module_verifier_arch {
const char *name;
int voidp_sizeof;
int bigendian;
int machine;
int flags;
const int *supported_relocations;
const int *short_relocations;
};
void VasEBoot_module_verify64(const char * const filename, void *module_img, size_t module_size, const struct VasEBoot_module_verifier_arch *arch, const char **whitelist_empty);
void VasEBoot_module_verify32(const char * const filename, void *module_img, size_t module_size, const struct VasEBoot_module_verifier_arch *arch, const char **whitelist_empty);