]>
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
*)cleanseErrorForXPC
:(NSError
* _Nullable
)error
;
18 * Some NSError objects contain non-NSSecureCoding-compliant userInfo.
19 * When in doubt, use cleanseErrorForXPC: before encodedDataFromError:
21 + (NSError
*)errorFromEncodedData
:(NSData
*)data
;
22 + (NSData
*)encodedDataFromError
:(NSError
*)error
;
27 #endif // SecXPCHelper_h