Wrap echo and info properties

This commit is contained in:
Sergey Abramchuk
2017-04-24 16:04:25 +03:00
parent 39701d0170
commit 0b0a7fcddf
2 changed files with 27 additions and 1 deletions

View File

@@ -190,4 +190,14 @@ typedef NS_ENUM(NSInteger, OpenVPNTLSCertProfile) {
*/
@property (nullable, nonatomic) NSDictionary<NSString *, NSString *> *peerInfo;
/**
Pass through pushed "echo" directives via "ECHO" event
*/
@property (nonatomic) BOOL echo;
/**
Pass through control channel INFO notifications via "INFO" event
*/
@property (nonatomic) BOOL info;
@end

View File

@@ -241,7 +241,7 @@ using namespace openvpn;
return _config.forceAesCbcCiphersuites;
}
-(void)setForceCiphersuitesAESCBC:(BOOL)forceCiphersuitesAESCBC {
- (void)setForceCiphersuitesAESCBC:(BOOL)forceCiphersuitesAESCBC {
_config.forceAesCbcCiphersuites = forceCiphersuitesAESCBC;
}
@@ -343,4 +343,20 @@ using namespace openvpn;
}];
}
- (BOOL)echo {
return _config.echo;
}
- (void)setEcho:(BOOL)echo {
_config.echo = echo;
}
- (BOOL)info {
return _config.info;
}
- (void)setInfo:(BOOL)info {
_config.info = info;
}
@end