[Libwebsockets] LWSWS v4.2.2 with wolfSSL

Roman Nikiforov roman at nikiforoff.de
Wed Sep 8 09:09:42 CEST 2021


is solved with v4.4-stable, thanks.

Roman

On Tue, 2021-09-07 at 19:57 +0100, Andy Green wrote:
> 
> On 9/7/21 6:10 PM, Roman Nikiforov wrote:
> > 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.
> 
> It's because LWSWS is pulling in LWS_WITH_GENCRYPTO.
> 
> If you try current v4.2-stable it should solve that.
> 
> -Andy
> 



More information about the Libwebsockets mailing list