builtin_sha1.patch raw
1 Don't use builtin sha1 if not using ws
2
3 The builtin SHA1 (ZMQ_USE_BUILTIN_SHA1) is only used in the websocket
4 engine (ws_engine.cpp).
5 Upstreamed in https://github.com/zeromq/libzmq/pull/4670.
6
7 --- a/CMakeLists.txt
8 +++ b/CMakeLists.txt
9 @@ -234,7 +234,7 @@ if(NOT ZMQ_USE_GNUTLS)
10 endif()
11 endif()
12 endif()
13 - if(NOT ZMQ_USE_NSS)
14 + if(ENABLE_WS AND NOT ZMQ_USE_NSS)
15 list(APPEND sources ${CMAKE_CURRENT_SOURCE_DIR}/external/sha1/sha1.c
16 ${CMAKE_CURRENT_SOURCE_DIR}/external/sha1/sha1.h)
17 message(STATUS "Using builtin sha1")
18