2017-04-21 23:41:08 +08:00
|
|
|
//
|
|
|
|
// OpenVPNConfiguration.h
|
|
|
|
// OpenVPN Adapter
|
|
|
|
//
|
|
|
|
// Created by Sergey Abramchuk on 21.04.17.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2017-04-22 00:28:09 +08:00
|
|
|
// TODO: Wrap ClientAPI::Config into Objective-C class
|
|
|
|
|
2017-04-21 23:41:08 +08:00
|
|
|
@interface OpenVPNConfiguration : NSObject
|
|
|
|
|
2017-04-23 01:19:28 +08:00
|
|
|
/**
|
|
|
|
OpenVPN profile as a NSData
|
|
|
|
*/
|
2017-04-22 00:28:09 +08:00
|
|
|
@property (nullable, nonatomic) NSData *fileContent;
|
|
|
|
|
2017-04-23 01:19:28 +08:00
|
|
|
/**
|
|
|
|
OpenVPN profile as series of key/value pairs (may be provided exclusively
|
|
|
|
or in addition to file content).
|
|
|
|
*/
|
|
|
|
@property (nullable, nonatomic) NSDictionary<NSString *, NSString *> *settings;
|
|
|
|
|
2017-04-23 03:45:16 +08:00
|
|
|
/**
|
|
|
|
Set to identity OpenVPN GUI version.
|
|
|
|
Format should be "<gui_identifier><space><version>"
|
|
|
|
Passed to server as IV_GUI_VER.
|
|
|
|
*/
|
|
|
|
@property (nullable, nonatomic) NSString *guiVersion;
|
2017-04-23 01:19:28 +08:00
|
|
|
|
2017-04-21 23:41:08 +08:00
|
|
|
@end
|