mirror of
https://libwebsockets.org/repo/libwebsockets
synced 2024-11-21 08:37:52 +00:00
28ce32af64
Secure Streams is an optional layer on top of lws that separates policy like endpoint selection and tls cert validation into a device JSON policy document. Code that wants to open a client connection just specifies a streamtype name, and no longer deals with details like the endpoint, the protocol (!) or anything else other than payloads and optionally generic metadata; the JSON policy contains all the details for each streamtype. h1, h2, ws and mqtt client connections are supported. Logical secure streams outlive any particular connection and supports "nailed-up" connectivity regardless of underlying connection stability.
55 lines
1.8 KiB
Bash
Executable File
55 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
if [ "$LWS_METHOD" != "mbedtls" -a "$LWS_METHOD" != "ss+mbedtls" ] ; then
|
|
mkdir build && cd build &&
|
|
cmake -DOPENSSL_ROOT_DIR="/usr/local/opt/openssl" $CMAKE_ARGS .. &&
|
|
cmake --build .
|
|
fi
|
|
else
|
|
if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
mkdir build && cd build &&
|
|
if [ "$LWS_METHOD" = "lwsws" ] ; then
|
|
cmake -DLWS_OPENSSL_LIBRARIES="/usr/local/lib/libssl.so;/usr/local/lib/libcrypto.so" \
|
|
-DLWS_OPENSSL_INCLUDE_DIRS="/usr/local/include/openssl" $CMAKE_ARGS .. &&
|
|
cmake --build . &&
|
|
sudo make install &&
|
|
../minimal-examples/selftests.sh &&
|
|
../scripts/h2spec.sh &&
|
|
../scripts/attack.sh &&
|
|
../scripts/h2load.sh &&
|
|
../scripts/autobahn-test-server.sh &&
|
|
../scripts/autobahn-test-client.sh
|
|
else
|
|
if [ "$LWS_METHOD" = "lwsws2" ] ; then
|
|
cmake -DLWS_OPENSSL_LIBRARIES="/usr/local/lib/libssl.so;/usr/local/lib/libcrypto.so" \
|
|
-DLWS_OPENSSL_INCLUDE_DIRS="/usr/local/include/openssl" $CMAKE_ARGS .. &&
|
|
cmake --build . &&
|
|
sudo make install &&
|
|
../scripts/autobahn-test-server.sh
|
|
else
|
|
if [ "$LWS_METHOD" = "smp" ] ; then
|
|
cmake -DLWS_OPENSSL_LIBRARIES="/usr/local/lib/libssl.so;/usr/local/lib/libcrypto.so" \
|
|
-DLWS_OPENSSL_INCLUDE_DIRS="/usr/local/include/openssl" $CMAKE_ARGS .. &&
|
|
cmake --build . &&
|
|
../scripts/h2load-smp.sh
|
|
else
|
|
if [ "$LWS_METHOD" = "mbedtls" -o "$LWS_METHOD" = "ss+mbedtls" ] ; then
|
|
cmake $CMAKE_ARGS .. &&
|
|
cmake --build . &&
|
|
sudo make install &&
|
|
../minimal-examples/selftests.sh &&
|
|
../scripts/h2spec.sh &&
|
|
../scripts/h2load.sh &&
|
|
../scripts/attack.sh
|
|
else
|
|
cmake $CMAKE_ARGS .. &&
|
|
cmake --build .
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|