Re: [Openvpn-devel] [PATCH v2] Use DCO on Windows by default

2022-09-14 Thread Frank Lichtenheld
So, to be more specific about the suggested changes On Mon, Sep 12, 2022 at 12:10:57PM +0300, Lev Stipakov wrote: [...] > diff --git a/src/openvpn/options.c b/src/openvpn/options.c > index 2e567571..2a379f94 100644 > --- a/src/openvpn/options.c > +++ b/src/openvpn/options.c > @@ -183,7 +183,7 @@ s

Re: [Openvpn-devel] [PATCH v2] Use DCO on Windows by default

2022-09-14 Thread Antonio Quartulli
Hi, On 14/09/2022 16:41, Lev Stipakov wrote: Hi, One general question about the patch: Whenever we have defined(TARGET_LINUX) || defined(TARGET_FREEBSD) || defined(_WIN32) in the DCO code, couldn't we just remove it completely? Since this is bascially "every time" anyway, isn't it? Well, alm

Re: [Openvpn-devel] [PATCH v2] Use DCO on Windows by default

2022-09-14 Thread Lev Stipakov
Hi, > One general question about the patch: Whenever we have > defined(TARGET_LINUX) || defined(TARGET_FREEBSD) || defined(_WIN32) > in the DCO code, couldn't we just remove it completely? > Since this is bascially "every time" anyway, isn't it? Well, almost. There is also Mac and some other plat

Re: [Openvpn-devel] [PATCH v2] Use DCO on Windows by default

2022-09-14 Thread Frank Lichtenheld
On Mon, Sep 12, 2022 at 12:10:57PM +0300, Lev Stipakov wrote: > From: Lev Stipakov > > On startup, check following conditions: > > - ovpn-dco-win driver is installed. Perform this check > by trying to open adapter by symbolic name. > > - options are compatible with dco. Same checks as on > Li

[Openvpn-devel] [PATCH v2] Use DCO on Windows by default

2022-09-12 Thread Lev Stipakov
From: Lev Stipakov On startup, check following conditions: - ovpn-dco-win driver is installed. Perform this check by trying to open adapter by symbolic name. - options are compatible with dco. Same checks as on Linux and FreeBSD. In addition, check that --mode server is not used and --windows