Add boilerplate for OpenVPNPrivateKey implementation

This commit is contained in:
Sergey Abramchuk
2017-09-07 10:51:57 +03:00
parent e4d57245ad
commit b3ecfa1680
2 changed files with 75 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
//
// OpenVPNPrivateKey.h
// OpenVPN Adapter
//
// Created by Sergey Abramchuk on 07.09.17.
//
//
#import <Foundation/Foundation.h>
@interface OpenVPNPrivateKey : NSObject
+ (nullable OpenVPNPrivateKey *)keyWithPEM:(nonnull NSData *)pemData
password:(nullable NSString *)password
error:(out NSError * __nullable * __nullable)error;
+ (nullable OpenVPNPrivateKey *)keyWithDER:(nonnull NSData *)derData
password:(nullable NSString *)password
error:(out NSError * __nullable * __nullable)error;
- (nonnull instancetype) __unavailable init;
- (nullable NSData *)pemData:(out NSError * __nullable * __nullable)error;
- (nullable NSData *)derData:(out NSError * __nullable * __nullable)error;
@end