[Libwebsockets] working with wolfssl

Trey Weaver trey.weaver at jpsinterop.com
Mon May 10 15:25:49 CEST 2021


When I do a straight up:
cmake ..
make

everything goes fine.  But when I try to add the wolfssl stuff like this:

cmake -DLWS_WITH_WOLFSSL=1 -DLWS_WOLFSSL_INCLUDE_DIRS=/home/jps/Temp/wolfssh.headers -DLWS_WOLFSSL_LIBRARIES=/usr/share/jps-audioproc-third-party/wolfssl/lib/libwolfssl.a ..

just like the build notes say to do and then do a make then I get this error:

jps at dsp:~/Development/libwebsockets-4.2/libwebsockets/build$ make
Scanning dependencies of target GENHDR
[  0%] Creating build include dir
[  0%] Built target GENHDR
Scanning dependencies of target websockets_shared
[  1%] Building C object lib/CMakeFiles/websockets_shared.dir/plat/unix/unix-caps.c.o
In file included from /home/jps/Development/libwebsockets-4.2/libwebsockets/include/libwebsockets.h:642,
                 from /home/jps/Development/libwebsockets-4.2/libwebsockets/lib/core/./private-lib-core.h:140,
                 from /home/jps/Development/libwebsockets-4.2/libwebsockets/lib/plat/unix/unix-caps.c:28:
/home/jps/Development/libwebsockets-4.2/libwebsockets/include/libwebsockets/lws-genhash.h:85:9: error: unknown type name ‘HMAC_CTX’
         HMAC_CTX ctx;
         ^~~~~~~~
make[2]: *** [lib/CMakeFiles/websockets_shared.dir/build.make:63: lib/CMakeFiles/websockets_shared.dir/plat/unix/unix-caps.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1076: lib/CMakeFiles/websockets_shared.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

I am building 4.2 on a 32 bit ARM (iMX6).

I do see this in CMAKE:

-- Looking for wolfSSL_HMAC_CTX_new
-- Looking for wolfSSL_HMAC_CTX_new - not found

I did compile wolfssl with the --enable-opensslextra option.

I have attached the cmake output file....I don't know why every wolfssl option is "not found" or if that is normal.

regards,
Trey Weaver






    Trey Weaver / Director Engineering
    M: +1-919-345-0597
    trey.weaver at jpsinterop.com<mailto:trey.weaver at jpsinterop.com>

    JPS Interoperability Solutions, Inc.
    5800 Departure Drive
    Raleigh, NC 27616
<http://www.jpsinterop.com/>
 [1464991598139_jps]
[1464990640206_PastedImage]   <https://twitter.com/jpsinterop>   <https://www.facebook.com/jpsinterop>     [1464990683028_PastedImage]
support at jpsinterop.com<mailto:support at jpsinterop.com>
sales at jpsinterop.com<mailto:sales at jpsinterop.com>
http://www.jpsinterop.com/


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20210510/7dd4fc0e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1464991598.jpg
Type: image/jpeg
Size: 3936 bytes
Desc: Outlook-1464991598.jpg
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20210510/7dd4fc0e/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1464990640.png
Type: image/png
Size: 1040 bytes
Desc: Outlook-1464990640.png
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20210510/7dd4fc0e/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1464990683.png
Type: image/png
Size: 888 bytes
Desc: Outlook-1464990683.png
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20210510/7dd4fc0e/attachment-0003.png>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cmake-output.txt
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20210510/7dd4fc0e/attachment-0001.txt>


More information about the Libwebsockets mailing list