mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
![]() polarssl is the old name for mbedtls. Unfortunately the two are confused in eg, Fedora. For our purposes, polarssl or mbedtls < 2.0 has includes in /usr/include/polarssl and polarssl_ apis and we call that "polarssl". polarssl or mbedtls >=2.0 has includes in /usr/include/mbedtls and mbedtls_ apis, we call that "mbedtls". This has to be spelled out clearly because eg Fedora has a package "mbedtls" which is 1.3.x and has the polarssl_ apis and include path. We will deal with that as "polarssl" despite the package name then. This patch lets you use LWS_USE_POLARSSL or LWS_USE_MBEDTLS and set the include and library path like this cmake .. -DLWS_USE_POLARSSL=1 -DLWS_POLARSSL_INCLUDE_DIRS=/usr/include -DLWS_POLARSSL_LIBRARIES=/usr/lib64/libmbedtls.so.9 This patch adds the cmake support and adapts [private-]libwebsockets.h but doesn't modify the apis in ssl[-*].c yet. Signed-off-by: Andy Green <andy@warmcat.com> |
||
---|---|---|
.. | ||
.gitignore | ||
alloc.c | ||
base64-decode.c | ||
client-handshake.c | ||
client-parser.c | ||
client.c | ||
context.c | ||
daemonize.c | ||
extension-permessage-deflate.c | ||
extension-permessage-deflate.h | ||
extension.c | ||
getifaddrs.c | ||
getifaddrs.h | ||
handshake.c | ||
header.c | ||
hpack.c | ||
http2.c | ||
huftable.h | ||
lextable-strings.h | ||
lextable.h | ||
libev.c | ||
libuv.c | ||
libwebsockets.c | ||
libwebsockets.h | ||
lws-plat-mbed3.c | ||
lws-plat-mbed3.cpp | ||
lws-plat-unix.c | ||
lws-plat-win.c | ||
minihuf.c | ||
minilex.c | ||
output.c | ||
parsers.c | ||
pollfd.c | ||
private-libwebsockets.h | ||
rewrite.c | ||
server-handshake.c | ||
server.c | ||
service.c | ||
sha-1.c | ||
ssl-client.c | ||
ssl-http2.c | ||
ssl-server.c | ||
ssl.c |