audk/CryptoPkg/Library
Gerd Hoffmann 4ddd8ac3a2 CryptoPkg/TlsLib: fix tls cipher configuration
Trying to configure the TLS ciphers can lead to TLS handshake failures
because TlsCipherMappingTable is not in line with the ciphers actually
supported by OpensslLib.

Fix that by removing TlsCipherMappingTable altogether.  Use
SSL_get_ciphers() instead to get the stack of ciphers supported by
openssl.  Name and ID of the ciphers can be queried using the
SSL_CIPHER_get_name() and SSL_CIPHER_get_protocol_id() functions,
which allows us to map IDs to names without a hard-code table.

Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=2541
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20231004092003.3809321-1-kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Yi Li <yi1.li@intel.com>
2023-10-08 10:46:45 +00:00
..
BaseCryptLib CryptoPkg/BaseCryptLib: add sha384 and sha512 to ImageTimestampVerify 2023-09-07 06:12:18 +00:00
BaseCryptLibNull CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI. 2022-10-14 02:16:33 +00:00
BaseCryptLibOnProtocolPpi CryptoPkg: Enable DXE_CORE support in DxeCryptLib.inf 2023-04-19 03:59:33 +00:00
BaseHashApiLib CryptoPkg: Sha1 functions causing build errors 2022-11-08 03:15:13 +00:00
Include CryptoPkg: add define of maximum unsigned size_t 2023-08-09 07:10:31 +00:00
IntrinsicLib CryptoPkg: remove strcmp to syscall 2023-08-09 07:10:31 +00:00
OpensslLib CryptoPkg: remove BN and EC accel for size optimization 2023-08-09 07:10:31 +00:00
TlsLib CryptoPkg/TlsLib: fix tls cipher configuration 2023-10-08 10:46:45 +00:00
TlsLibNull CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI. 2022-10-14 02:16:33 +00:00