Skip to content

Commit 4f7fb06

Browse files
author
Teddy Reed
committed
[squashable] Comments from @deanberris
1 parent 2031686 commit 4f7fb06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

boost/network/protocol/http/client/connection/ssl_delegate.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void boost::network::http::impl::ssl_delegate::connect(
3232
asio::ip::tcp::endpoint &endpoint, std::string host,
3333
function<void(system::error_code const &)> handler) {
3434
context_.reset(
35-
new asio::ssl::context(service_, asio::ssl::context::tlsv1_client));
35+
new asio::ssl::context(service_, asio::ssl::context::sslv23_client));
3636
if (ciphers_) {
3737
::SSL_CTX_set_cipher_list(context_->native_handle(), ciphers_->c_str());
3838
}
@@ -47,7 +47,7 @@ void boost::network::http::impl::ssl_delegate::connect(
4747
} else {
4848
if (always_verify_peer_) {
4949
context_->set_verify_mode(asio::ssl::context::verify_peer);
50-
// use openssl default verify paths. uses openssl environment variables
50+
// use openssl default verify paths. uses openssl environment variables
5151
// SSL_CERT_DIR, SSL_CERT_FILE
5252
context_->set_default_verify_paths();
5353
} else

boost/network/protocol/http/client/options.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct client_options {
102102
}
103103

104104
client_options& openssl_options(long o) {
105-
openssl_options_ ^= o;
105+
openssl_options_ = o;
106106
return *this;
107107
}
108108

0 commit comments

Comments
 (0)