5 // Created by John Hurley on 5/6/13.
6 // Copyright (c) 2013 Apple Inc. All rights reserved.
9 #ifndef _UTILITIES_SECXPCERROR_H_
10 #define _UTILITIES_SECXPCERROR_H_
12 #include <CoreFoundation/CFString.h>
13 #include <CoreFoundation/CFError.h>
18 extern CFStringRef sSecXPCErrorDomain
;
21 kSecXPCErrorSuccess
= 0,
22 kSecXPCErrorUnexpectedType
= 1,
23 kSecXPCErrorUnexpectedNull
= 2,
24 kSecXPCErrorConnectionFailed
= 3,
25 kSecXPCErrorUnknown
= 4,
28 CFErrorRef
SecCreateCFErrorWithXPCObject(xpc_object_t xpc_error
);
29 xpc_object_t
SecCreateXPCObjectWithCFError(CFErrorRef error
);
33 #endif /* UTILITIES_SECXPCERROR_H */