mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 12:05:38 +01:00
compat.sh: source cosmetics
This commit is contained in:
parent
330e4111cb
commit
95957717f3
@ -63,7 +63,7 @@ do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
log () {
|
log() {
|
||||||
if [ "X" != "X$VERBOSE" ]; then
|
if [ "X" != "X$VERBOSE" ]; then
|
||||||
echo "$@"
|
echo "$@"
|
||||||
fi
|
fi
|
||||||
@ -463,6 +463,12 @@ start_server() {
|
|||||||
sleep 1
|
sleep 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# terminate the running server
|
||||||
|
stop_server() {
|
||||||
|
kill $PROCESS_ID 2>/dev/null
|
||||||
|
wait $PROCESS_ID 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
# run_client <name> <cipher>
|
# run_client <name> <cipher>
|
||||||
run_client() {
|
run_client() {
|
||||||
# run the command and interpret result
|
# run the command and interpret result
|
||||||
@ -525,48 +531,40 @@ run_client() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
for VERIFY in $VERIFIES;
|
for VERIFY in $VERIFIES; do
|
||||||
do
|
for MODE in $MODES; do
|
||||||
|
echo "-----------"
|
||||||
|
echo "Running for $MODE (Verify: $VERIFY)"
|
||||||
|
for TYPE in $TYPES; do
|
||||||
|
|
||||||
for MODE in $MODES;
|
setup_arguments
|
||||||
do
|
setup_ciphersuites
|
||||||
|
|
||||||
echo "-----------"
|
start_server "OpenSSL"
|
||||||
echo "Running for $MODE (Verify: $VERIFY)"
|
|
||||||
|
|
||||||
for TYPE in $TYPES;
|
for i in $P_CIPHERS; do
|
||||||
do
|
run_client PolarSSL $i
|
||||||
|
done
|
||||||
|
|
||||||
setup_arguments
|
stop_server
|
||||||
setup_ciphersuites
|
|
||||||
|
|
||||||
start_server "OpenSSL"
|
start_server "PolarSSL"
|
||||||
|
|
||||||
for i in $P_CIPHERS; do
|
for i in $O_CIPHERS; do
|
||||||
run_client PolarSSL $i
|
run_client OpenSSL $i
|
||||||
done
|
done
|
||||||
|
|
||||||
kill $PROCESS_ID 2>/dev/null
|
echo "-----------"
|
||||||
wait $PROCESS_ID 2>/dev/null
|
add_polarssl_ciphersuites
|
||||||
|
|
||||||
start_server "PolarSSL"
|
for i in $P_CIPHERS; do
|
||||||
|
run_client PolarSSL $i
|
||||||
|
done
|
||||||
|
|
||||||
for i in $O_CIPHERS; do
|
stop_server
|
||||||
run_client OpenSSL $i
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "-----------"
|
done
|
||||||
add_polarssl_ciphersuites
|
done
|
||||||
|
|
||||||
for i in $P_CIPHERS; do
|
|
||||||
run_client PolarSSL $i
|
|
||||||
done
|
|
||||||
|
|
||||||
kill $PROCESS_ID 2>/dev/null
|
|
||||||
wait $PROCESS_ID 2>/dev/null
|
|
||||||
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user