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

Unclear how to use CURLOPT_SSLVERSION #39

Open
dosshell opened this issue May 8, 2018 · 1 comment · May be fixed by #102
Open

Unclear how to use CURLOPT_SSLVERSION #39

dosshell opened this issue May 8, 2018 · 1 comment · May be fixed by #102

Comments

@dosshell
Copy link

dosshell commented May 8, 2018

How does one use CURLOPT_SSLVERSION with this wrapper?

curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_DEFAULT) does not work for me since CURL_SSLVERSION_DEFAULT is not defined. I can not find any exposed values for this option by the wrapper.

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

@bluesmoon
Copy link

I use this:

curl_easy_setopt(curl, CURLOPT_SSLVERSION,      7<<16) # Try highest version up to TLS 1.3

I got it by reading the curl.h header file.

@Gnimuc Gnimuc linked a pull request Apr 8, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants