OpenVPN 2.2-RC released
The OpenVPN community project team is proud to release OpenVPN 2.2-RC. It can be downloaded from here:
* http://openvpn.net/index.php/open-source/downloads.html
Changes include:
* Windows installer built and packaged with the new Python-based
buildsystem that utilizes the Visual Studio 2008 toolchain
* Lots of enhancements and fixes to the Python-based Windows
buildsystem (see Changelog for details)
* Make the --x509-username-field feature an opt-in feature
A more comprehensive list of changes is available here:
*
http://openvpn.net/index.php/open-source/documentation/change-log/425-changelog-for-openvpn-22.html
If you find a bug in this release, please file a bug report to our Trac bug tracker. In uncertain cases please contact our developers first, either using the openvpn-devel mailinglist or the developer IRC channel (#openvpn-devel at irc.freenode.net).
NOTE: In production environments you should use the latest stable release, not this release candidate build.
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
Hello,
Any reason why the windows cross compile fix we discussed [1] did not made it into mainline?
Attached again.
This is trivial patch, which resume the ability to build openvpn using cross compiler and autotools.
Please apply so we don't need to maintain this out of tree.
You can test build at [2].
Alon
[1] http://permalink.gmane.org/gmane.network.openvpn.devel/3991
[2] https://www.opensc-project.org/opensc/wiki/build
2011/3/4 Samuli Seppänen <[email protected]...>
Quoted 35 lines
The OpenVPN community project team is proud to release OpenVPN 2.2-RC. It can be downloaded from here:
* http://openvpn.net/index.php/open-source/downloads.html
Changes include:
* Windows installer built and packaged with the new Python-based buildsystem that utilizes the Visual Studio 2008 toolchain
* Lots of enhancements and fixes to the Python-based Windows buildsystem (see Changelog for details)
* Make the --x509-username-field feature an opt-in featureA more comprehensive list of changes is available here:
*
http://openvpn.net/index.php/open-source/documentation/change-log/425-changelog-for-openvpn-22.htmlIf you find a bug in this release, please file a bug report to our Trac bug tracker. In uncertain cases please contact our developers first, either using the openvpn-devel mailinglist or the developer IRC channel (#openvpn-devel at irc.freenode.net).
NOTE: In production environments you should use the latest stable release, not this release candidate build.
--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Incirc freenode net: mattock
Quoted 9 lines
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
acinclude.m4 +23 -27
@@ -90,34 +90,30 @@ AC_DEFUN([TYPE_SOCKLEN_T], AC_MSG_CHECKING([for socklen_t equivalent]) AC_CACHE_VAL([curl_cv_socklen_t_equiv], [ - # Systems have either "struct sockaddr *" or - # "void *" as the second argument to getpeername - curl_cv_socklen_t_equiv= - for arg2 in "struct sockaddr" void; do - for t in int size_t unsigned long "unsigned long"; do - AC_TRY_COMPILE([ - #ifdef _WIN32 - #include <windows.h> - #define PREFIX1 WINSOCK_API_LINKAGE - #define PREFIX2 PASCAL - #else - #include <sys/types.h> - #include <sys/socket.h> - #define PREFIX1 - #define PREFIX2 - #define SOCKET int - #endif - - PREFIX1 int PREFIX2 getpeername (SOCKET, $arg2 *, $t *); - ],[ - $t len; - getpeername(0,0,&len); - ],[ - curl_cv_socklen_t_equiv="$t" - break - ]) + case "$host" in + *-mingw*) curl_cv_socklen_t_equiv=int ;; + *) + # Systems have either "struct sockaddr *" or + # "void *" as the second argument to getpeername + curl_cv_socklen_t_equiv= + for arg2 in "struct sockaddr" void; do + for t in int size_t unsigned long "unsigned long"; do + AC_TRY_COMPILE([ + #include <sys/types.h> + #include <sys/socket.h> + + int getpeername (int, $arg2 *, $t *); + ],[ + $t len; + getpeername(0,0,&len); + ],[ + curl_cv_socklen_t_equiv="$t" + break + ]) + done done - done + ;; + esac if test "x$curl_cv_socklen_t_equiv" = x; then AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
configure.ac +1 -0
@@ -308,6 +308,7 @@ case "$target" in ;; *mingw*) AC_DEFINE(TARGET_WIN32, 1, [Are we running WIN32?]) + CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN" OPENVPN_ADD_LIBS(-lgdi32) OPENVPN_ADD_LIBS(-lws2_32) OPENVPN_ADD_LIBS(-lwininet)
syshead.h +1 -0
@@ -51,6 +51,7 @@#ifdef WIN32 #include <windows.h> +#include <winsock2.h> #define sleep (x) Sleep((x)*1000)#define random rand#define srandom srand
tap-win32/common.h +2 -0
@@ -28,7 +28,9 @@// common to both. //=============================================== +#ifndef HAVE_CONFIG_H #include "autodefs.h" +#endif //============= // TAP IOCTLs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Alon Bar-Lev
Hello,
Any reason why the windows cross compile fix we discussed [1] did not made it into mainline?
This is trivial patch, which resume the ability to build openvpn using cross compiler and autotools.
Please apply so we don't need to maintain this out of tree. You can test build at [2].
I'm sorry, that patch has slipped my patch queue. The patch applies pretty cleanly to the beta2.2 branch (just some offset values which are wrong). So I am willing to include that into the final 2.2 release.
However, I do not have any configuration available to cross compile with mingw32 available. So if someone can please review and test this patch on such a platform, I'll include as soon as I get an ACK.
Thanks for the heads-up!
kind regards,
David Sommerseth
Quoted 37 lines
[1] http://permalink.gmane.org/gmane.network.openvpn.devel/3991
[2] https://www.opensc-project.org/opensc/wiki/build2011/3/4 Samuli Seppänen <[email protected]...>
Quoted 33 lines
The OpenVPN community project team is proud to release OpenVPN 2.2-RC. It can be downloaded from here:
* http://openvpn.net/index.php/open-source/downloads.html
Changes include:
* Windows installer built and packaged with the new Python-based
buildsystem that utilizes the Visual Studio 2008 toolchain
* Lots of enhancements and fixes to the Python-based Windows
buildsystem (see Changelog for details)
* Make the --x509-username-field feature an opt-in featureA more comprehensive list of changes is available here:
*
http://openvpn.net/index.php/open-source/documentation/change-log/425-changelog-for-openvpn-22.htmlIf you find a bug in this release, please file a bug report to our Trac bug tracker. In uncertain cases please contact our developers first, either using the openvpn-devel mailinglist or the developer IRC channel (#openvpn-devel at irc.freenode.net).
NOTE: In production environments you should use the latest stable release, not this release candidate build.
--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Incirc freenode net: mattock
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk1xYkUACgkQDC186MBRfrp8dQCeIM5tmvlhABhn5G1jOiKbW+xE QKsAoJ5C86CwVDnDfWBussOSmaLq22/t
=QdOu
-----END PGP SIGNATURE-----
Hi,
Thanks.
I gave a reference of build environment that actually automates the openvpn build [2] using a cross compile to any target. mingw win32 and win64 are subsets.
Alon.
Quoted 77 lines · David Sommerseth
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 10 lines · Alon Bar-Lev
Hello,
Any reason why the windows cross compile fix we discussed [1] did not made it into mainline?
This is trivial patch, which resume the ability to build openvpn using cross compiler and autotools.
Please apply so we don't need to maintain this out of tree. You can test build at [2].
I'm sorry, that patch has slipped my patch queue. The patch applies pretty cleanly to the beta2.2 branch (just some offset values which are wrong). So I am willing to include that into the final 2.2 release.
However, I do not have any configuration available to cross compile with mingw32 available. So if someone can please review and test this patch on such a platform, I'll include as soon as I get an ACK.
Thanks for the heads-up!
kind regards,
David Sommerseth
Quoted 37 lines
[1] http://permalink.gmane.org/gmane.network.openvpn.devel/3991
[2] https://www.opensc-project.org/opensc/wiki/build2011/3/4 Samuli Seppänen <[email protected]...>
Quoted 33 lines
The OpenVPN community project team is proud to release OpenVPN 2.2-RC. It can be downloaded from here:
* http://openvpn.net/index.php/open-source/downloads.html
Changes include:
* Windows installer built and packaged with the new Python-based buildsystem that utilizes the Visual Studio 2008 toolchain
* Lots of enhancements and fixes to the Python-based Windows buildsystem (see Changelog for details)
* Make the --x509-username-field feature an opt-in featureA more comprehensive list of changes is available here:
*
http://openvpn.net/index.php/open-source/documentation/change-log/425-changelog-for-openvpn-22.htmlIf you find a bug in this release, please file a bug report to our Trac bug tracker. In uncertain cases please contact our developers first, either using the openvpn-devel mailinglist or the developer IRC channel (#openvpn-devel at irc.freenode.net).
NOTE: In production environments you should use the latest stable release, not this release candidate build.
--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Incirc freenode net: mattock
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/iEYEARECAAYFAk1xYkUACgkQDC186MBRfrp8dQCeIM5tmvlhABhn5G1jOiKbW+xE QKsAoJ5C86CwVDnDfWBussOSmaLq22/t
=QdOu
-----END PGP SIGNATURE-----
Quoted 7 lines
Quoted 7 lines
Any reason why the windows cross compile fix we discussed [1] did not made it into mainline?
This is trivial patch, which resume the ability to build openvpn using cross compiler and autotools.
Quoted 8 lines
Quoted 3 lines
Please apply so we don't need to maintain this out of tree. You can test build at [2].
I'm sorry, that patch has slipped my patch queue. The patch applies pretty cleanly to the beta2.2 branch (just some offset values which are wrong). So I am willing to include that into the final 2.2 release.
Speaking of which, I also proposed a (rather trivial) patch which enables cross compilation of a number of OpenVPN plugins (that patch is attached again) as in the 2.1.4 version that was not possible.
This was ACKed by you (see the "[OpenVPN 2.1.4 BUG]: hard-coded values in Makefiles for down-root and auth-pam plugins prevent cross compilation" thread for more details) on 30/12/2010, though I am unsure as to whether it would make it for the 2.2 release. Any progress on that?
plugin/auth-pam/Makefile +3 -5
@@ -15,16 +15,14 @@ # This directory is where we will look for openvpn-plugin.h INCLUDE=-I../.. -CC_FLAGS=-O2 -Wall -DDLOPEN_PAM=$(DLOPEN_PAM) - openvpn-auth-pam.so : auth-pam.o pamdl.o - gcc ${CC_FLAGS} -fPIC -shared -Wl,-soname,openvpn-auth-pam.so -o openvpn-auth-pam.so auth-pam.o pamdl.o -lc $(LIBPAM) + ${CC} -DDLOPEN_PAM=$(DLOPEN_PAM) -fPIC -shared ${LDFLAGS} -Wl,-soname,openvpn-auth-pam.so -o openvpn-auth-pam.so auth-pam.o pamdl.o -lc $(LIBPAM) auth-pam.o : auth-pam.c pamdl.h - gcc ${CC_FLAGS} -fPIC -c ${INCLUDE} auth-pam.c + ${CC} ${CFLAGS} -DDLOPEN_PAM=$(DLOPEN_PAM) -fPIC -c ${INCLUDE} auth-pam.c pamdl.o : pamdl.c pamdl.h - gcc ${CC_FLAGS} -fPIC -c ${INCLUDE} pamdl.c + ${CC} ${CFLAGS} -DDLOPEN_PAM=$(DLOPEN_PAM) -fPIC -c ${INCLUDE} pamdl.c clean : rm -f *.o *.so
plugin/down-root/Makefile +2 -4
@@ -5,13 +5,11 @@ # This directory is where we will look for openvpn-plugin.h INCLUDE=-I../.. -CC_FLAGS=-O2 -Wall - down-root.so : down-root.o - gcc ${CC_FLAGS} -fPIC -shared -Wl,-soname,openvpn-down-root.so -o openvpn-down-root.so down-root.o -lc + ${CC} -fPIC -shared ${LDFLAGS} -Wl,-soname,openvpn-down-root.so -o openvpn-down-root.so down-root.o -lc down-root.o : down-root.c - gcc ${CC_FLAGS} -fPIC -c ${INCLUDE} down-root.c + ${CC} ${CFLAGS} -fPIC -c ${INCLUDE} down-root.c clean : rm -f *.o *.so
Quoted 3 lines · Mr Dash Four
Speaking of which, I also proposed a (rather trivial) patch which enables cross compilation of a number of OpenVPN plugins (that patch is attached again) as in the 2.1.4 version that was not possible.
I think you should leave the -O2 as default to CFLAGS.
CFLAGS=-O2
Can be overridden by:
make CFLAGS="-O0"
Quoted 6 lines
Quoted 5 lines
Speaking of which, I also proposed a (rather trivial) patch which enables cross compilation of a number of OpenVPN plugins (that patch is attached again) as in the 2.1.4 version that was not possible.
Quoted 8 lines
I think you should leave the -O2 as default to CFLAGS.
CFLAGS=-O2
Can be overridden by:
make CFLAGS="-O0"
As evident from the patch I provided, I haven't put the O2 flags there - I only alter the hard-coded values in that makefile which prevents cross-compilation. Whether the O2 (or O0) flags should have been there in the first place is not for me to decide as I do not maintain these plugins - my patch only ensures that cross-compilation is made possible.
David Sommerseth
Acked-by James Yonan-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Alon Bar-Lev
Hello,
Any reason why the windows cross compile fix we discussed [1] did not made it into mainline?
Attached again.
This is trivial patch, which resume the ability to build openvpn using cross compiler and autotools.
Quoted 9 lines
Please apply so we don't need to maintain this out of tree.
You can test build at [2].
Alon
[1] http://permalink.gmane.org/gmane.network.openvpn.devel/3991
[2] https://www.opensc-project.org/opensc/wiki/build
This patch was ACKed by James Yonan yesterday. Applied to beta2.2 and will be included in the coming v2.2-RC2 release.
commit aab2f95439c28e2aa9358dbfe1ce7a15c774a766
Author: Alon Bar-Lev <[email protected]...> Date: Fri Mar 4 23:14:33 2011 +0200
Windows cross-compile cleanup
It should be sufficient to just try to see if socklen_t is defined. Next, on all platforms it would be int in all other platforms. And, there is no need to check for the type in monolitic environment like Windows, as it will be always the same.
Currently it fails cross compile windows in mingw-w64 compiler, as winsock.h is as follows:
"""
/* define WINSOCK_API_LINKAGE and WSAAPI for less
* diff output between winsock.h and winsock2.h, but
* remember to undefine them at the end of file */
"""
And the macro uses these macros which are internal winsock macros and should not be used anyway.
Also, when did the autodefs.h went mandatory? Why is it in tap-win32/common.h while no constant is actually used?
The use of WSA_IO_INCOMPLETE without including winsock2.h is invalid! Look at http://msdn.microsoft.com/en-us/library/aa921087.aspx
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk2MROMACgkQDC186MBRfrrNiQCbB4o3dKxKxFSrSJjiDeiViK4Z aIYAnR0BcNVuvyJjnCTssyvTwVQVH1D9
=7V6N
-----END PGP SIGNATURE-----
Hi,
Quoted 1 line · Samuli Seppänen
* Make the --x509-username-field feature an opt-in feature
given the x509 username field is optional now, any chance to get x509 v3 extensions as username [1] merged if they are made opt-in too?
Markus
[1] http://thread.gmane.org/gmane.network.openvpn.devel/4266
Can you please send the patch again?
Quoted 25 lines · Markus Koetter
Hi,
Quoted 1 line · Samuli Seppänen
* Make the --x509-username-field feature an opt-in feature
given the x509 username field is optional now, any chance to get x509 v3 extensions as username [1] merged if they are made opt-in too?
Markus
[1] http://thread.gmane.org/gmane.network.openvpn.devel/4266
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
David Sommerseth
Acked-by-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 8 lines · Markus Koetter
Hi,
Quoted 1 line · Samuli Seppänen
* Make the --x509-username-field feature an opt-in feature
given the x509 username field is optional now, any chance to get x509 v3 extensions as username [1] merged if they are made opt-in too?
commit 1e5a8a8d4461c1fb58b16760a7ac1aaf422fa396
Author: Markus Koetter <[email protected]...> Date: Fri Dec 10 20:30:09 2010 +0100
Add extv3 X509 field support to --x509-username-field
This allows using other X509 certificate fields for the certificate authentication. To use altSubjectName, use --x509-username-field ext:altSubjectName
This feature requires OpenVPN to be built with --enable-x509-alt-username
This patch is slightly modified, to honour --enable-x509-alt-username compile time configuration. Two #ifdef's are added.
It will appear in OpenVPN 2.3. It's already in allmerged, so by using the development snapshots [1] or git source it can be tested already. I expect us to start pushing 2.3 beta in 2-3 months. It all depends when v2.2 is declared golden.
kind regards,
David Sommerseth
[1] <ftp://ftp.secure-computing.net/pub/FreeBSD/ports/openvpn-devel/> -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk14ricACgkQDC186MBRfrpj6wCgmW2lUysLnH5pUbHwIA3BLznf r/EAoJOk3wPtpcAI3e8XoS/ya0PCjC4P
=Jpup
-----END PGP SIGNATURE-----