Skip to content

Conversation

ritzk
Copy link
Contributor

@ritzk ritzk commented Jun 3, 2020

add support for ssl proxy

/// By default this value is not set and corresponds to `CURLOPT_PROXY_SSLCERT`.
pub fn proxy_sslkey(&mut self, cainfo: &str) -> Result<(), Error> {
let cainfo = CString::new(cainfo)?;
self.setopt_str(curl_sys::CURLOPT_PROXY_CAINFO, &cainfo)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like these all specify CURLOPT_PROXY_CAINFO? And they all have the same cainfo: &str argument?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Add example

@alexcrichton
Copy link
Owner

Thanks! If these are relatively new you may need to add cases here to configure whether the constant values are checked against C or not

@ritzk ritzk force-pushed the master branch 5 times, most recently from 63a3740 to 00c4a41 Compare June 3, 2020 20:00
  - update docker image to ubuntu 16.04
  - add support for ssl proxy
@alexcrichton alexcrichton merged commit ecc9d80 into alexcrichton:master Jun 3, 2020
@alexcrichton
Copy link
Owner

Thanks!

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 this pull request may close these issues.

2 participants