#1202 closed Bug / Defect ( notabug )

OpenVPN Interactive Service Windows working directory not accepted

Reported by: nbk01 Owned by: Samuli Seppänen
Priority: minor Milestone:
Component: Community services Version: OpenVPN 2.4.7 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

When i send a startup Request via namedpipe. I send a Windows working directory i.e. C:\Pedro and the service responds with Startup data ends at working directory. It doesn't matter which directory i send.
I posted some more information in the following topic in the forum ​ https://forums.openvpn.net/viewtopic.php?f=24&t=28478

Change History (3)

comment:1 Changed 6 years ago by Selva Nair

My guess: you may be formatting the string as single byte characters (say, ascii) but the service expects wide characters. That would explain why it sees only one token (the working directory) when the whole string is terminated by two nul bytes or it says no nul termination otherwise.

See ​ https://community.openvpn.net/openvpn/wiki/OpenVPNInteractiveService for the specification of startup data.

comment:2 Changed 6 years ago by nbk01

Thx, change the encoding to 16 bit utf and it works like a charm

comment:3 Changed 6 years ago by Selva Nair

Resolution: → notabug
Status: new → closed