Handle both HTTP & HTTPS in HttpClientSession; remove macro WEBCC_ENABLE_SSL.

This commit is contained in:
Chunting Gu
2019-03-06 13:46:19 +08:00
parent 9b8304f06c
commit ffa0794926
9 changed files with 171 additions and 72 deletions
+1 -9
View File
@@ -1,10 +1,2 @@
add_executable(http_ssl_client main.cc)
set(SSL_LIBS ${OPENSSL_LIBRARIES})
if(WIN32)
set(SSL_LIBS ${SSL_LIBS} crypt32)
endif()
target_link_libraries(http_ssl_client webcc ${Boost_LIBRARIES})
target_link_libraries(http_ssl_client "${CMAKE_THREAD_LIBS_INIT}")
target_link_libraries(http_ssl_client ${SSL_LIBS})
target_link_libraries(http_ssl_client ${EXAMPLE_COMMON_LIBS})