Add externalPki property representing External PKI profile

This commit is contained in:
Sergey Abramchuk
2020-08-18 11:12:16 +03:00
parent 78b203ec87
commit d671af614b
2 changed files with 6 additions and 0 deletions

View File

@@ -33,6 +33,11 @@ typedef NS_ENUM(NSInteger, OpenVPNTransportProtocol);
*/
@property (readonly, nonatomic) BOOL autologin;
/**
If YES this is an External PKI profile (no cert or key directives)
*/
@property (readonly, nonatomic) BOOL externalPki;
/**
Static challenge, may be empty, ignored if autologin
*/

View File

@@ -26,6 +26,7 @@ using namespace openvpn;
_friendlyName = !eval.friendlyName.empty() ? [NSString stringWithUTF8String:eval.friendlyName.c_str()] : nil;
_autologin = eval.autologin;
_externalPki = eval.externalPki;
_staticChallenge = !eval.staticChallenge.empty() ? [NSString stringWithUTF8String:eval.staticChallenge.c_str()] : nil;
_staticChallengeEcho = eval.staticChallengeEcho;