mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
39 lines
1.1 KiB
Objective-C
39 lines
1.1 KiB
Objective-C
//
|
|
// OpenVPNConfiguration+Internal.h
|
|
// OpenVPN Adapter
|
|
//
|
|
// Created by Sergey Abramchuk on 21.04.17.
|
|
//
|
|
//
|
|
|
|
#import "OpenVPNConfiguration.h"
|
|
|
|
#include <client/ovpncli.hpp>
|
|
|
|
using namespace openvpn;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface OpenVPNConfiguration (Internal)
|
|
|
|
@property (readonly) ClientAPI::Config config;
|
|
|
|
+ (OpenVPNTransportProtocol)getTransportProtocolFromValue:(nullable NSString *)value;
|
|
+ (NSString *)getValueFromTransportProtocol:(OpenVPNTransportProtocol)protocol;
|
|
|
|
+ (OpenVPNIPv6Preference)getIPv6PreferenceFromValue:(nullable NSString *)value;
|
|
+ (NSString *)getValueFromIPv6Preference:(OpenVPNIPv6Preference)preference;
|
|
|
|
+ (OpenVPNCompressionMode)getCompressionModeFromValue:(nullable NSString *)value;
|
|
+ (NSString *)getValueFromCompressionMode:(OpenVPNCompressionMode)compressionMode;
|
|
|
|
+ (OpenVPNMinTLSVersion)getMinTLSFromValue:(nullable NSString *)value;
|
|
+ (NSString *)getValueFromMinTLS:(OpenVPNMinTLSVersion)minTLS;
|
|
|
|
+ (OpenVPNTLSCertProfile)getTLSCertProfileFromValue:(nullable NSString *)value;
|
|
+ (NSString *)getValueFromTLSCertProfile:(OpenVPNTLSCertProfile)tlsCertProfile;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|