diff --git a/OpenVPN Tunnel Provider/OpenVPNAdapter+Client.h b/OpenVPN Tunnel Provider/OpenVPNAdapter+Client.h new file mode 100644 index 0000000..84bce14 --- /dev/null +++ b/OpenVPN Tunnel Provider/OpenVPNAdapter+Client.h @@ -0,0 +1,37 @@ +// +// OpenVPNAdapter+Client.h +// OpenVPN iOS Client +// +// Created by Sergey Abramchuk on 11.02.17. +// +// + +#import + +#import "OpenVPNAdapter.h" + + +using namespace openvpn; + +@interface OpenVPNAdapter (Client) + +- (BOOL)configureSockets; + +- (void)setRemoteAddress:(NSString *)address; + +- (void)addLocalAddress:(NSString *)address subnet:(NSString *)subnet gateway:(NSString *)gateway; + +- (void)addRoute:(NSString *)route subnet:(NSString *)subnet; +- (void)excludeRoute:(NSString *)route subnet:(NSString *)subnet; + +- (void)addDNSAddress:(NSString *)address; +- (void)addSearchDomain:(NSString *)domain; + +- (void)setMTU:(NSInteger)mtu; + +- (NSInteger)establishTunnel; + +- (void)handleEvent:(const ClientAPI::Event *)event; +- (void)handleLog:(const ClientAPI::LogInfo *)log; + +@end diff --git a/OpenVPN Tunnel Provider/OpenVPNAdapter.h b/OpenVPN Tunnel Provider/OpenVPNAdapter.h new file mode 100644 index 0000000..15ef157 --- /dev/null +++ b/OpenVPN Tunnel Provider/OpenVPNAdapter.h @@ -0,0 +1,14 @@ +// +// OpenVPNAdapter.h +// OpenVPN iOS Client +// +// Created by Sergey Abramchuk on 11.02.17. +// +// + +#import + + +@interface OpenVPNAdapter : NSObject + +@end diff --git a/OpenVPN Tunnel Provider/OpenVPNAdapter.mm b/OpenVPN Tunnel Provider/OpenVPNAdapter.mm new file mode 100644 index 0000000..670661f --- /dev/null +++ b/OpenVPN Tunnel Provider/OpenVPNAdapter.mm @@ -0,0 +1,14 @@ +// +// OpenVPNAdapter.m +// OpenVPN iOS Client +// +// Created by Sergey Abramchuk on 11.02.17. +// +// + +#import "OpenVPNAdapter.h" + + +@implementation OpenVPNAdapter + +@end