freebsd-src/crypto/openssl
John Baldwin c0f977bfb6 OpenSSL: KTLS: Handle TLS 1.3 in ssl3_get_record.
- Don't unpad records, check the outer record type, or extract the
  inner record type from TLS 1.3 records handled by the kernel.  KTLS
  performs all of these steps and returns the inner record type in the
  TLS header.

- When checking the length of a received TLS 1.3 record don't allow
  for the extra byte for the nested record type when KTLS is used.

- Pass a pointer to the record type in the TLS header to the
  SSL3_RT_INNER_CONTENT_TYPE message callback.  For KTLS, the old
  pointer pointed to the last byte of payload rather than the record
  type.  For the non-KTLS case, the TLS header has been updated with
  the inner type before this callback is invoked.

Approved by:	jkim
Obtained from:	OpenSSL commit a5fb9605329fb939abb536c1604d44a511741624
MFC after:	1 week
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D34975
2022-05-04 13:08:27 -07:00
..
apps OpenSSL: Merge OpenSSL 1.1.1o 2022-05-03 15:07:06 -04:00
crypto OpenSSL: Merge OpenSSL 1.1.1o 2022-05-03 15:07:06 -04:00
doc OpenSSL: Merge OpenSSL 1.1.1o 2022-05-03 15:07:06 -04:00
engines OpenSSL: Merge OpenSSL 1.1.1m 2021-12-14 16:03:52 -05:00
include OpenSSL: Merge OpenSSL 1.1.1o 2022-05-03 15:07:06 -04:00
ssl OpenSSL: KTLS: Handle TLS 1.3 in ssl3_get_record. 2022-05-04 13:08:27 -07:00
ACKNOWLEDGEMENTS Update OpenSSL to 1.1.1. 2018-09-13 20:40:51 +00:00
appveyor.yml Merge OpenSSL 1.1.1h. 2020-09-22 16:18:31 +00:00
AUTHORS OpenSSL: Merge OpenSSL 1.1.1j 2021-02-16 17:00:27 -05:00
build.info Merge OpenSSL 1.1.1e. 2020-03-18 02:13:12 +00:00
CHANGES OpenSSL: Merge OpenSSL 1.1.1o 2022-05-03 15:07:06 -04:00
config OpenSSL: Merge OpenSSL 1.1.1n 2022-03-15 19:37:45 -04:00
Configure OpenSSL: Merge OpenSSL 1.1.1n 2022-03-15 19:37:45 -04:00
CONTRIBUTING OpenSSL: Merge OpenSSL 1.1.1j 2021-02-16 17:00:27 -05:00
e_os.h Merge OpenSSL 1.1.1h. 2020-09-22 16:18:31 +00:00
FAQ Merge OpenSSL 1.0.2e. 2015-12-03 21:13:35 +00:00
INSTALL OpenSSL: Merge OpenSSL 1.1.1j 2021-02-16 17:00:27 -05:00
LICENSE Merge OpenSSL 1.1.1b. 2019-02-26 19:31:33 +00:00
NEWS OpenSSL: Merge OpenSSL 1.1.1o 2022-05-03 15:07:06 -04:00
NOTES.PERL Merge OpenSSL 1.1.1h. 2020-09-22 16:18:31 +00:00
NOTES.UNIX Update OpenSSL to 1.1.1. 2018-09-13 20:40:51 +00:00
README OpenSSL: Merge OpenSSL 1.1.1o 2022-05-03 15:07:06 -04:00
README.ENGINE Update OpenSSL to 1.1.1. 2018-09-13 20:40:51 +00:00
README.FIPS Update OpenSSL to 1.1.1. 2018-09-13 20:40:51 +00:00

 OpenSSL 1.1.1o 3 May 2022

 Copyright (c) 1998-2022 The OpenSSL Project
 Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson
 All rights reserved.

 DESCRIPTION
 -----------

 The OpenSSL Project is a collaborative effort to develop a robust,
 commercial-grade, fully featured, and Open Source toolkit implementing the
 Transport Layer Security (TLS) protocols (including SSLv3) as well as a
 full-strength general purpose cryptographic library.

 OpenSSL is descended from the SSLeay library developed by Eric A. Young
 and Tim J. Hudson.  The OpenSSL toolkit is licensed under a dual-license (the
 OpenSSL license plus the SSLeay license), which means that you are free to
 get and use it for commercial and non-commercial purposes as long as you
 fulfill the conditions of both licenses.

 OVERVIEW
 --------

 The OpenSSL toolkit includes:

 libssl (with platform specific naming):
     Provides the client and server-side implementations for SSLv3 and TLS.

 libcrypto (with platform specific naming):
     Provides general cryptographic and X.509 support needed by SSL/TLS but
     not logically part of it.

 openssl:
     A command line tool that can be used for:
        Creation of key parameters
        Creation of X.509 certificates, CSRs and CRLs
        Calculation of message digests
        Encryption and decryption
        SSL/TLS client and server tests
        Handling of S/MIME signed or encrypted mail
        And more...

 INSTALLATION
 ------------

 See the appropriate file:
        INSTALL         Linux, Unix, Windows, OpenVMS, ...
        NOTES.*         INSTALL addendums for different platforms

 SUPPORT
 -------

 See the OpenSSL website www.openssl.org for details on how to obtain
 commercial technical support. Free community support is available through the
 openssl-users email list (see
 https://www.openssl.org/community/mailinglists.html for further details).

 If you have any problems with OpenSSL then please take the following steps
 first:

    - Download the latest version from the repository
      to see if the problem has already been addressed
    - Configure with no-asm
    - Remove compiler optimization flags

 If you wish to report a bug then please include the following information
 and create an issue on GitHub:

    - OpenSSL version: output of 'openssl version -a'
    - Configuration data: output of 'perl configdata.pm --dump'
    - OS Name, Version, Hardware platform
    - Compiler Details (name, version)
    - Application Details (name, version)
    - Problem Description (steps that will reproduce the problem, if known)
    - Stack Traceback (if the application dumps core)

 Just because something doesn't work the way you expect does not mean it
 is necessarily a bug in OpenSSL. Use the openssl-users email list for this type
 of query.

 HOW TO CONTRIBUTE TO OpenSSL
 ----------------------------

 See CONTRIBUTING

 LEGALITIES
 ----------

 A number of nations restrict the use or export of cryptography. If you
 are potentially subject to such restrictions you should seek competent
 professional legal advice before attempting to develop or distribute
 cryptographic code.