[Libwebsockets] LWSWS v4.2.2 with wolfSSL
Roman Nikiforov
roman at nikiforoff.de
Tue Sep 7 19:10:31 CEST 2021
Hi Andy,
lws v4.2.2 compilation on Debian 10 x86_64 with wolfssl v4.8.1-stable
fails with
lws-genec.c:82:14: error: ‘BIGNUM’ {aka ‘const struct WOLFSSL_BIGNUM’}
has no member named ‘d’
l = a->d[i / BN_BYTES];
^~
lws-genec.c:82:22: error: ‘BN_BYTES’ undeclared (first use in this
function); did you mean ‘BN_CTX’?
l = a->d[i / BN_BYTES];
^~~~~~~~
BN_CTX
I had to add -DDISABLE_WERROR=1 because of conversion warnings and now
have this errors. Complete cmake call looks like:
cmake .. -DDISABLE_WERROR=1 -DLWS_WITH_LWSWS=1 -DLWS_WITH_WOLFSSL=1
-DLWS_WOLFSSL_INCLUDE_DIRS=../../wolfSSL
-DLWS_WOLFSSL_LIBRARIES=../../wolfSSL/inst/lib/libwolfssl.so
WolfSSL is configured this way:
> ./autogen.sh
> ./configure --prefix=${PWD}/inst --enable-wolftpm --enable-
> opensslextra --enable-libwebsockets
If I remove -DLWS_WITH_LWSWS=1 all compiles without errors, so it
should be lwsws specific issue.
Roman
More information about the Libwebsockets
mailing list