Skip to content

Commit

Permalink
Use SSL certificate with Stratum when provided
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Apr 16, 2015
1 parent ef6f5be commit 02262de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,8 @@ bool stratum_connect(struct stratum_ctx *sctx, const char *url)
if (opt_protocol)
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
curl_easy_setopt(curl, CURLOPT_URL, sctx->curl_url);
if (opt_cert)
curl_easy_setopt(curl, CURLOPT_CAINFO, opt_cert);
curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, 1);
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 30);
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, sctx->curl_err_str);
Expand Down

0 comments on commit 02262de

Please sign in to comment.