mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 13:40:47 +08:00
[cpprestsdk] Patch to allow building with openssl 1.1.0
This commit is contained in:
parent
bb48a94606
commit
bc18ea6622
14
ports/cpprestsdk/0003_openssl_110.patch
Normal file
14
ports/cpprestsdk/0003_openssl_110.patch
Normal 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;
|
||||
|
@ -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.
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user