Skip to content

Commit

Permalink
Merge pull request #5 from coveooss/boost-version
Browse files Browse the repository at this point in the history
Drop dependency to recent boost version
  • Loading branch information
yrivardmulrooney authored May 18, 2022
2 parents 0b6e468 + 736b222 commit f5a0b08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: actions/cache@v2
with:
path: .cache
key: vcpkg-${{ matrix.key }}
key: vcpkg-${{ matrix.key }}-${{ hashFiles('**/vcpkg.json', '**/vcpkg-configuration.json') }}
- name: Install apt dependencies
if: matrix.os == 'ubuntu-20.04'
run: |
Expand Down
5 changes: 3 additions & 2 deletions src/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,11 @@ Connection::Connection(std::string host, std::uint16_t port, bool use_ssl, bool
{
if (use_ssl) {
ssl::context ssl_context(ssl::context::tls);
ssl_context.set_options(ssl::context::no_tlsv1 | ssl::context::no_tlsv1_1);
ssl_context.set_options(ssl::context::default_workarounds | ssl::context::no_tlsv1 | ssl::context::no_tlsv1_1);
if (verify_host) {
ssl_context.set_default_verify_paths();
ssl_context.set_verify_mode(ssl::verify_peer);
ssl_context.set_verify_callback(ssl::host_name_verification(m_host));
ssl_context.set_verify_callback(ssl::rfc2818_verification(m_host));
}
m_ssl_stream = std::make_unique<ssl_stream>(m_socket, ssl_context);
}
Expand Down

0 comments on commit f5a0b08

Please sign in to comment.