2017-04-21 23:41:08 +08:00
|
|
|
//
|
|
|
|
// OpenVPNConfiguration+Internal.h
|
|
|
|
// OpenVPN Adapter
|
|
|
|
//
|
|
|
|
// Created by Sergey Abramchuk on 21.04.17.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <client/ovpncli.hpp>
|
|
|
|
|
|
|
|
#import "OpenVPNConfiguration.h"
|
|
|
|
|
|
|
|
using namespace openvpn;
|
|
|
|
|
|
|
|
@interface OpenVPNConfiguration (Internal)
|
|
|
|
|
|
|
|
@property (readonly) ClientAPI::Config config;
|
|
|
|
|
2017-04-28 00:44:52 +08:00
|
|
|
+ (OpenVPNTransportProtocol)getTransportProtocolFromValue:(nullable NSString *)value;
|
|
|
|
+ (nonnull NSString *)getValueFromTransportProtocol:(OpenVPNTransportProtocol)protocol;
|
2017-04-28 00:17:14 +08:00
|
|
|
|
2017-04-28 00:44:52 +08:00
|
|
|
+ (OpenVPNIPv6Preference)getIPv6PreferenceFromValue:(nullable NSString *)value;
|
|
|
|
+ (nonnull NSString *)getValueFromIPv6Preference:(OpenVPNIPv6Preference)preference;
|
2017-04-28 00:17:14 +08:00
|
|
|
|
2017-04-28 00:44:52 +08:00
|
|
|
+ (OpenVPNCompressionMode)getCompressionModeFromValue:(nullable NSString *)value;
|
|
|
|
+ (nonnull NSString *)getValueFromCompressionMode:(OpenVPNCompressionMode)compressionMode;
|
|
|
|
|
|
|
|
+ (OpenVPNMinTLSVersion)getMinTLSFromValue:(nullable NSString *)value;
|
|
|
|
+ (nonnull NSString *)getValueFromMinTLS:(OpenVPNMinTLSVersion)minTLS;
|
|
|
|
|
|
|
|
+ (OpenVPNTLSCertProfile)getTLSCertProfileFromValue:(nullable NSString *)value;
|
|
|
|
+ (nonnull NSString *)getValueFromTLSCertProfile:(OpenVPNTLSCertProfile)tlsCertProfile;
|
2017-04-28 00:17:14 +08:00
|
|
|
|
2017-04-21 23:41:08 +08:00
|
|
|
@end
|