I am having issues with service. I am sending my data to OpenVpn Pipe as mentioned in
https://community.openvpn.net/openvpn/wiki/OpenVPNInteractiveService.
I found few issue, first of all. In the code
https://github.com/OpenVPN/openvpn/blob/master/src/openvpnserv/interactive.c
line number 261 why this
size = bytes / sizeof(*data);
the size of WCHAR is 2, so the size turns out to be half of what is read and then
line 485
if (data[size - 1] != 0)
fails since it is in middle of the data. I modified size to be bytes and it reads correctly.
Now, somewhere in between the data characters are read by OpenVPN service are corrupted.
I am sending data correctly. What is wrong?