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 /storage/src/tests/frameworkimpl | |
parent | 762abbd7f48f3afe8257faf581c7defce160ad4f (diff) |
extend crypto engine api
send spec for client connections to enable SNI as well as server name
verification
Diffstat (limited to 'storage/src/tests/frameworkimpl')
-rw-r--r-- | storage/src/tests/frameworkimpl/status/statustest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/tests/frameworkimpl/status/statustest.cpp b/storage/src/tests/frameworkimpl/status/statustest.cpp index 81d91e2f08a..7c259f00899 100644 --- a/storage/src/tests/frameworkimpl/status/statustest.cpp +++ b/storage/src/tests/frameworkimpl/status/statustest.cpp @@ -19,7 +19,7 @@ vespalib::string fetch(int port, const vespalib::string &path) { auto crypto = vespalib::CryptoEngine::get_default(); auto socket = vespalib::SocketSpec::from_port(port).client_address().connect(); assert(socket.valid()); - auto conn = vespalib::SyncCryptoSocket::create(*crypto, std::move(socket), false); + auto conn = vespalib::SyncCryptoSocket::create_client(*crypto, std::move(socket), vespalib::SocketSpec::from_host_port("localhost", port)); vespalib::string http_req = vespalib::make_string("GET %s HTTP/1.1\r\n" "Host: localhost:%d\r\n" "\r\n", path.c_str(), port); |