mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 22:04:34 +02:00
Reorganize SSL examples
This commit is contained in:
@@ -190,7 +190,5 @@ add_subdirectory (test)
|
||||
add_subdirectory (example)
|
||||
|
||||
if (OPENSSL_FOUND)
|
||||
add_subdirectory (example/ssl-http-client)
|
||||
add_subdirectory (example/ssl-websocket-client)
|
||||
add_subdirectory (test/websocket/ssl)
|
||||
endif()
|
||||
|
@@ -57,7 +57,7 @@ as measured by Alexa.
|
||||
This example demonstrates sending and receiving HTTP messages
|
||||
over a TLS connection. Requires OpenSSL to build.
|
||||
|
||||
* [repo_file example/ssl-http-client/ssl_http_client.cpp]
|
||||
* [repo_file example/http-client-ssl/http_client_ssl.cpp]
|
||||
|
||||
[endsect]
|
||||
|
||||
@@ -68,7 +68,7 @@ over a TLS connection. Requires OpenSSL to build.
|
||||
Establish a WebSocket connection over an encrypted TLS connection,
|
||||
send a message and receive the reply. Requires OpenSSL to build.
|
||||
|
||||
* [repo_file example/ssl-websocket-client/ssl_websocket_client.cpp]
|
||||
* [repo_file example/websocket-client-ssl/websocket_client_ssl.cpp]
|
||||
|
||||
[endsect]
|
||||
|
||||
|
@@ -5,3 +5,8 @@ add_subdirectory (http-client)
|
||||
add_subdirectory (http-crawl)
|
||||
add_subdirectory (server-framework)
|
||||
add_subdirectory (websocket-client)
|
||||
|
||||
if (OPENSSL_FOUND)
|
||||
add_subdirectory (http-client-ssl)
|
||||
add_subdirectory (websocket-client-ssl)
|
||||
endif()
|
||||
|
14
example/http-client-ssl/CMakeLists.txt
Normal file
14
example/http-client-ssl/CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
# Part of Beast
|
||||
|
||||
GroupSources(include/beast beast)
|
||||
|
||||
GroupSources(example/http-client-ssl "/")
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
add_executable (http-client-ssl
|
||||
${BEAST_INCLUDES}
|
||||
http_client_ssl.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(http-client-ssl Beast ${OPENSSL_LIBRARIES})
|
@@ -43,7 +43,7 @@ project
|
||||
<library>crypto
|
||||
;
|
||||
|
||||
exe ssl-http-client
|
||||
exe http-client-ssl
|
||||
:
|
||||
ssl_http_client.cpp
|
||||
http_client_ssl.cpp
|
||||
;
|
@@ -1,14 +0,0 @@
|
||||
# Part of Beast
|
||||
|
||||
GroupSources(include/beast beast)
|
||||
|
||||
GroupSources(example/ssl-http-client "/")
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
add_executable (ssl-http-client
|
||||
${BEAST_INCLUDES}
|
||||
ssl_http_client.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(ssl-http-client Beast ${OPENSSL_LIBRARIES})
|
@@ -1,14 +0,0 @@
|
||||
# Part of Beast
|
||||
|
||||
GroupSources(include/beast beast)
|
||||
|
||||
GroupSources(example/ssl-websocket-client "/")
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
add_executable (ssl-websocket-client
|
||||
${BEAST_INCLUDES}
|
||||
ssl_websocket_client.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(ssl-websocket-client Beast ${OPENSSL_LIBRARIES})
|
14
example/websocket-client-ssl/CMakeLists.txt
Normal file
14
example/websocket-client-ssl/CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
# Part of Beast
|
||||
|
||||
GroupSources(include/beast beast)
|
||||
|
||||
GroupSources(example/websocket-client-ssl "/")
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
add_executable (websocket-client-ssl
|
||||
${BEAST_INCLUDES}
|
||||
websocket_client_ssl.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-client-ssl Beast ${OPENSSL_LIBRARIES})
|
Reference in New Issue
Block a user