]>
git.saurik.com Git - apple/security.git/blob - OSX/utilities/SecXPCHelper.h
9 #import <Foundation/Foundation.h>
11 NS_ASSUME_NONNULL_BEGIN
13 @interface SecXPCHelper
: NSObject
14 + (NSSet
<Class
> *)safeErrorClasses
;
15 + (NSError
* _Nullable
)cleanseErrorForXPC
:(NSError
* _Nullable
)error
;
18 * Some NSError objects contain non-NSSecureCoding-compliant userInfo.
19 * When in doubt, use cleanseErrorForXPC: before encodedDataFromError:
21 + (NSError
* _Nullable
)errorFromEncodedData
:(NSData
*)data
;
22 + (NSData
*)encodedDataFromError
:(NSError
*)error
;
27 #endif // SecXPCHelper_h