Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TLS Version and TLS Max Version #21

Open
scorriere opened this issue Sep 8, 2022 · 1 comment
Open

Support TLS Version and TLS Max Version #21

scorriere opened this issue Sep 8, 2022 · 1 comment

Comments

@scorriere
Copy link
Contributor

I was looking to specifying a TLS version (basically a minimum TLS version in newer versions of curl) with a max TLS version (-tls-max option in curl). tclcurl supports using 1 or the other inside of the -sslversion option. It is not possible to set both at once with this option. This option sets CURLOPT_SSLVERSION. Unfortunately, libcurl does not support setting the max TLS version in its own option, so it isn't easy to just add another tclcurl option to set this.

https://curl.se/libcurl/c/CURLOPT_SSLVERSION.html

Curl allows us to set both at the same time with a bitwise or operation. I have tested some local changes with adding an option -sslversionandmax to take a 2 element list. I am submitting a pull request.

@bovine
Copy link
Member

bovine commented Jan 25, 2024

Ref PR #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants