Skip to content

Commit

Permalink
Merge pull request #71 from myddrin/handle_curl_ssl
Browse files Browse the repository at this point in the history
Add CURL options for certificate authentication.
  • Loading branch information
pramsey authored May 25, 2018
2 parents 0e6abb4 + 93d8d3a commit 977f575
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ Select [CURL options](https://curl.haxx.se/libcurl/c/curl_easy_setopt.html) are
* [CURLOPT_TLSAUTH_TYPE](https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_TYPE.html)
* [CURLOPT_SSL_VERIFYHOST](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html)
* [CURLOPT_SSL_VERIFYPEER](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html)
* [CURLOPT_SSLCERT](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT.html)
* [CURLOPT_SSLKEY](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY.html)
* [CURLOPT_SSLCERTTYPE](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERTTYPE.html)
* [CURLOPT_CAINFO](https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html)
* [CURLOPT_TIMEOUT](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html)
* [CURLOPT_TIMEOUT_MS](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html)
Expand Down
5 changes: 5 additions & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ static http_curlopt settable_curlopts[] = {
#if LIBCURL_VERSION_NUM >= 0x072500 /* 7.37.0 */
{ "CURLOPT_SSL_VERIFYHOST", CURLOPT_SSL_VERIFYHOST, CURLOPT_LONG, false },
{ "CURLOPT_SSL_VERIFYPEER", CURLOPT_SSL_VERIFYPEER, CURLOPT_LONG, false },
#endif
{ "CURLOPT_SSLCERT", CURLOPT_SSLCERT, CURLOPT_STRING, false },
{ "CURLOPT_SSLKEY", CURLOPT_SSLKEY, CURLOPT_STRING, false },
#if LIBCURL_VERSION_NUM >= 0x070903 /* 7.9.3 */
{ "CURLOPT_SSLCERTTYPE", CURLOPT_SSLCERTTYPE, CURLOPT_STRING, false },
#endif
#if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */
{ "CURLOPT_PRE_PROXY", CURLOPT_PRE_PROXY, CURLOPT_STRING, false },
Expand Down

0 comments on commit 977f575

Please sign in to comment.