]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1662] Fixed netconf build
authorFrancis Dupont <fdupont@isc.org>
Thu, 25 Mar 2021 18:29:18 +0000 (19:29 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 26 Mar 2021 14:39:56 +0000 (15:39 +0100)
src/bin/netconf/Makefile.am
src/bin/netconf/http_control_socket.cc
src/bin/netconf/tests/Makefile.am
src/bin/netconf/tests/control_socket_unittests.cc

index 5b00fd22adbf59ef6fb6dd018fe02b7ce13e2105..de8c393e60b2f2e8520d53eac92ca0222dfb2054 100644 (file)
@@ -3,7 +3,8 @@ SUBDIRS = . tests
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
 AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
 AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_builddir)/src
-AM_CPPFLAGS += $(BOOST_INCLUDES) $(SYSREPO_INCLUDEDIR)
+AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
+AM_CPPFLAGS += $(SYSREPO_INCLUDEDIR)
 
 AM_CXXFLAGS = $(KEA_CXXFLAGS)
 
index b3d91796d927cc2bf1854d64eecf41f7e270019d..dbe46440ea935600f98c76595efbb7d02a824396 100644 (file)
@@ -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) {
index ca47d74f9aef0dc41195143fecb7da651cb5e930..0c5e5fd0a18ddededce66736a8289164b8e1c792 100644 (file)
@@ -9,7 +9,8 @@ AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/bin/netconf/tests\
 AM_CPPFLAGS += -DCFG_EXAMPLES=\"$(abs_top_srcdir)/doc/examples/netconf\"
 AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/bin/netconf/tests\"
 AM_CPPFLAGS += -DSYNTAX_FILE=\"$(abs_srcdir)/../netconf_parser.yy\"
-AM_CPPFLAGS += $(BOOST_INCLUDES) $(SYSREPO_INCLUDEDIR)
+AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
+AM_CPPFLAGS += $(SYSREPO_INCLUDEDIR)
 
 CLEANFILES = *.json *.log
 
index 5f754cb2849e9825d6fbc89dc0f2c4ca32b52ac1..9e7700a1115b66b83678b303674873b3d28ed6dc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2018-2020 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
@@ -613,7 +613,7 @@ HttpControlSocketTest::createReflectListener() {
     listener_.reset(new
                 HttpListener(io_service_,
                              IOAddress(SERVER_ADDRESS), SERVER_PORT,
-                             factory,
+                             TlsContextPtr(), factory,
                              HttpListener::RequestTimeout(2000),
                              HttpListener::IdleTimeout(2000)));
 }