mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Update method signatures that have error objects
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user