Return certificate serial

This commit is contained in:
Sergey Abramchuk
2018-05-15 08:45:13 +03:00
parent 15d7eb22e4
commit 033b204722
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -9,6 +9,7 @@
#include <mbedtls/x509_crt.h>
#include <mbedtls/pem.h>
#include <mbedtls/bignum.h>
#import "NSError+OpenVPNError.h"
@@ -52,6 +53,10 @@
return certificate;
}
- (NSData *)serial {
return [NSData dataWithBytes:self.crt->serial.p length:self.crt->serial.len];
}
- (instancetype)init
{
if (self = [super init]) {