1/*
2 * testsecevent.h
3 */
4
5#ifndef _TESTSECEVENT_H_
6#define _TESTSECEVENT_H_  1
7#include <Security/SecKeychain.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define is_sec_event(EVENT, KEYCHAIN, ITEM, PID, TESTNAME) \
14( \
15	test_is_sec_event((EVENT), (KEYCHAIN), (ITEM), (PID), (TESTNAME), \
16		test_directive, test_reason, __FILE__, __LINE__) \
17)
18
19#define no_sec_event(TESTNAME) \
20( \
21	test_is_sec_event(0, NULL, NULL, NULL, (TESTNAME), \
22		test_directive, test_reason, __FILE__, __LINE__) \
23)
24
25OSStatus test_sec_event_register(SecKeychainEventMask mask);
26
27OSStatus test_sec_event_deregister();
28
29int test_is_sec_event(SecKeychainEvent event, SecKeychainRef *keychain,
30	SecKeychainItemRef *item, pid_t *pid, const char *description,
31	const char *directive, const char *reason, const char *file,
32	unsigned line);
33
34#ifdef __cplusplus
35}
36#endif /* __cplusplus */
37
38#endif /* !_TESTSECEVENT_H_ */
39