Declare OpenVPNCertificate class and its methods for parsing PEM and DER format

This commit is contained in:
Sergey Abramchuk
2017-09-06 18:07:16 +03:00
parent b86e4f57ab
commit 23beb936cf
2 changed files with 75 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
//
// OpenVPNCertificate.h
// OpenVPN Adapter
//
// Created by Sergey Abramchuk on 06.09.17.
//
//
#import <Foundation/Foundation.h>
@interface OpenVPNCertificate : NSObject
+ (nullable OpenVPNCertificate *)certificateWithPEM:(nonnull NSData *)pemData
error:(out NSError * __nullable * __nullable)error;
+ (nullable OpenVPNCertificate *)certificateWithDER:(nonnull NSData *)derData
error:(out NSError * __nullable * __nullable)error;
- (nonnull instancetype) __unavailable init;
@end