Update method signatures that have error objects

This commit is contained in:
Sergey Abramchuk
2018-02-02 11:40:53 +03:00
parent 4a951f626e
commit 82a42eddc3
6 changed files with 32 additions and 27 deletions
+11 -7
View File
@@ -10,22 +10,26 @@
typedef NS_ENUM(NSInteger, OpenVPNKeyType);
NS_ASSUME_NONNULL_BEGIN
@interface OpenVPNPrivateKey : NSObject
+ (nullable OpenVPNPrivateKey *)keyWithPEM:(nonnull NSData *)pemData
+ (nullable OpenVPNPrivateKey *)keyWithPEM:(NSData *)pemData
password:(nullable NSString *)password
error:(out NSError * _Nullable * _Nullable)error;
error:(NSError **)error;
+ (nullable OpenVPNPrivateKey *)keyWithDER:(nonnull NSData *)derData
+ (nullable OpenVPNPrivateKey *)keyWithDER:(NSData *)derData
password:(nullable NSString *)password
error:(out NSError * _Nullable * _Nullable)error;
error:(NSError **)error;
- (nonnull instancetype) init NS_UNAVAILABLE;
- (instancetype) init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSInteger size;
@property (nonatomic, readonly) OpenVPNKeyType type;
- (nullable NSData *)pemData:(out NSError * _Nullable * _Nullable)error;
- (nullable NSData *)derData:(out NSError * _Nullable * _Nullable)error;
- (nullable NSData *)pemData:(NSError **)error;
- (nullable NSData *)derData:(NSError **)error;
@end
NS_ASSUME_NONNULL_END