Enable Mutual TLS for http2 connections
Passing the TLS-provided credentials from the HTTP connection to the
http2 connection got missed, and appears to break mutual TLS for http2
connections. Pass the credentials.
Tested: Mutual TLS is now functional on http2 connections as shown in
the next patch.
Change-Id: Ia2bbcd5383dae859baa96908b76f221b9c74632c
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/test/http/http2_connection_test.cpp b/test/http/http2_connection_test.cpp
index 4009e44..117ae45 100644
--- a/test/http/http2_connection_test.cpp
+++ b/test/http/http2_connection_test.cpp
@@ -130,7 +130,7 @@
boost::asio::ssl::context sslCtx(boost::asio::ssl::context::tls_server);
auto conn = std::make_shared<HTTP2Connection<TestStream, FakeHandler>>(
boost::asio::ssl::stream<TestStream>(std::move(stream), sslCtx),
- &handler, date, HttpType::HTTP);
+ &handler, date, HttpType::HTTP, nullptr);
conn->start();
std::string_view expectedPrefix =