1#include <libkern/libkern.h>
2#include <libkern/section_keywords.h>
3#include <libkern/amfi/amfi.h>
4
5SECURITY_READ_ONLY_LATE(const amfi_t *) amfi = NULL;
6
7void
8amfi_interface_register(const amfi_t *mfi)
9{
10 if (amfi) {
11 panic("AppleMobileFileIntegrity interface already set");
12 }
13 amfi = mfi;
14}
15