]> git.ipfire.org Git - thirdparty/curl.git/commit
sectransp: remove large cipher table
authorJan Venekamp <1422460+jan2000@users.noreply.github.com>
Wed, 29 May 2024 11:58:53 +0000 (13:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 1 Jun 2024 09:00:06 +0000 (11:00 +0200)
commit4e2c45110ceda5caf9fd708776fbdff67a1bc482
tree6a716f6fb52f4ba459979775b3c35e3d36b4f943
parenta8174176b5425c5692b55b78e40aef3a2331155f
sectransp: remove large cipher table

Previously a large table of ciphers was used to determine the default
ciphers and to lookup manually selected ciphers names.

With the lookup of the manually selected cipher names moved to
Curl_cipher_suite_walk_str() the large table is no longer needed for
that purpose.

The list of manually selected cipher can now be intersected with the
ciphers supported by Secure Transport (SSLGetSupportedCiphers()),
instead of using the fixed table for that.

The other use of the table was to filter the list of all supported
ciphers offered by Secure Transport to create a list of ciphers to
use by default, excluding ciphers in the table marked as weak.

Instead of using a complement based approach (exclude weak), switch
to using an intersection with a smaller list of ciphers deemed
appropriate.

Closes #13823
lib/vtls/sectransp.c