[cpprestsdk] Patch to allow building with openssl 1.1.0

This commit is contained in:
Alexander Karatarakis 2017-10-06 18:23:11 -07:00
parent bb48a94606
commit bc18ea6622
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,14 @@
diff --git a/Release/src/websockets/client/ws_client_wspp.cpp b/Release/src/websockets/client/ws_client_wspp.cpp
index 9f91d68..4b5d506 100644
--- a/Release/src/websockets/client/ws_client_wspp.cpp
+++ b/Release/src/websockets/client/ws_client_wspp.cpp
@@ -76,7 +76,9 @@ static struct ASIO_SSL_memory_leak_suppress
{
~ASIO_SSL_memory_leak_suppress()
{
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
::SSL_COMP_free_compression_methods();
+#endif
}
} ASIO_SSL_memory_leak_suppressor;

View File

@ -1,5 +1,5 @@
Source: cpprestsdk
Version: 2.9.0-3
Version: 2.9.0-4
Build-Depends: zlib (windows), openssl (windows), boost (windows), websocketpp (windows)
Description: C++11 JSON, REST, and OAuth library
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.

View File

@ -13,6 +13,7 @@ if(NOT VCPKG_USE_HEAD_VERSION)
PATCHES
${CMAKE_CURRENT_LIST_DIR}/0001_cmake.patch
${CMAKE_CURRENT_LIST_DIR}/0002_no_websocketpp_in_uwp.patch
${CMAKE_CURRENT_LIST_DIR}/0003_openssl_110.patch
)
endif()