]> git.saurik.com Git - apple/xnu.git/blame - libkern/coretrust/coretrust.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / libkern / coretrust / coretrust.c
CommitLineData
c3c9b80d
A
1#include <libkern/libkern.h>
2#include <libkern/section_keywords.h>
3#include <libkern/coretrust/coretrust.h>
4
5#if defined(SECURITY_READ_ONLY_LATE)
6SECURITY_READ_ONLY_LATE(const coretrust_t *) coretrust = NULL;
7#else
8const coretrust_t *coretrust = NULL;
9#endif
10
11void
12coretrust_interface_register(const coretrust_t *ct)
13{
14 if (coretrust) {
15 panic("coretrust interface already set");
16 }
17 coretrust = ct;
18}