FreeBSD/src d2a55e6crypto/openssl/include/openssl opensslv.h, secure/lib/libcrypto Makefile.inc

openssl: update ASM and version info for 3.0.16 import

MFC after:      1 week
MFC with:       0d0c8621fd181e507f0fb50ffcca606faf66a8c2
Differential Revision:  https://reviews.freebsd.org/D49297
DeltaFile
+5-5crypto/openssl/include/openssl/opensslv.h
+2-2secure/lib/libcrypto/Makefile.inc
+2-0sys/crypto/openssl/aarch64/armv8-mont.S
+9-73 files

FreeBSD/src cc43f99crypto/openssl/crypto/aes/asm aesp8-ppc.pl, crypto/openssl/test sslapitest.c

openssl: Import OpenSSL 3.0.15.

This release incorporates the following bug fixes and mitigations:
- Fixed possible denial of service in X.509 name checks ([CVE-2024-6119])
- Fixed possible buffer overread in SSL_select_next_proto() ([CVE-2024-5535])

Release notes can be found at:
https://openssl-library.org/news/openssl-3.0-notes/index.html

Co-authored-by: gordon
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D46602

Merge commit '108164cf95d9594884c2dcccba2691335e6f221b'

(cherry picked from commit a7148ab39c03abd4d1a84997c70bf96f15dd2a09)

Update config/build info for OpenSSL 3.0.15


    [32 lines not shown]
DeltaFile
+411-344crypto/openssl/test/ssl-tests/08-npn.cnf
+368-2crypto/openssl/test/sslapitest.c
+171-0crypto/openssl/util/check-format-commit.sh
+96-51crypto/openssl/crypto/aes/asm/aesp8-ppc.pl
+94-49sys/crypto/openssl/powerpc64le/aesp8-ppc.S
+94-49sys/crypto/openssl/powerpc64/aesp8-ppc.S
+1,234-495176 files not shown
+2,797-1,162182 files

FreeBSD/src cc717b5crypto/openssl/include/openssl opensslv.h, secure/lib/libcrypto Makefile.inc

Update config/build info for OpenSSL 3.0.15

This is a companion commit to the OpenSSL 3.0.15 update.

`opensslv.h` was regenerated via the following process:

```
cd crypto/openssl
./config
git reset --hard
gmake include/openssl/opensslv.h
```

`Makefile.inc` has been updated to match.

MFC after:      1 week
MFC with:       a7148ab39c03abd4d1a84997c70bf96f15dd2a09
Differential Revision:  https://reviews.freebsd.org/D46603
DeltaFile
+5-5crypto/openssl/include/openssl/opensslv.h
+2-2secure/lib/libcrypto/Makefile.inc
+7-72 files

FreeBSD/src dd43e90crypto/openssl/include/openssl opensslv.h, secure/lib/libcrypto Makefile.inc

Update config/build info for OpenSSL

This is a companion commit to the OpenSSL 3.0.14 update.

MFC after:      3 days
MFC with:       44096ebd22ddd0081a357011714eff8963614b65

(cherry picked from commit 303596eac3f5a7fed63f1084028d811919d37eaf)
DeltaFile
+5-5crypto/openssl/include/openssl/opensslv.h
+2-2secure/lib/libcrypto/Makefile.inc
+7-72 files

FreeBSD/src 303596ecrypto/openssl/include/openssl opensslv.h, secure/lib/libcrypto Makefile.inc

Update config/build info for OpenSSL

This is a companion commit to the OpenSSL 3.0.14 update.

MFC after:      3 days
MFC with:       44096ebd22ddd0081a357011714eff8963614b65
DeltaFile
+5-5crypto/openssl/include/openssl/opensslv.h
+2-2secure/lib/libcrypto/Makefile.inc
+7-72 files

FreeBSD/src fad23b1crypto/openssl/include/openssl opensslv.h

OpenSSL: Update date string

Reported by:    "Herbert J. Skuhra" <herbert at gojira.at>
Fixes:          74fe298c8299

(cherry picked from commit da63ac1b0757e10255613bdae1b7fa353eb4aea2)
DeltaFile
+2-2crypto/openssl/include/openssl/opensslv.h
+2-21 files

FreeBSD/src da63ac1crypto/openssl/include/openssl opensslv.h

OpenSSL: Update date string

Reported by:    "Herbert J. Skuhra" <herbert at gojira.at>
Fixes:          74fe298c8299
MFC after:      3 days
DeltaFile
+2-2crypto/openssl/include/openssl/opensslv.h
+2-21 files

FreeBSD/src e72329acrypto/openssl/include/openssl opensslv.h, secure/lib/libcrypto Makefile.inc

OpenSSL: Update version strings

Reported by:    "Herbert J. Skuhra" <herbert at gojira.at>
Fixes:          9eb4e0b42d7c

(cherry picked from commit 74fe298c8299fdb8c8f761728ddd245b0c3fe04a)
DeltaFile
+4-4crypto/openssl/include/openssl/opensslv.h
+2-2secure/lib/libcrypto/Makefile.inc
+6-62 files

FreeBSD/src 74fe298crypto/openssl/include/openssl opensslv.h, secure/lib/libcrypto Makefile.inc

OpenSSL: Update version strings

Reported by:    "Herbert J. Skuhra" <herbert at gojira.at>
Fixes:          9eb4e0b42d7c
MFC after:      3 days
DeltaFile
+4-4crypto/openssl/include/openssl/opensslv.h
+2-2secure/lib/libcrypto/Makefile.inc
+6-62 files

FreeBSD/src 930cec1crypto/openssl/crypto/engine eng_pkey.c, crypto/openssl/crypto/evp evp_enc.c

OpenSSL: update to 3.0.12

OpenSSL 3.0.12 addresses:

 * Fix incorrect key and IV resizing issues when calling
   EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or EVP_CipherInit_ex2()
   with OSSL_PARAM parameters that alter the key or IV length
   ([CVE-2023-5363]).

Relnotes:       Yes
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit ad991e4c142ebabad7aef488ad97b189ecabb270)
(cherry picked from commit 575878a533823aa3e5bab715928d9cdffbc4dcbc)
(cherry picked from commit e833378cf9589171562ccad4c6ff59c3713770bd)

Approved by:    so
Approved by:    re (gjb)
DeltaFile
+26-39crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
+43-2crypto/openssl/crypto/evp/evp_enc.c
+43-1crypto/openssl/crypto/engine/eng_pkey.c
+20-20crypto/openssl/providers/fips-sources.checksums
+31-5crypto/openssl/crypto/property/property_parse.c
+23-9crypto/openssl/crypto/rsa/rsa_lib.c
+186-7686 files not shown
+472-28292 files

FreeBSD/src e833378crypto/openssl/crypto/engine eng_pkey.c, crypto/openssl/crypto/evp evp_enc.c

OpenSSL: update to 3.0.12

OpenSSL 3.0.12 addresses:

 * Fix incorrect key and IV resizing issues when calling
   EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or EVP_CipherInit_ex2()
   with OSSL_PARAM parameters that alter the key or IV length
   ([CVE-2023-5363]).

Relnotes:       Yes
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit ad991e4c142ebabad7aef488ad97b189ecabb270)
(cherry picked from commit 575878a533823aa3e5bab715928d9cdffbc4dcbc)
DeltaFile
+26-39crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
+43-2crypto/openssl/crypto/evp/evp_enc.c
+43-1crypto/openssl/crypto/engine/eng_pkey.c
+20-20crypto/openssl/providers/fips-sources.checksums
+31-5crypto/openssl/crypto/property/property_parse.c
+23-9crypto/openssl/crypto/rsa/rsa_lib.c
+186-7686 files not shown
+472-28292 files

FreeBSD/src ad991e4crypto/openssl/crypto/engine eng_pkey.c, crypto/openssl/crypto/evp evp_enc.c

OpenSSL: update to 3.0.12

OpenSSL 3.0.12 addresses:

 * Fix incorrect key and IV resizing issues when calling
   EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or EVP_CipherInit_ex2()
   with OSSL_PARAM parameters that alter the key or IV length
   ([CVE-2023-5363]).

Relnotes:       Yes
Sponsored by:   The FreeBSD Foundation
DeltaFile
+26-39crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
+43-2crypto/openssl/crypto/evp/evp_enc.c
+43-1crypto/openssl/crypto/engine/eng_pkey.c
+20-20crypto/openssl/providers/fips-sources.checksums
+31-5crypto/openssl/crypto/property/property_parse.c
+23-9crypto/openssl/crypto/rsa/rsa_lib.c
+186-7682 files not shown
+443-24888 files

FreeBSD/src c4262d1crypto/openssl/crypto/engine eng_lib.c, crypto/openssl/crypto/pkcs12 p12_crt.c

OpenSSL: update to 3.0.11

OpenSSL 3.0.11 addresses:

    POLY1305 MAC implementation corrupts XMM registers on Windows (CVE-2023-4807)

Relnotes:       Yes
Pull request:   https://github.com/freebsd/freebsd-src/pull/852
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 6f1af0d7d2af54b339b5212434cd6d4fda628d80)
(cherry picked from commit bbecb0ff6c9e2fc05c096ce2ca5387df0d8e99fe)

Approved by:    re (gjb)
DeltaFile
+43-21crypto/openssl/crypto/pkcs12/p12_crt.c
+19-19secure/lib/libcrypto/man/man3/OSSL_CMP_CTX_new.3
+23-14secure/usr.bin/openssl/man/openssl-cmp.1
+21-15crypto/openssl/crypto/engine/eng_lib.c
+20-11crypto/openssl/doc/man1/openssl-cmp.pod.in
+27-4secure/lib/libcrypto/man/man3/BIO_s_mem.3
+153-84862 files not shown
+3,005-2,671868 files

FreeBSD/src bbecb0fcrypto/openssl/crypto/engine eng_lib.c, crypto/openssl/crypto/pkcs12 p12_crt.c

OpenSSL: update to 3.0.11

OpenSSL 3.0.11 addresses:

    POLY1305 MAC implementation corrupts XMM registers on Windows (CVE-2023-4807)

Relnotes:       Yes
Pull request:   https://github.com/freebsd/freebsd-src/pull/852
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 6f1af0d7d2af54b339b5212434cd6d4fda628d80)
DeltaFile
+43-21crypto/openssl/crypto/pkcs12/p12_crt.c
+19-19secure/lib/libcrypto/man/man3/OSSL_CMP_CTX_new.3
+23-14secure/usr.bin/openssl/man/openssl-cmp.1
+21-15crypto/openssl/crypto/engine/eng_lib.c
+27-4secure/lib/libcrypto/man/man3/BIO_s_mem.3
+20-11crypto/openssl/doc/man1/openssl-cmp.pod.in
+153-84862 files not shown
+3,005-2,671868 files

FreeBSD/src 6f1af0dcrypto/openssl/crypto/engine eng_lib.c, crypto/openssl/crypto/pkcs12 p12_crt.c

OpenSSL: update to 3.0.11

OpenSSL 3.0.11 addresses:

    POLY1305 MAC implementation corrupts XMM registers on Windows (CVE-2023-4807)

Relnotes:       Yes
Pull request:   https://github.com/freebsd/freebsd-src/pull/852
Sponsored by:   The FreeBSD Foundation
DeltaFile
+43-21crypto/openssl/crypto/pkcs12/p12_crt.c
+19-19secure/lib/libcrypto/man/man3/OSSL_CMP_CTX_new.3
+23-14secure/usr.bin/openssl/man/openssl-cmp.1
+21-15crypto/openssl/crypto/engine/eng_lib.c
+27-4secure/lib/libcrypto/man/man3/BIO_s_mem.3
+20-11crypto/openssl/doc/man1/openssl-cmp.pod.in
+153-84862 files not shown
+3,005-2,671868 files

FreeBSD/src 70337f7crypto/openssl appveyor.yml CHANGES, crypto/openssl/crypto/asn1 ameth_lib.c

OpenSSL: Merge OpenSSL 1.1.1w

(cherry picked from commit a1860b94f62494288804faebb1bf6ea8110ca148)
DeltaFile
+0-78crypto/openssl/appveyor.yml
+24-0crypto/openssl/CHANGES
+12-7crypto/openssl/crypto/ec/ec_ameth.c
+14-3crypto/openssl/crypto/cms/cms_asn1.c
+14-2crypto/openssl/crypto/cms/cms_sd.c
+10-1crypto/openssl/crypto/asn1/ameth_lib.c
+74-919 files not shown
+102-10615 files

FreeBSD/src cf3d446crypto/openssl appveyor.yml CHANGES, crypto/openssl/crypto/asn1 ameth_lib.c

OpenSSL: Merge OpenSSL 1.1.1w

(cherry picked from commit a1860b94f62494288804faebb1bf6ea8110ca148)
DeltaFile
+0-78crypto/openssl/appveyor.yml
+24-0crypto/openssl/CHANGES
+12-7crypto/openssl/crypto/ec/ec_ameth.c
+14-3crypto/openssl/crypto/cms/cms_asn1.c
+14-2crypto/openssl/crypto/cms/cms_sd.c
+10-1crypto/openssl/crypto/asn1/ameth_lib.c
+74-919 files not shown
+102-10615 files

FreeBSD/src fb055b0crypto/openssl/include/openssl opensslv.h

OpenSSL: regen opensslv.h for OpenSSL 3.0.10
DeltaFile
+5-5crypto/openssl/include/openssl/opensslv.h
+5-51 files

FreeBSD/src 1b34edccrypto/openssl CHANGES NEWS, crypto/openssl/crypto/dh dh_check.c

OpenSSL: Import OpenSSL 1.1.1v

(cherry picked from commit cc0d356166e39da7f956c39f874e6dee67fd5d60)
DeltaFile
+35-0crypto/openssl/CHANGES
+17-3crypto/openssl/crypto/dh/dh_check.c
+5-0crypto/openssl/NEWS
+4-1crypto/openssl/include/openssl/dh.h
+2-2crypto/openssl/include/openssl/opensslv.h
+2-1crypto/openssl/crypto/err/openssl.txt
+65-73 files not shown
+70-109 files

FreeBSD/src 53a7dcacrypto/openssl CHANGES NEWS, crypto/openssl/crypto/dh dh_check.c dh_err.c

OpenSSL: Import OpenSSL 1.1.1v

(cherry picked from commit cc0d356166e39da7f956c39f874e6dee67fd5d60)
DeltaFile
+35-0crypto/openssl/CHANGES
+17-3crypto/openssl/crypto/dh/dh_check.c
+5-0crypto/openssl/NEWS
+4-1crypto/openssl/include/openssl/dh.h
+2-2crypto/openssl/include/openssl/opensslv.h
+2-1crypto/openssl/crypto/dh/dh_err.c
+65-73 files not shown
+70-109 files

FreeBSD/src b077aedcrypto/openssl CHANGES.md CHANGES, secure/lib/libcrypto/arch/amd64 sha256-mb-x86_64.S

Merge OpenSSL 3.0.9

Migrate to OpenSSL 3.0 in advance of FreeBSD 14.0.  OpenSSL 1.1.1 (the
version we were previously using) will be EOL as of 2023-09-11.

Most of the base system has already been updated for a seamless switch
to OpenSSL 3.0.  For many components we've added
`-DOPENSSL_API_COMPAT=0x10100000L` to CFLAGS to specify the API version,
which avoids deprecation warnings from OpenSSL 3.0.  Changes have also
been made to avoid OpenSSL APIs that were already deprecated in OpenSSL
1.1.1.  The process of updating to contemporary APIs can continue after
this merge.

Additional changes are still required for libarchive and Kerberos-
related libraries or tools; workarounds will immediately follow this
commit.  Fixes are in progress in the upstream projects and will be
incorporated when those are next updated.

There are some performance regressions in benchmarks (certain tests in

    [16 lines not shown]
DeltaFile
+19,832-0crypto/openssl/CHANGES.md
+0-13,962crypto/openssl/CHANGES
+13,613-0secure/lib/libcrypto/arch/i386/sha256-586.S
+10,585-0secure/lib/libcrypto/arch/i386/ecp_nistz256-x86.S
+8,017-0secure/lib/libcrypto/arch/i386/sha1-586.S
+8,007-0secure/lib/libcrypto/arch/amd64/sha256-mb-x86_64.S
+60,054-13,9624,000 files not shown
+799,104-166,0244,006 files

FreeBSD/src 37cf93acrypto/openssl CHANGES, crypto/openssl/crypto/bn rsa_sup_mul.c bn_asm.c

OpenSSL: Merge OpenSSL 1.1.1u

(cherry picked from commit 8ecb489345f08012fdc92a202a40119891cac330)
(cherry picked from commit 8f1ef87a6b93af292e68f8e33087e2df6325e9bb)
DeltaFile
+0-614crypto/openssl/crypto/bn/rsa_sup_mul.c
+59-49crypto/openssl/crypto/bn/bn_asm.c
+58-0crypto/openssl/CHANGES
+42-14crypto/openssl/crypto/x509v3/pcy_tree.c
+13-27crypto/openssl/crypto/bn/bn_local.h
+10-20crypto/openssl/crypto/rsa/rsa_ossl.c
+182-72423 files not shown
+344-77229 files

FreeBSD/src cb56391crypto/openssl CHANGES, crypto/openssl/crypto/bn rsa_sup_mul.c bn_asm.c

OpenSSL: Merge OpenSSL 1.1.1u

(cherry picked from commit 8ecb489345f08012fdc92a202a40119891cac330)
(cherry picked from commit 8f1ef87a6b93af292e68f8e33087e2df6325e9bb)
DeltaFile
+0-614crypto/openssl/crypto/bn/rsa_sup_mul.c
+59-49crypto/openssl/crypto/bn/bn_asm.c
+58-0crypto/openssl/CHANGES
+42-14crypto/openssl/crypto/x509v3/pcy_tree.c
+13-27crypto/openssl/crypto/bn/bn_local.h
+10-20crypto/openssl/crypto/rsa/rsa_ossl.c
+182-72423 files not shown
+344-77229 files

FreeBSD/src 8f1ef87crypto/openssl CHANGES, crypto/openssl/crypto/bn rsa_sup_mul.c bn_asm.c

OpenSSL: Merge OpenSSL 1.1.1u

(cherry picked from commit 8ecb489345f08012fdc92a202a40119891cac330)
DeltaFile
+0-614crypto/openssl/crypto/bn/rsa_sup_mul.c
+59-49crypto/openssl/crypto/bn/bn_asm.c
+58-0crypto/openssl/CHANGES
+42-14crypto/openssl/crypto/x509v3/pcy_tree.c
+13-27crypto/openssl/crypto/bn/bn_local.h
+10-20crypto/openssl/crypto/rsa/rsa_ossl.c
+182-72423 files not shown
+344-77229 files

FreeBSD/src f86f992crypto/openssl CHANGES, crypto/openssl/crypto/asn1 bio_ndef.c

OpenSSL: Merge OpenSSL 1.1.1t

(cherry picked from commit 0d51f658515c605fcc4a8073cb5a8e0d7d904088)
DeltaFile
+614-0crypto/openssl/crypto/bn/rsa_sup_mul.c
+75-1crypto/openssl/CHANGES
+33-8crypto/openssl/crypto/asn1/bio_ndef.c
+28-8crypto/openssl/crypto/bn/bn_exp.c
+35-1crypto/openssl/crypto/bn/bn_local.h
+21-1crypto/openssl/crypto/bio/b_print.c
+806-1929 files not shown
+934-9135 files

FreeBSD/src 0904c29crypto/openssl CHANGES, crypto/openssl/crypto/asn1 bio_ndef.c

OpenSSL: Merge OpenSSL 1.1.1t

(cherry picked from commit 640242a5915761ce63205bdb0542fa3c1473c0ff)
DeltaFile
+614-0crypto/openssl/crypto/bn/rsa_sup_mul.c
+75-1crypto/openssl/CHANGES
+33-8crypto/openssl/crypto/asn1/bio_ndef.c
+35-1crypto/openssl/crypto/bn/bn_local.h
+28-8crypto/openssl/crypto/bn/bn_exp.c
+16-10crypto/openssl/ssl/record/rec_layer_s3.c
+801-2829 files not shown
+938-9635 files

FreeBSD/src 640242acrypto/openssl CHANGES, crypto/openssl/crypto/asn1 bio_ndef.c

OpenSSL: Merge OpenSSL 1.1.1t
Merge commit '0d51f658515c605fcc4a8073cb5a8e0d7d904088'
DeltaFile
+614-0crypto/openssl/crypto/bn/rsa_sup_mul.c
+75-1crypto/openssl/CHANGES
+33-8crypto/openssl/crypto/asn1/bio_ndef.c
+35-1crypto/openssl/crypto/bn/bn_local.h
+28-8crypto/openssl/crypto/bn/bn_exp.c
+16-10crypto/openssl/ssl/record/rec_layer_s3.c
+801-2829 files not shown
+938-9635 files

FreeBSD/src 84e736ecrypto/openssl/crypto/aes/asm aesv8-armx.pl, crypto/openssl/doc/man3 PKCS7_verify.pod CMS_verify.pod

Import OpenSSL 1.1.1s

(cherry picked from commit b6b67f23b82101d4c04c89f81d726b902ab77106)
DeltaFile
+57-45crypto/openssl/doc/man3/PKCS7_verify.pod
+61-22crypto/openssl/ssl/ssl_rsa.c
+45-36crypto/openssl/doc/man3/CMS_verify.pod
+63-1crypto/openssl/crypto/aes/asm/aesv8-armx.pl
+34-21crypto/openssl/doc/man3/PKCS7_sign_add_signer.pod
+22-25crypto/openssl/doc/man3/PKCS7_sign.pod
+282-15042 files not shown
+691-34048 files

FreeBSD/src 111c85bcrypto/openssl/crypto/aes/asm aesv8-armx.pl, crypto/openssl/doc/man3 PKCS7_verify.pod CMS_verify.pod

OpenSSL: Merge OpenSSL 1.1.1s

(cherry picked from commit cfc39718e9cc18943a6f8428c560b02c6f590b16)
DeltaFile
+57-45crypto/openssl/doc/man3/PKCS7_verify.pod
+61-22crypto/openssl/ssl/ssl_rsa.c
+45-36crypto/openssl/doc/man3/CMS_verify.pod
+63-1crypto/openssl/crypto/aes/asm/aesv8-armx.pl
+34-21crypto/openssl/doc/man3/PKCS7_sign_add_signer.pod
+22-25crypto/openssl/doc/man3/PKCS7_sign.pod
+282-15042 files not shown
+691-34048 files

FreeBSD/src cfc3971crypto/openssl/crypto/aes/asm aesv8-armx.pl, crypto/openssl/doc/man3 PKCS7_verify.pod CMS_verify.pod

OpenSSL: Merge OpenSSL 1.1.1s

Merge commit 'b6b67f23b82101d4c04c89f81d726b902ab77106'
DeltaFile
+57-45crypto/openssl/doc/man3/PKCS7_verify.pod
+61-22crypto/openssl/ssl/ssl_rsa.c
+45-36crypto/openssl/doc/man3/CMS_verify.pod
+63-1crypto/openssl/crypto/aes/asm/aesv8-armx.pl
+34-21crypto/openssl/doc/man3/PKCS7_sign_add_signer.pod
+22-25crypto/openssl/doc/man3/PKCS7_sign.pod
+282-15042 files not shown
+691-34048 files