0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00
Commit Graph

105 Commits

Author SHA1 Message Date
Arne Schwabe
e6d544b8a5 Add support building deps with clang/libc++
Signed-off-by: Arne Schwabe <arne@openvpn.net>
2020-04-29 11:55:38 +02:00
David Sommerseth
492661fd02
Merging release/3.5.5 into master 2020-04-24 17:33:51 +02:00
Arne Schwabe
bbcf90171f Upgrade OpenSSL to 1.1.1g
Signed-off-by: Arne Schwabe <arne@openvpn.net>
2020-04-22 14:59:00 +02:00
Dmitriy Dudnik
abb7857452 Bump openssl version to 1.1.1f
Signed-off-by: Dmitriy Dudnik <dmytro.dudnik@openvpn.net>
2020-04-09 14:35:21 +03:00
Dmitriy Dudnik
89a3283944 Fix variable name typo in build-openssl
Signed-off-by: Dmitriy Dudnik <dmytro.dudnik@openvpn.net>
2020-04-09 14:35:21 +03:00
Jani Väyrynen
afc40b78d3 Add asio patch that adds kovpn route_id support
Adds a patch formed from ovpn-asio repository:

 - branch 1-14-ovpn
 - commit df7759c141a31159d0ca4267b63f64dfd2a385b1

The patch adds kovpn route_id support to endpoints for sendto/recvfrom.

Signed-off-by: Jani Väyrynen <jani.vayrynen@openvpn.net>
2020-03-27 15:35:42 +02:00
Arne Schwabe
d5471e1846 Increase OpenSSL version to 1.1.1e 2020-03-18 18:51:15 +01:00
David Sommerseth
6daf928edb
Merge branch 'hotfix/3.4' into released 2020-03-03 22:14:32 +01:00
David Sommerseth
40f1419b38
Merge branch 'hotfix/3.3' into hotfix/3.4
This also finalizes the Core release of version 3.4.3

Signed-off-by: David Sommerseth <davids@openvpn.net>
2020-03-03 22:10:36 +01:00
David Sommerseth
c824c032b1
deps: Update to mbedtls-2.7.13
This release contains several critical security fixes.

URL: https://tls.mbed.org/tech-updates/releases/mbedtls-2.16.4-and-2.7.13-released
URL: https://tls.mbed.org/tech-updates/security-advisories/mbedtls-security-advisory-2019-12
CVE: CVE-2019-18222
Signed-off-by: David Sommerseth <davids@openvpn.net>
2020-02-27 14:19:51 +01:00
David Sommerseth
d0ab53a5d5
Merge changes applied to coming Core release 2019-12-10 15:20:49 +01:00
Arne Schwabe
a8e2e15ac0 Fix cityhash build on aarch64 2019-12-02 11:54:09 +01:00
Arne Schwabe
8cc348228c Update OpenSSL to 1.1.1d and fix mac build script
Remove universal libraries and 32 bit support.
Allow user to enable/disable SSL libraries with OSSL=1 MTLS=0
2019-11-27 13:54:57 +01:00
James Yonan
93c111242c
Removed unused directories
Signed-off-by: James Yonan <james@openvpn.net>
2019-11-20 11:14:24 +01:00
Arne Schwabe
717109f1f4 Build cityhash on OS X and Windows to run pg related unit test
Also increase minimum OS version to 10.12 since the 10.8 target defaults
to libstdc++, which is not available on modern macOS versions

Signed-off-by: Arne Schwabe <arne@openvpn.net>
2019-11-07 09:58:54 +01:00
Lev Stipakov
317f41931f
vcpkg: add port overlays
This adds port overlays for asio and mbedtls. Those
are required because we use patched versions of those libraries.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2019-11-07 10:44:20 +02:00
David Sommerseth
89eb8b4f68
deps: Update to mbedtls-2.7.12
This Mbed TLS update contains a security hotfix for a new ECDSA related
side-channel attack.

URL: https://tls.mbed.org/tech-updates/security-advisories/mbedtls-security-advisory-2019-10
CVE: 2019-16910

Signed-off-by: David Sommerseth <davids@openvpn.net>
2019-10-08 19:06:07 +02:00
David Sommerseth
1b92069834
deps: Update to mbedtls-2.7.12
This Mbed TLS update contains a security hotfix for a new ECDSA related
side-channel attack.

URL: https://tls.mbed.org/tech-updates/security-advisories/mbedtls-security-advisory-2019-10
CVE: 2019-16910

Signed-off-by: David Sommerseth <davids@openvpn.net>
2019-10-02 18:49:32 +02:00
David Sommerseth
2ae73415d2
deps: Update to mbedtls-2.7.12
This Mbed TLS update contains a security hotfix for a new ECDSA related
side-channel attack.

URL: https://tls.mbed.org/tech-updates/security-advisories/mbedtls-security-advisory-2019-10
CVE: 2019-16910

Signed-off-by: David Sommerseth <davids@openvpn.net>
2019-10-01 18:01:09 +02:00
Antonio Quartulli
29acfd95f3
libs: update ASIO to 1.14.0
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2019-09-02 22:22:08 +02:00
Antonio Quartulli
ecebb40304
Merge remote-tracking branch 'origin/qa' 2019-08-28 10:57:54 +02:00
Lev Stipakov
728733aee7 deps/mbedtls: rebase "enable unsupported critical extensions" patch
This rebases "Enable allowing unsupported critical extensions in
 runtime" patch on top of 2.7.11.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2019-08-14 17:02:49 +03:00
Antonio Quartulli
43e36ca45a
lib-version: update to mbedtls-2.7.11 2019-08-14 14:44:15 +02:00
Lev Stipakov
89cc11b300 win: enable building Windows client with OpenSSL
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2019-06-05 13:54:12 +03:00
Arne Schwabe
6f0e9f6388 Fix Asio 0003 patch.
When porting this patch I accidentally got the conflict backwards and
the resulting patch is nonsense. I am not sure how this managed to
survive a full Jenkins run.
2019-05-02 20:06:53 +02:00
Arne Schwabe
74e40a8907 Upgrade ASIO to 0.13.0
Also regenerate the patches against ASIO and fix merge conflicts
2019-05-01 14:04:34 +02:00
Antonio Quartulli
19a44dbdda
Merge branch 'qa' 2019-04-30 09:01:05 +02:00
Lev Stipakov
16a4e3d4a7 [OVPN3-405] asio: A quick fix for incorrect error message encoding
ASIO's code for returning error messages doesn't play well with
non-ASCII chars. This quick fix makes ASIO use English.

A proper fix, which is more invasive (use FormatMessageW and
WideCharToMultiByte with UTF-8) will be provided separately.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2019-04-29 11:08:37 +03:00
Arne Schwabe
452a353b2d Fix lzo build script to use it as dependency for the unit tests
Signed-off-by: Arne Schwabe <arne@openvpn.net>
2019-04-15 17:23:37 +02:00
Arne Schwabe
27beeb03db Update lz4 version to 1.8.3
The deprecated macro of LZ4 1.8.0 breaks in newer LLVM/Clang version:

include/lz4.h:446:12: error: an attribute list cannot appear here

LZ4LIB_API LZ4_DEPRECATED("use LZ4_decompress_safe() instead") int
LZ4_uncompress_unknownOutputSize (const char* source, char* dest,
int isize, int maxOutputSize);

Using -DLZ4_DISABLE_DEPRECATE_WARNINGS allows including these headers
with modern LLVM/Clang version

The new lz4 version (1.8.3) fixes this problem.
2018-11-07 17:23:02 +01:00
Arne Schwabe
5f1f8470bc Revert bugfix for not compiling IA32 ASM of 2.7.5
Mbedtls 2.7.5 included a bugfix (e08754762d) that ASM code in bn_mul.h
was only enabled with -O0 instead of not enabling it with -O0
unfortenately the old gcc version (4.9.x) we use for our Android
build does not handle this. Fall back to not using ASM code on the
gcc/Android combination.
2018-08-22 14:44:58 +02:00
Antonio Quartulli
bde2c41be0
dep: switch from mbeTLS 2.7.0 to 2.7.5
Update dep on mbedTLS to latest maintenance release
of the 2.7 branch.

Mst of our private patches are now upstream and can
be removed.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2018-08-21 21:37:05 +08:00
Arne Schwabe
d339b684ac Modify build script of lz4/mbedtls to allow src only builds
The modern cmake build for the Android core does build the library
during the build of the core. Prebudiling these libraries is not
necessary.
2018-05-22 19:57:43 +02:00
Arne Schwabe
f0198627b5 Merged in cityhash building fix
Add script for building cityhash

Approved-by: Antonio Quartulli <antonio@openvpn.net>
Approved-by: Lev Stipakov <lev@openvpn.net>
2018-05-09 10:01:56 +00:00
Arne Schwabe
dd47138adf Add script for building cityhash 2018-04-25 18:25:28 +02:00
Lev Stipakov
cfd6df5bc2 build system: fix 'git apply'
When 'git apply' is run inside repository folder, it ignores files
missing in index. To make it work, run 'git apply' outside of repository.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2018-04-19 11:11:39 +03:00
Lev Stipakov
40c70113d4 [OVPN3-184] Add mbedTLS patch
Add mbedTLS patch which enables to allow
unsupported critical extensions in runtime.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2018-04-19 10:59:35 +03:00
Antonio Quartulli
e6d68831a7
deps: update mbedTLS to 2.7.0
At the same time rebase patches on top of ne wversion
and get rid of fixes that have been merged upstream.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2018-03-26 23:58:35 +08:00
Antonio Quartulli
33dd2f29e8
mbedtls: backport fixes for CVE-2018-0487
Backport patches from mbedTLS-2.7.0 to address the CVE
in the subject:

28a0c727 RSA: Fix buffer overflow in PSS signature verification
6a54b024 RSA: Fix another buffer overflow in PSS signature verification
139108af RSA PSS: fix minimum length check for keys of size 8N+1
b00b0da4 RSA PSS: fix first byte check for keys of size 8N+1
91048a3a RSA PSS: remove redundant check; changelog

This bug can be exploited by sending a malicious certificate
chain signed using RSASSA-PSS.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2018-03-26 23:58:34 +08:00
Lev Stipakov
0912a9b629
[OVPN3-213] build system: mbedtls timing tests
Include patches from https://github.com/ARMmbed/mbedtls/pull/1136/commits

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2018-03-26 23:58:34 +08:00
Antonio Quartulli
98fa555764
deps: update asio to 1.12.0
At the same time rebase patches on top of latets version.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2018-03-26 23:58:34 +08:00
Antonio Quartulli
6205311014
[OVPN3-215] asio: apply external patches
we currently have some external patches that should be abbplied
on asio before using it in our projects.

However, these patches have always been applied manually in the
past and therefore they are not part of our automatic build
system.

Modify the buil-asio script so that it auto-applies our
patches everytime it is invoked. This change will ensure
that the same "asio version" is used when building the core or
other apps.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2018-03-26 23:58:34 +08:00
Antonio Quartulli
f4a73bde55
[OVPN3-215] asio: rebase external patches on top of our current commit ID
When we moved to asio-862aed305 we have not updated our external
patches acconrdingly.

This change takes care of rebasing our patches on top of 862aed305
so that they can cleanly apply again.

0001-Android-appears-to-not-support-pthread_condattr_setc.patch has
been dropped as this issue has been tackled upstream.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2018-03-26 23:58:34 +08:00
Lev Stipakov
a61cac9289
mbedtls: Patches from 2.7 to fix timing test failures
Changed to Changelog are removed to make patches apply on 2.6.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2018-03-26 23:58:34 +08:00
Lev Stipakov
8a394a37dd
[OVPN3-213] build system: mbedtls timing tests
Include patches from https://github.com/ARMmbed/mbedtls/pull/1136/commits

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2018-03-26 23:58:33 +08:00
Lev Stipakov
3d6fd62cb1
mac build: improve unittest stability
mbedTLS commit 8873bcc4def433aa0edfbe260083f32f04aa097e

Timing self test: increased duration

Increase the duration of the self test, otherwise it tends to fail on
a busy machine even with the recently upped tolerance. But run the
loop only once, it's enough for a simple smoke test.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2018-03-26 23:58:33 +08:00
Lev Stipakov
758ae98c67
[OVPN3-209] win: add dependencies checksum verification
Also reuse existing lib_version.sh as a source of versions and checksums.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2018-03-26 23:58:33 +08:00
Lev Stipakov
b713762ba4
mbedtls: Patches from 2.7 to fix timing test failures
Changed to Changelog are removed to make patches apply on 2.6.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2018-03-10 02:28:35 +08:00
Antonio Quartulli
33c16812e1
[OVPN3-144] mbedTLS: fix support for 4096bit encrypted keys
Backported from mbedTLS 2.7.0

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2018-03-10 02:28:33 +08:00
Antonio Quartulli
f249ab4bd3
[OVPN3-144] build-mbedtls: run make check before compiling
This will ensure that mbedtls is still passing all its
unit test before building it.

It is important to run the checks because we backport patches
on our own and they may break during the process.

Checks are perfomed only when building for linux or for osx.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2018-03-10 02:28:33 +08:00