]>
Commit | Line | Data |
---|---|---|
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) | |
6 | SECURITY_READ_ONLY_LATE(const coretrust_t *) coretrust = NULL; | |
7 | #else | |
8 | const coretrust_t *coretrust = NULL; | |
9 | #endif | |
10 | ||
11 | void | |
12 | coretrust_interface_register(const coretrust_t *ct) | |
13 | { | |
14 | if (coretrust) { | |
15 | panic("coretrust interface already set"); | |
16 | } | |
17 | coretrust = ct; | |
18 | } |