Re: [Openvpn-devel] Visual Studio support?

2017-01-02 Thread Fish Wang
Hi Samuli, I have my own building scripts. I think they are based on an old version of openvpn-build/msvc. I definitely made quite a few changes to make them work. Best, Fish -Original Message- From: Samuli Seppänen [mailto:sam...@openvpn.net] Sent: Monday, January 2, 2017 2:54 AM To

Re: [Openvpn-devel] Visual Studio support?

2017-01-01 Thread Fish Wang
onger supported and openvpnserv2 should be used instead, so such a patch is not useful. What do you think? Best, Fish [1] https://github.com/OpenVPN/openvpn/blob/master/src/openvpnserv/interactive.c -Original Message- From: Gert Doering [mailto:g...@greenie.muc.de] Sent: Sunday, Janu

[Openvpn-devel] Visual Studio support?

2017-01-01 Thread Fish Wang
uch a patch be developed against maste, release/2.4 branch, or both? Thanks! Best, Fish -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.lin

[Openvpn-devel] [PATCH v2] Add lz4 support to MSVC.

2016-02-25 Thread Fish
- Include lz4 code and header in VC project files. - Fix an issue in comp-lz4.h that prevents it from compiling under MSVC. Signed-off-by: Fish --- config-msvc.h | 2 ++ src/compat/compat.vcxproj | 1 + src/compat/compat.vcxproj.filters | 3 +++ src/openvpn

[Openvpn-devel] [PATCH v4] Make openvpnserv compilable under Visual Studio.

2016-02-25 Thread Fish
source files and headers, as well as additional lib files. - Include in two source files. Signed-off-by: Fish --- src/openvpn/route.c | 1 + src/openvpnserv/common.c| 5 +- src/openvpnserv/interactive.c | 107

[Openvpn-devel] [PATCH v3] Make openvpn and openvpnserv compilable under Visual Studio.

2016-02-22 Thread Fish
Compiled under VS 2010/2013 and Windows 10. The following major changes are made: - Remove all runtime function resolving code since OpenVPN 2.4 is targeting Vista+. - Make sure local header inclusion uses double-quotes instead of angle brackets. - Update openvpnserv.vcxproj to include new sou

[Openvpn-devel] [PATCH] Add lz4 support to MSVC project.

2016-02-22 Thread Fish
- Include lz4 code and header in VC project files. - Fix an issue in comp-lz4.h that prevents it from compiling under MSVC. --- config-msvc.h | 2 ++ src/compat/compat.vcxproj | 1 + src/compat/compat.vcxproj.filters | 3 +++ src/openvpn/comp-lz4.h

[Openvpn-devel] [PATCH v2] Make openvpnserv compilable under Visual Studio.

2016-02-22 Thread Fish
Compiled under VS 2010/2013 and Windows 10. The following major changes are made: - Remove all runtime function resolving code since OpenVPN 2.4 is targeting Vista+. - Make sure local header inclusion uses double-quotes instead of angle brackets. - Update openvpnserv.vcxproj to include new sou

[Openvpn-devel] [PATCH] Make openvpnserv compilable under Visual Studio.

2016-02-22 Thread fish . thss
From: Fish Compiled under VS 2010/2013 and Windows 10. The following major changes are made: - Use the correct typedef construct to define function types. - Make sure local header inclusion uses double-quotes instead of angle brackets. - Update openvpnserv.vcxproj to include new source files

Re: [Openvpn-devel] Has openvpn been fuzzed?

2016-02-18 Thread Fish Wang
Hi Jacek, I'm definitely no expert in AFL, but it's a great tool that has shown great potential. > ... it would be good > to modify the server to use stdin/stdout (or dev null) for network I/O You might want to try https://github.com/zardus/preeny . Best, Fish

Re: [Openvpn-devel] Need help testing installers on Windows XP

2016-02-17 Thread Fish Wang
Just tested on Windows XP SP3 32-bit. Both are behaving as expected. Best, Fish -Original Message- From: Samuli Seppänen [mailto:sam...@openvpn.net] Sent: Wednesday, February 17, 2016 7:40 AM To: openvpn-devel@lists.sourceforge.net Subject: [Openvpn-devel] Need help testing installers

Re: [Openvpn-devel] [PATCH] Make MSVC happy about route.c

2016-01-08 Thread Fish Wang
Thanks for your response. I'll ship a patch for master soon :-) Best, Fish -Original Message- From: Gert Doering [mailto:g...@greenie.muc.de] Sent: Friday, January 8, 2016 10:23 AM To: Fish Cc: openvpn-devel@lists.sourceforge.net Subject: Re: [Openvpn-devel] [PATCH] Make MSVC

[Openvpn-devel] [PATCH] Make MSVC happy about route.c

2015-12-14 Thread Fish
Move the definition of out to the beginning of functions to comply with old-style C compilers. Tested on MSVC 2010. --- src/openvpn/route.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/openvpn/route.c b/src/openvpn/route.c index cf5a067..c4459f9 100644 --- a/

[Openvpn-devel] [PATCH v4] Make "block-outside-dns" option platform agnostic

2015-12-14 Thread Fish
Make the "block-outside-dns" option agnostic of Windows versions by dynamically loading WFP-related functions. Cross-compiled on Linux and tested on Windows XP/10. Also make MSVC happy. --- src/openvpn/Makefile.am | 4 +- src/openvpn/init.c | 4 +- src/openvpn/ope

[Openvpn-devel] [PATCH v3] Make "block-outside-dns" option platform agnostic

2015-12-14 Thread Fish
Make the "block-outside-dns" option agnostic of Windows versions by dynamically loading WFP-related functions. Cross-compiled on Linux and tested on Windows XP/10. --- src/openvpn/Makefile.am | 4 +- src/openvpn/init.c | 4 +- src/openvpn/options.c | 17 ++- src/openvpn/win32.c | 1

[Openvpn-devel] [PATCH v2] Make "block-outside-dns" option platform agnostic

2015-12-14 Thread Fish
Make the "block-outside-dns" option agnostic of Windows versions by dynamically loading WFP-related functions. Cross-compiled on Linux and tested on Windows XP/10. --- src/openvpn/Makefile.am | 4 +- src/openvpn/init.c | 4 - src/openvpn/options.c | 17 ++- src/openvpn/win32.c | 11

Re: [Openvpn-devel] [PATCH] Make "block-outside-dns" option platform agnostic

2015-12-14 Thread Fish Wang
I see, let me add that file to Makefile.am. My modified build system does not create the dist tarball :-( Best, Fish From: Selva Nair [mailto:selva.n...@gmail.com] Sent: Monday, December 14, 2015 9:01 AM To: Fish Cc: openvpn-devel@lists.sourceforge.net Subject: Re: [PATCH] Make "

[Openvpn-devel] [PATCH] Make "block-outside-dns" option platform agnostic

2015-12-14 Thread Fish
Make the "block-outside-dns" option agnostic of Windows versions by dynamically loading WFP-related functions. Cross-compiled on Linux and tested on Windows XP/10. --- src/openvpn/Makefile.am | 2 +- src/openvpn/init.c | 4 - src/openvpn/options.c | 17 ++- src/openvpn/win32.c | 11

Re: [Openvpn-devel] [PATCH] Make ValdikSS's DNS leak fix platform agnostic

2015-12-14 Thread Fish Wang
You are absolutely right, the code I grabbed is indeed from mingw-w64, not MinGW. Let me send out another patch with mingw-w64’s disclaimer soon. I’ll see what core people says about this patch. Thanks! Best, Fish From: Selva Nair [mailto:selva.n...@gmail.com] Sent: Sunday

[Openvpn-devel] [PATCH] Make "block-outside-dns" option platform agnostic

2015-12-14 Thread Fish
Make the "block-outside-dns" option agnostic of Windows versions by dynamically loading WFP-related functions. Cross-compiled on Linux and tested on Windows XP/10. --- src/openvpn/Makefile.am | 2 +- src/openvpn/init.c | 4 - src/openvpn/options.c | 17 ++- src/openvpn/win32.c | 11

Re: [Openvpn-devel] [PATCH] Make ValdikSS's DNS leak fix platform agnostic

2015-12-14 Thread Fish Wang
means a license expert. Based on Licensing Terms page on MinGW’s website ([1], win32api), I believe the code I stripped out of MinGW should be fine as long as a copy of the notice and its license [2] is included. Please correct me if I’m wrong. Best, Fish [1] http://www.mingw.org/license

[Openvpn-devel] [PATCH] Make ValdikSS's DNS leak fix platform agnostic

2015-12-11 Thread Fish
Based on release/2.3 branch and ValdikSS's v9 patch, this patch is cross-compiled on Linux and tested on Windows XP/10. The VC project file is left untouched - you might want to add rpcrt4.lib to compile and link it under MSVC. Take ValdikSS's patch for "block-outside-dns" option and make it Windo

[Openvpn-devel] [PATCH] Make ValdikSS's DNS leak fix platform agnostic

2015-12-10 Thread Fish Wang
Based on release/2.3 branch and ValdikSS's v9 patch, this patch is cross-compiled on Linux and tested on Windows XP/10. The VC project file is left untouched - you might want to add rpcrt4.lib to compile and link it under MSVC. Take ValdikSS's patch for "block-outside-dns" option and make it Windo

Re: [Openvpn-devel] [PATCH] Make ValdikSS's DNS leak fix platform agnostic

2015-12-10 Thread Fish Wang
Hi Gert, A new patch will follow. Best, Fish -Original Message- From: Gert Doering [mailto:g...@greenie.muc.de] Sent: Thursday, December 10, 2015 12:56 AM To: Fish Wang Cc: openvpn-devel ; i...@valdikss.org.ru Subject: Re: [Openvpn-devel] [PATCH] Make ValdikSS's DNS leak fix pla

[Openvpn-devel] [PATCH] Make ValdikSS's DNS leak fix platform agnostic

2015-12-10 Thread Fish Wang
Based on release/2.3 branch, this patch is cross-compiled in MinGW and tested on Windows XP/10. The VC project file is left untouched - you might want to add rpcrt4.lib to compile and link it under MSVC. Also, I didn't figure out how to keep ValdikSS's authorship of his code in the patch (sorry :-

Re: [Openvpn-devel] [PATCH v4-master] Add Windows DNS Leak fix using WFP ('block-outside-dns')

2015-11-25 Thread Fish Wang
th XP and later versions of Windows, and it works reliably. I can look into this later this week (if ValdikSS doesn't have cycles). Best, Fish -Original Message- From: Gert Doering [mailto:g...@greenie.muc.de] Sent: Wednesday, November 25, 2015 6:55 AM To: Arne Schwabe Cc: openvpn-deve

Re: [Openvpn-devel] Creating a Windows team for OpenVPN?

2015-10-19 Thread Fish Wang
Regarding Windows OpenVPN GUI: I have an internal fork of this OpenVPN GUI (https://github.com/jochenwierum/openvpn-manager) from jochenwierum, with many bug fixes and improvements, and it works fairly well on Windows. Maybe I should tidy my patches and open source it on github? Best, Fish

Re: [Openvpn-devel] Compiling issue on Visual Studio 2010

2015-07-01 Thread Fish Wang
Thank you Steffan, the patch works for me. Best, Fish -Original Message- From: Steffan Karger [mailto:stef...@karger.me] Sent: Wednesday, July 1, 2015 2:28 PM To: Fish Wang Cc: openvpn-devel Subject: Re: [Openvpn-devel] Compiling issue on Visual Studio 2010 On Wed, Jul 1, 2015 at 9:47

Re: [Openvpn-devel] Compiling issue on Visual Studio 2010

2015-07-01 Thread Fish Wang
Hi, Thank you for the suggestion. I'm sticking with VS since I already have an entire automation environment set up for compiling OpenVPN with Visual Studio. Also I believe Visual Studio provides better security guarantees (like stack canaries, buffer checks etc.). Best, Fish -Ori

[Openvpn-devel] Compiling issue on Visual Studio 2010

2015-07-01 Thread Fish Wang
efine CURRENT_FUNCTION __func__ +#endif #endif /* ENABLE_CRYPTO */ #endif /* CRYPTO_H */ Best, Fish