diff options
author | Francis Dupont <fdupont@isc.org> | 2021-03-25 19:29:18 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2021-03-26 15:39:56 +0100 |
commit | e2a412fdc8dd878c4bb4bc8f6d6a730605040221 (patch) | |
tree | b77a22ead8d3edc3d5e5fb90dd8af373bfd4cc2d /src/bin/netconf/http_control_socket.cc | |
parent | [#1662] Enabled the TLS test (diff) | |
download | kea-e2a412fdc8dd878c4bb4bc8f6d6a730605040221.tar.xz kea-e2a412fdc8dd878c4bb4bc8f6d6a730605040221.zip |
[#1662] Fixed netconf build
Diffstat (limited to 'src/bin/netconf/http_control_socket.cc')
-rw-r--r-- | src/bin/netconf/http_control_socket.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/netconf/http_control_socket.cc b/src/bin/netconf/http_control_socket.cc index b3d91796d9..dbe46440ea 100644 --- a/src/bin/netconf/http_control_socket.cc +++ b/src/bin/netconf/http_control_socket.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2018-2021 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -11,6 +11,9 @@ #include <netconf/http_control_socket.h> #include <cc/command_interpreter.h> +#include <asiolink/asio_wrapper.h> +#include <asiolink/io_service.h> +#include <asiolink/tls_socket.h> #include <http/client.h> #include <http/post_request_json.h> #include <http/response_json.h> @@ -84,7 +87,7 @@ HttpControlSocket::sendCommand(ConstElementPtr command) { string receive_errmsg; HttpResponseJsonPtr response(new HttpResponseJson()); - client.asyncSendRequest(getUrl(), request, response, + client.asyncSendRequest(getUrl(), TlsContextPtr(), request, response, [&io_service, &received_ec, &receive_errmsg] (const boost::system::error_code& ec, const HttpResponsePtr&, const string& errmsg) { |