Skip to content

mbedtls: Add CURLOPT_TLS13_CIPHERS support - #14384

Closed
jan2000 wants to merge 1 commit into
curl:masterfrom
jan2000:mbedtls-tls13ciphers
Closed

jan2000 wants to merge 1 commit into
curl:masterfrom
jan2000:mbedtls-tls13ciphers

Conversation

@jan2000

@jan2000 jan2000 commented Aug 4, 2024

Copy link
Copy Markdown
Contributor

Bring setting ciphers with mbedTLS in line with other SSL backends, to make the curl interface more consistent across the backends.

Now the tls1.3 ciphers are set with the --tls13-ciphers option, when not set the default tls1.3 ciphers are used. The tls1.2 (1.1, 1.0) ciphers are set with the --ciphers option, when not set the default tls1.2 ciphers are used. The ciphers available for the connection are now a union of the tls1.3 and tls1.2 ciphers.

This changes the behaviour for mbedTLS when --ciphers is set, but --tls13-ciphers is not set. Now the ciphers set with --ciphers are combined with the default tls1.3 ciphers, whereas before solely the ciphers of --ciphers were used.

Thus before when no tls1.3 ciphers were specified in --ciphers, tls1.3 was completely disabled. This might not be what the user expected, especially as this does not happen with OpenSSL.

Bring setting ciphers with mbedTLS in line with other SSL backends,
to make the curl interface more consistent across the backends.

Now the tls1.3 ciphers are set with the --tls13-ciphers option, when
not set the default tls1.3 ciphers are used. The tls1.2 (1.1, 1.0)
ciphers are set with the --ciphers option, when not set the default
tls1.2 ciphers are used. The ciphers available for the connection
are now a union of the tls1.3 and tls1.2 ciphers.

This changes the behaviour for mbedTLS when --ciphers is set, but
--tls13-ciphers is not set. Now the ciphers set with --ciphers
are combined with the default tls1.3 ciphers, whereas before solely
the ciphers of --ciphers were used.

Thus before when no tls1.3 ciphers were specified in --ciphers,
tls1.3 was completely disabled. This might not be what the user
expected, especially as this does not happen with OpenSSL.
@bagder bagder closed this in 3f7dc8a Aug 5, 2024
@bagder

bagder commented Aug 5, 2024

Copy link
Copy Markdown
Member

Thanks!

bagder pushed a commit that referenced this pull request Aug 5, 2024
@jan2000
jan2000 deleted the mbedtls-tls13ciphers branch August 13, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants