Add server-framework SSL HTTP and WebSocket ports

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:15:27 -07:00
1 parent 74891560ae
commit 65932ee343
19 files changed
+1648 -200

No files matched your search

+17
View File
@@ -5,6 +5,16 @@ GroupSources(include/beast beast)
GroupSources(test/server "/")
if (OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
set(SSL_SOURCES
https_ports.cpp
ssl_stream.cpp
)
else ()
set(SSL_SOURCES "")
endif()
add_executable (server-test
${BEAST_INCLUDES}
${SERVER_INCLUDES}
@@ -14,15 +24,22 @@ add_executable (server-test
http_async_port.cpp
http_base.cpp
http_sync_port.cpp
https_ports.cpp
main.cpp
rfc7231.cpp
server.cpp
service_list.cpp
ssl_certificate
write_msg.cpp
ws_async_port.cpp
ws_sync_port.cpp
ws_upgrade_service.cpp
wss_ports.cpp
${SSL_SOURCES}
)
target_link_libraries(server-test Beast)
if (OPENSSL_FOUND)
target_link_libraries(server-test ${OPENSSL_LIBRARIES})
endif()
+3
View File
@@ -20,4 +20,7 @@ exe server-test :
ws_async_port.cpp
ws_sync_port.cpp
ws_upgrade_service.cpp
#https_ports.cpp
#ssl_certificate.cpp
#ssl_stream.cpp
;
+13
View File
@@ -0,0 +1,13 @@
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#if BEAST_USE_OPENSSL
// Test that header file is self-contained.
#include "../../example/server-framework/https_ports.hpp"
#endif
+13
View File
@@ -0,0 +1,13 @@
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#if BEAST_USE_OPENSSL
// Test that header file is self-contained.
#include "../../example/server-framework/ssl_certificate.hpp"
#endif
+13
View File
@@ -0,0 +1,13 @@
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#if BEAST_USE_OPENSSL
// Test that header file is self-contained.
#include "../../example/server-framework/ssl_stream.hpp"
#endif
+13
View File
@@ -0,0 +1,13 @@
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#if BEAST_USE_OPENSSL
// Test that header file is self-contained.
#include "../../example/server-framework/wss_ports.hpp"
#endif