Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
KEP-1443 Replace use of libCurl with Boost Beast
Browse files Browse the repository at this point in the history
WIP3
  • Loading branch information
ebruck committed May 28, 2019
1 parent 42074f5 commit c65725d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/http_req.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ namespace bzn::utils::http
ctx.add_verify_path(cert_path);
}

// Brew/macOS (because of how we build our openssl library we need to use the brew installed certs)
#ifdef __APPLE__
boost::system::error_code ec;
ctx.load_verify_file("/usr/local/etc/openssl/cert.pem", ec);
#endif

// Set SNI Hostname (many hosts need this to handshake successfully)
if (!SSL_set_tlsext_host_name(ssl_stream.native_handle(), host.c_str()))
{
Expand Down

0 comments on commit c65725d

Please sign in to comment.