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

How to set a list of SSL Cipher Suites #100

Open
badfd opened this issue Apr 5, 2018 · 3 comments
Open

How to set a list of SSL Cipher Suites #100

badfd opened this issue Apr 5, 2018 · 3 comments
Milestone

Comments

@badfd
Copy link

badfd commented Apr 5, 2018

What is the functional equivalent of:

CURL *curl = curl_easy_init();
if(curl) {
  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
  curl_easy_setopt(curl, CURLOPT_SSL_CIPHER_LIST, "TLSv1");
  ret = curl_easy_perform(curl);
  curl_easy_cleanup(curl);
}

using RestClient-cpp?

See: CURLOPT_SSL_CIPHER_LIST

@badfd
Copy link
Author

badfd commented Apr 5, 2018

For this wrapper library to have wide adoption, developers need access to the full power of the underlying libcurl features. i.e. The API must provide access to the CURL handle ['curlHandle'].

Rather than hack the RestClient-cpp source to give themselves libcurl access, I can imagine that developers will bypass RestClient-cpp altogether and go directly to libcurl.

@mrtazz mrtazz added this to the v0.5.0 milestone Jun 11, 2018
@mrtazz
Copy link
Owner

mrtazz commented Jun 11, 2018

There isn't a way to do this yet, but I agree this would be useful to have.

@mrtazz mrtazz modified the milestones: v0.5.0, v0.6.0 May 4, 2020
@edwinpjacques
Copy link
Contributor

@badfd it would be pretty easy to add a method to the Connection for power users that wraps curl_easy_setopt, without giving the curl handle. Would that give you enough of what you need? Feel free to make a PR for that change so it can be reviewed.

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

3 participants