forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
depends: add zeromq builtin sha1 patch
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Don't use builtin sha1 if not using ws | ||
|
||
The builtin SHA1 (ZMQ_USE_BUILTIN_SHA1) is only used in the websocket | ||
engine (ws_engine.cpp). | ||
Upstreamed in https://github.com/zeromq/libzmq/pull/4670. | ||
|
||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -234,7 +234,7 @@ if(NOT ZMQ_USE_GNUTLS) | ||
endif() | ||
endif() | ||
endif() | ||
- if(NOT ZMQ_USE_NSS) | ||
+ if(ENABLE_WS AND NOT ZMQ_USE_NSS) | ||
list(APPEND sources ${CMAKE_CURRENT_SOURCE_DIR}/external/sha1/sha1.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/external/sha1/sha1.h) | ||
message(STATUS "Using builtin sha1") |