diff options
author | Håvard Pettersen <havardpe@oath.com> | 2020-02-13 11:32:34 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2020-02-13 13:58:33 +0000 |
commit | 556d6b002d93391abc2e8cf7c8b1d1d133b12d32 (patch) | |
tree | 2130148d7b1c0ef30bd049f499f21e0c0011b23d /fbench | |
parent | 762abbd7f48f3afe8257faf581c7defce160ad4f (diff) |
extend crypto engine api
send spec for client connections to enable SNI as well as server name
verification
Diffstat (limited to 'fbench')
-rw-r--r-- | fbench/src/httpclient/httpclient.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fbench/src/httpclient/httpclient.cpp b/fbench/src/httpclient/httpclient.cpp index 002d2770dcd..99134a6e297 100644 --- a/fbench/src/httpclient/httpclient.cpp +++ b/fbench/src/httpclient/httpclient.cpp @@ -1,5 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "httpclient.h" +#include <vespa/vespalib/net/socket_spec.h> #include <cassert> #include <cstring> @@ -69,7 +70,8 @@ HTTPClient::connect_socket() if (!handle.valid()) { return false; } - _socket = vespalib::SyncCryptoSocket::create(*_engine, std::move(handle), false); + _socket = vespalib::SyncCryptoSocket::create_client(*_engine, std::move(handle), + vespalib::SocketSpec::from_host_port(_hostname, _port)); return bool(_socket); } |