1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/tls
Fabrice Fontaine a5f81f8336 lib/tls/CMakeLists.txt: fix build without threads
openssl can be built without threads resulting in the following build
failure:

-- Looking for HMAC_CTX_new
-- Looking for HMAC_CTX_new - not found

[...]

In file included from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/include/libwebsockets.h:661,
                 from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/lib/core/./private-lib-core.h:140,
                 from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/lib/plat/unix/unix-misc.c:28:
/home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/include/libwebsockets/lws-genhash.h:85:18: error: field 'ctx' has incomplete type
   85 |         HMAC_CTX ctx;
      |                  ^~~

To fix this build failure, don't unconditionally add pthread if openssl
has been found through pkg-config as openssl.pc will contain the
appropriate dependencies (i.e. -lpthread but also -lz or -latomic)

Fixes:
 - http://autobuild.buildroot.org/results/2ae9e3249b6fcc9e6c30e7783e264fc6599e61df

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-06-14 07:50:24 +01:00
..
mbedtls mbedtls: some versions need x509 overallocation 2022-05-17 15:37:16 +01:00
openssl tls: libressl: refactor set_options to work with macro implementations 2022-02-09 20:12:31 +00:00
CMakeLists.txt lib/tls/CMakeLists.txt: fix build without threads 2022-06-14 07:50:24 +01:00
lws-gencrypto-common.c Wextra 2021-07-04 10:29:54 +01:00
lws-genec-common.c genec: show correct nid when not allowed 2022-02-01 14:04:33 +00:00
private-jit-trust.h tls: JIT Trust 2021-06-22 15:55:29 +01:00
private-lib-tls.h openssl: remove lws_ssl_get_error_string as cruft 2021-11-02 07:23:28 +00:00
private-network.h tls: JIT Trust 2021-06-22 15:55:29 +01:00
tls-client.c jit-trust: adapt for esp-idf pre v3 mbedtls 2022-02-09 20:12:31 +00:00
tls-jit-trust.c tls: JIT Trust 2021-06-22 15:55:29 +01:00
tls-network.c logs: migrate more to log context 2021-10-15 14:15:06 +01:00
tls-server.c acme: update for v2 2022-05-17 15:37:16 +01:00
tls-sessions.c tls-sessions: remove no stash warning 2021-06-24 06:31:39 +01:00
tls.c coverity fixes 2022-01-16 13:32:09 +00:00