X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/84aacf34eae6543be9f0280b2015385f91e5c2c6..b54c578e17e9bcbd74aa30ea75e25e955b9a6205:/OSX/utilities/debugging_test.h diff --git a/OSX/utilities/debugging_test.h b/OSX/utilities/debugging_test.h new file mode 100644 index 00000000..444c667b --- /dev/null +++ b/OSX/utilities/debugging_test.h @@ -0,0 +1,32 @@ +// +// debugging_test.h +// Copyright (c) 2014 Apple Inc. All Rights Reserved. +// + +// +// Interfaces exported for tests for debugging code. +// + +#ifndef _SECURITY_UTILITIES_DEBUGGING_TEST_H_ +#define _SECURITY_UTILITIES_DEBUGGING_TEST_H_ + +#include +#include "utilities/debugging.h" + +__BEGIN_DECLS + +// +// These would all be static inside +// debugging.c, but unit tests can use them +// + +void __security_debug_init(void); + +bool IsScopeActive(int level, CFStringRef scope); +bool IsScopeActiveC(int level, const char *scope); + +void ApplyScopeListForIDC(const char *scopeList, SecDebugScopeID whichID); + +__END_DECLS + +#endif