Skip to content

Commit

Permalink
Update OpenVPN 2 and 3
Browse files Browse the repository at this point in the history
This changes the OpenVPN version number to 2.7 since we branched off
2.6 from master.
  • Loading branch information
schwabe committed Dec 14, 2022
1 parent d9ef18f commit f07066d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion main/src/main/cpp/openvpn
Submodule openvpn updated 45 files
+25 −0 .github/ISSUE_TEMPLATE/bug_report.md
+4 −2 .github/workflows/build.yaml
+114 −13 Changes.rst
+61 −162 INSTALL
+25 −18 PORTS
+7 −4 README
+6 −3 build/msvc/msvc-generate/Makefile.mak
+18 −3 build/msvc/msvc-generate/git-version.py
+7 −2 doc/man-sections/generic-options.rst
+30 −9 doc/man-sections/link-options.rst
+56 −14 doc/man-sections/vpn-network-options.rst
+2 −2 sample/sample-config-files/client.conf
+4 −4 sample/sample-config-files/server.conf
+4 −4 sample/sample-config-files/tls-home.conf
+4 −4 sample/sample-config-files/tls-office.conf
+13 −0 src/openvpn/common.h
+18 −16 src/openvpn/crypto.c
+2 −2 src/openvpn/crypto_mbedtls.c
+58 −16 src/openvpn/dco.c
+7 −30 src/openvpn/dco_freebsd.c
+1 −1 src/openvpn/dco_linux.c
+42 −12 src/openvpn/forward.c
+27 −15 src/openvpn/init.c
+3 −3 src/openvpn/mtcp.c
+8 −4 src/openvpn/mudp.c
+46 −34 src/openvpn/multi.c
+39 −9 src/openvpn/options.c
+1 −0 src/openvpn/options.h
+17 −1 src/openvpn/push.c
+22 −31 src/openvpn/reliable.c
+7 −7 src/openvpn/reliable.h
+4 −4 src/openvpn/socket.c
+7 −21 src/openvpn/socket.h
+110 −62 src/openvpn/ssl.c
+1 −0 src/openvpn/ssl.h
+12 −1 src/openvpn/ssl_common.h
+7 −1 src/openvpn/ssl_mbedtls.c
+5 −5 src/openvpn/ssl_pkt.c
+1 −2 src/openvpn/vcpkg.json
+112 −11 src/openvpn/win32.c
+1 −1 tests/unit_tests/openvpn/Makefile.am
+1 −1 tests/unit_tests/openvpn/mock_get_random.c
+49 −18 tests/unit_tests/openvpn/test_packet_id.c
+26 −9 tests/unit_tests/openvpn/test_pkt.c
+2 −2 version.m4
16 changes: 2 additions & 14 deletions main/src/main/cpp/openvpn-config/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,15 @@
/* Use dmalloc memory debugging library */
/* #undef DMALLOC */

/* Dimension to use for empty array declaration */
#define EMPTY_ARRAY_SIZE 0

/* Enable client capability only */
#define ENABLE_CLIENT_ONLY 1

/* Enable debugging support */
#define ENABLE_DEBUG 1

/* Enable internal fragmentation support */
#define ENABLE_FRAGMENT 1

/* Enable HTTP proxy support */
#define ENABLE_HTTP_PROXY 1

/* Enable management server capability */
#define ENABLE_MANAGEMENT 1

/* Enable multi-homed UDP server capability */
#define ENABLE_MULTIHOME 0

/* Allow --askpass and --auth-user-pass passwords to be read from a file */
#define ENABLE_PASSWORD_SAVE 1

Expand Down Expand Up @@ -450,13 +438,13 @@
#define PACKAGE_NAME "OpenVPN"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "OpenVPN 2.6-icsopenvpn"
#define PACKAGE_STRING "OpenVPN 2.7-icsopenvpn"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "openvpn"

/* Define to the version of this package. */
#define PACKAGE_VERSION "2.6_master"
#define PACKAGE_VERSION "2.7_master"

/* Define to the necessary symbol if this constant uses a non-standard name on
your system. */
Expand Down
2 changes: 2 additions & 0 deletions main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,14 @@ private boolean setConfig(String vpnconfig) {
config.setExternalPkiAlias("extpki");
config.setCompressionMode("asym");


config.setHwAddrOverride(NetworkUtils.getFakeMacAddrFromSAAID(mService));
config.setInfo(true);
config.setAllowLocalLanAccess(mVp.mAllowLocalLAN);
boolean retryOnAuthFailed = mVp.mAuthRetry == AUTH_RETRY_NOINTERACT;
config.setRetryOnAuthFailed(retryOnAuthFailed);
config.setEnableLegacyAlgorithms(mVp.mUseLegacyProvider);
/* We want the same app internal route emulation for OpenVPN 2 and OpenVPN 3 */
config.setEnableRouteEmulation(false);
if (mVp.mCompatMode > 0 && mVp.mCompatMode < 20500)
config.setEnableNonPreferredDCAlgorithms(true);
Expand Down

0 comments on commit f07066d

Please sign in to comment.