Commit graph

29 commits

Author SHA1 Message Date
Jung-uk Kim
d4ba033164 OpenSSL: Merge OpenSSL 1.1.1q
(cherry picked from commit 64cbf7cebc)
2022-07-05 12:26:55 -04:00
Jung-uk Kim
076b6612b1 OpenSSL: Merge OpenSSL 1.1.1p
Merge commit '54ae8e38f717f22963c2a87f48af6ecefc6b3e9b'

(cherry picked from commit 83eaf7ae0a)
2022-06-21 18:48:56 -04:00
Jung-uk Kim
1b7b799f9e OpenSSL: Merge OpenSSL 1.1.1o
(cherry picked from commit 34252e89a9)
2022-05-03 15:55:01 -04:00
Jung-uk Kim
97fe61d5bf OpenSSL: Merge OpenSSL 1.1.1n
(cherry picked from commit 5ac766ab8e)
2022-03-15 19:48:04 -04:00
John Baldwin
e1465e2e1e OpenSSL: Fix the same BIO_FLAGS macro definition
Also add comment to the public header to avoid
making another conflict in future.

Reviewed by:	jkim
Obtained from:	OpenSSL commit 5d4975ecd88ac17d0749513a8fac9a7c7befd900
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D34135

(cherry picked from commit aa72082549)
2022-02-17 14:51:58 -08:00
Jung-uk Kim
17037d24d8 OpenSSL: Merge OpenSSL 1.1.1m
(cherry picked from commit b2bf0c7e5f)
2021-12-14 17:42:45 -05:00
Jung-uk Kim
6a817b64ab Import OpenSSL 1.1.1l
(cherry picked from commit 9a3ae0cdef)
2021-09-03 13:09:29 -04:00
Gordon Tetlow
9d31ae3187 Fix multiple OpenSSL vulnerabilities.
Approved by:	so
Security:	SA-21:16.openssl
Security:	CVE-2021-3711
Security:	CVE-2021-3712

(cherry picked from commit be158ffe54dcc4a633652685afc5e37894e10ea0)
2021-08-24 11:05:48 -07:00
John Baldwin
b08bb7f896 OpenSSL: Add support for Chacha20-Poly1305 to kernel TLS on FreeBSD.
FreeBSD's kernel TLS supports Chacha20 for both TLS 1.2 and TLS 1.3.

NB: This commit has not yet been merged upstream as it is deemed a new
feature and did not make the feature freeze cutoff for OpenSSL 3.0.

Reviewed by:	jkim
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D31443

(cherry picked from commit 6372fd253e)
2021-08-23 17:59:35 -07:00
John Baldwin
58dcc1777a OpenSSL: Refactor KTLS tests to better support TLS 1.3.
Most of this upstream commit touched tests not included in the
vendor import.  The one change merged in is to remove a constant
only present in an internal header to appease the older tests.

Reviewed by:	jkim
Obtained from:	OpenSSL (e1fdd5262e4a45ce3aaa631768e877ee7b6da21b)
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D31442

(cherry picked from commit d6e78ecb0b)
2021-08-23 17:59:35 -07:00
John Baldwin
622809b086 OpenSSL: Only enable KTLS if it is explicitly configured
It has always been the case that KTLS is not compiled by default. However
if it is compiled then it was automatically used unless specifically
configured not to. This is problematic because it avoids any crypto
implementations from providers. A user who configures all crypto to use
the FIPS provider may unexpectedly find that TLS related crypto is actually
being performed outside of the FIPS boundary.

Instead we change KTLS so that it is disabled by default.

We also swap to using a single "option" (i.e. SSL_OP_ENABLE_KTLS) rather
than two separate "modes", (i.e. SSL_MODE_NO_KTLS_RX and
SSL_MODE_NO_KTLS_TX).

Reviewed by:	jkim
Obtained from:	OpenSSL (a3a54179b6754fbed6d88e434baac710a83aaf80)
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D31440

(cherry picked from commit 62ca9fc1ad)
2021-08-23 17:59:35 -07:00
John Baldwin
d00932bea6 OpenSSL: ktls: Initial support for ChaCha20-Poly1305
Linux kernel is going to support ChaCha20-Poly1305 in TLS offload.
Add support for this cipher.

Reviewed by:	jkim
Obtained from:	OpenSSL (3aa7212e0a4fd1533c8a28b8587dd8b022f3a66f)
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D31439

(cherry picked from commit 63c6d3e283)
2021-08-23 17:59:35 -07:00
Jung-uk Kim
2c7061d852 OpenSSL: Merge OpenSSL 1.1.1k
Merge commit '94fa08a4bcdfbb3434b025d67d014af3b18e5380'

(cherry picked from commit b6c1fdcdf5)
2021-03-25 12:21:51 -04:00
Oleksandr Tymoshenko
63241a0764 Handle partial data re-sending on ktls/sendfile on FreeBSD
Add a handler for EBUSY sendfile error in addition to
EAGAIN. With EBUSY returned the data still can be partially
sent and user code has to be notified about it, otherwise it
may try to send data multiple times.

PR:		251969
Obtained from:	OpenSSL (dfcfd17f2818cf520ce6381aed9ec3d2fc12170d)
Sponsored by:	Netflix (merging to FreeBSD)

(cherry picked from commit 9b2f020c14)
2021-02-25 14:45:41 -08:00
Jung-uk Kim
a4f76f79ff OpenSSL: Merge OpenSSL 1.1.1j
(cherry picked from commit 88e852c0b5)
2021-02-16 21:54:50 -05:00
John Baldwin
c1c52cd57e OpenSSL: Support for kernel TLS offload (KTLS)
This merges upstream patches from OpenSSL's master branch to add
KTLS infrastructure for TLS 1.0-1.3 including both RX and TX
offload and SSL_sendfile support on both Linux and FreeBSD.

Note that TLS 1.3 only supports TX offload.

A new WITH/WITHOUT_OPENSSL_KTLS determines if OpenSSL is built with
KTLS support.  It defaults to enabled on amd64 and disabled on all
other architectures.

Sponsored by:	Netflix

(cherry picked from commit aa906e2a49)
2021-02-04 16:03:20 -08:00
Jung-uk Kim
c3c73b4f0a Merge OpenSSL 1.1.1i. 2020-12-09 02:05:14 +00:00
Ed Maste
2c9ac5855b OpenSSL: address CVE-2020-1971
OpenSSL commit 3db2c9f3:
Complain if we are attempting to encode with an invalid ASN.1 template

OpenSSL commit 43a7033:
Check that multi-strings/CHOICE types don't use implicit tagging

OpenSSL commit f960d812:
Correctly compare EdiPartyName in GENERAL_NAME_cmp()

Obtained from:	OpenSSL 3db2c9f3, 43a7033, f960d812
Security:	CVE-2020-1971
2020-12-08 16:43:35 +00:00
Jung-uk Kim
58f351825a Merge OpenSSL 1.1.1h. 2020-09-22 16:18:31 +00:00
Jung-uk Kim
cfac584b60 Merge OpenSSL 1.1.1g. 2020-04-21 19:38:32 +00:00
Jung-uk Kim
11c7efe3a4 Merge OpenSSL 1.1.1f. 2020-03-31 15:47:55 +00:00
Jung-uk Kim
17f01e9963 Merge OpenSSL 1.1.1e. 2020-03-18 02:13:12 +00:00
Jung-uk Kim
da327cd22e Merge OpenSSL 1.1.1d. 2019-09-10 21:08:17 +00:00
Jung-uk Kim
610a21fd82 Merge OpenSSL 1.1.1c. 2019-05-28 21:54:12 +00:00
Jung-uk Kim
6935a639f0 Merge OpenSSL 1.1.1b. 2019-02-26 19:31:33 +00:00
Jung-uk Kim
c9cf7b5cb1 Merge OpenSSL 1.1.1a. 2018-11-20 21:10:04 +00:00
Glen Barber
f07f1918ad Update SHLIB_VERSION_NUMBER following the OpenSSL shared library
number bump.

Reported by:	jkim
Discussed with:	kib
MFC after:	immediate
Sponsored by:	The FreeBSD Foundation
2018-10-25 18:46:45 +00:00
Jung-uk Kim
eabbf3ff4b Update SHLIB_VERSION_NUMBER to 9.
Prodded by:	avg
2018-09-14 14:40:09 +00:00
Jung-uk Kim
e71b70530d Update OpenSSL to 1.1.1.
Note it does not update build infrastructure.
2018-09-13 20:40:51 +00:00