#include <Security/Security.h>
#include <chrono>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <thread>
|
| namespace | sec |
| | sec - security namespace
|
|
| void | sec::burn () noexcept |
| | without enforcement a failed check reports and ends the operation, nothing else
|
◆ __dx_pass_sec
| #define __dx_pass_sec |
( |
| fatal, |
|
|
| test, |
|
|
| ... ) |
Value:{\
if constexpr(fatal)\
dx::halt();\
__dx_test_status,\
cf::string(::SecCopyErrorMessageString(__dx_test_status,
nullptr)),\
__FILE__, __LINE__,\
##__VA_ARGS__);}}
a throw's whole diagnostic: the OS result, where it was raised (frame, file, line),...
Definition dx_exception.h:186
#define DX_STRINGIFY(...)
Definition dx_macros.h:34
type< const char * > string
Definition cf_string.h:134
bool os_error(os_result result) noexcept
Definition macOS/dx_platform.h:205
::IOReturn os_result
defining platform abstract type os_result for IOKit driver
Definition driverkit/dxd_platform.h:49
void burn() noexcept
without enforcement a failed check reports and ends the operation, nothing else
Definition sec.h:59
a failed security call throws, naming the call, its status and the system's own message; the fatal form lights the tamper response first - both spellings end the operation the same way, so a call site reads alike either way
◆ dx_pass_sec
| #define dx_pass_sec |
( |
| test, |
|
|
| ... ) |
Value:
#define __dx_pass_sec(fatal, test,...)
Definition sec.h:65
◆ dx_pass_sec_fatal