From b667c0ad408254fae0fb12853e74eb6142179a8b Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Sun, 22 Sep 2019 19:40:33 -0700 Subject: [PATCH] fix unittest --- ixwebsocket/IXHttpClient.cpp | 3 ++- test/IXSocketTest.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ixwebsocket/IXHttpClient.cpp b/ixwebsocket/IXHttpClient.cpp index d7caf9e6..0548ec75 100644 --- a/ixwebsocket/IXHttpClient.cpp +++ b/ixwebsocket/IXHttpClient.cpp @@ -138,7 +138,8 @@ namespace ix bool tls = protocol == "https"; std::string errorMsg; - _socket = createSocket(tls, errorMsg); + SocketTLSOptions tlsOptions; + _socket = createSocket(tls, errorMsg, tlsOptions); if (!_socket) { diff --git a/test/IXSocketTest.cpp b/test/IXSocketTest.cpp index c5b0d20e..5bf9ed17 100644 --- a/test/IXSocketTest.cpp +++ b/test/IXSocketTest.cpp @@ -82,7 +82,8 @@ TEST_CASE("socket", "[socket]") { std::string errMsg; bool tls = true; - std::shared_ptr socket = createSocket(tls, errMsg); + SocketTLSOptions tlsOptions; + std::shared_ptr socket = createSocket(tls, errMsg, tlsOptions); std::string host("www.google.com"); int port = 443; std::string request("GET / HTTP/1.1\r\n\r\n");