[Openvpn-devel] [PATCH 2/3 v2] Enable dhcp on tap adapter using interactive service

2018-10-02 Thread selva . nair
From: Selva Nair Currently, if dhcp on the TAP interface is disabled, OpenVPN on Windows tries to enable it using netsh but that succeeds only when run with admin privileges. When interactive service is available, delegate this task to the service. Trac # Tested on Windows 7 Signed-off-by:

[Openvpn-devel] [PATCH 1/3] Move get system directory to a separate function

2018-10-02 Thread selva . nair
From: Selva Nair Only refactoring to reduce code-duplication, no functional changes. Signed-off-by: Selva Nair --- src/openvpnserv/common.c | 16 +++- src/openvpnserv/interactive.c | 23 ++- src/openvpnserv/service.h | 3 +++ 3 files changed, 24 insert

[Openvpn-devel] [PATCH 3/3] Refactor sending commands to interactive service

2018-10-02 Thread selva . nair
From: Selva Nair Move writing the message buffer to the interactive service pipe and reading acknowledgement to a function. A minor bug in open_tun where the ack data could be read even after a communication error is fixed. Signed-off-by: Selva Nair --- src/openvpn/route.c | 6 +- src/op