mirror of
https://github.com/coturn/coturn.git
synced 2025-10-22 03:21:03 +02:00
Similar to #989, use a single SSL context for all versions of DTLS protocol - Add support for modern API (protocol version independent APIs) - Add DTLS test to the CI test - Removing calls to `SSL_CTX_set_read_ahead` in DTLS context (does nothing as DTLS is datagram protocol - we always get the whole datagram so this call has no impact) Fixes #924
45 lines
1.3 KiB
Bash
Executable File
45 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo 'Running turnserver'
|
|
../bin/turnserver --use-auth-secret --static-auth-secret=secret --realm=north.gov --allow-loopback-peers --no-cli --cert ../examples/ca/turn_server_cert.pem --pkey ../examples/ca/turn_server_pkey.pem > /dev/null &
|
|
echo 'Running peer client'
|
|
../bin/turnutils_peer -L 127.0.0.1 -L ::1 -L 0.0.0.0 > /dev/null &
|
|
|
|
sleep 2
|
|
|
|
echo 'Running turn client TCP'
|
|
../bin/turnutils_uclient -t -e 127.0.0.1 -X -g -u user -W secret 127.0.0.1 | grep "start_mclient: tot_send_bytes ~ 1000, tot_recv_bytes ~ 1000" > /dev/null
|
|
if [ $? -eq 0 ]; then
|
|
echo OK
|
|
else
|
|
echo FAIL
|
|
exit $?
|
|
fi
|
|
|
|
echo 'Running turn client TLS'
|
|
../bin/turnutils_uclient -t -S -e 127.0.0.1 -X -g -u user -W secret 127.0.0.1 | grep "start_mclient: tot_send_bytes ~ 1000, tot_recv_bytes ~ 1000" > /dev/null
|
|
if [ $? -eq 0 ]; then
|
|
echo OK
|
|
else
|
|
echo FAIL
|
|
exit $?
|
|
fi
|
|
|
|
echo 'Running turn client UDP'
|
|
../bin/turnutils_uclient -e 127.0.0.1 -X -g -u user -W secret 127.0.0.1 | grep "start_mclient: tot_send_bytes ~ 1000, tot_recv_bytes ~ 1000" > /dev/null
|
|
if [ $? -eq 0 ]; then
|
|
echo OK
|
|
else
|
|
echo FAIL
|
|
exit $?
|
|
fi
|
|
|
|
echo 'Running turn client DTLS'
|
|
../bin/turnutils_uclient -S -e 127.0.0.1 -X -g -u user -W secret 127.0.0.1 | grep "start_mclient: tot_send_bytes ~ 1000, tot_recv_bytes ~ 1000" > /dev/null
|
|
if [ $? -eq 0 ]; then
|
|
echo OK
|
|
else
|
|
echo FAIL
|
|
exit $?
|
|
fi
|