mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-09 23:26:29 -04:00
ssl-opt.sh: Add a check of the list of supported ciphersuites
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
46a660a2c5
commit
a8b474f42f
@ -279,9 +279,18 @@ requires_protocol_version() {
|
|||||||
|
|
||||||
# Space-separated list of ciphersuites supported by this build of
|
# Space-separated list of ciphersuites supported by this build of
|
||||||
# Mbed TLS.
|
# Mbed TLS.
|
||||||
P_CIPHERSUITES=" $($P_CLI help_ciphersuites 2>/dev/null |
|
P_CIPHERSUITES=""
|
||||||
grep TLS- |
|
if [ "$LIST_TESTS" -eq 0 ]; then
|
||||||
tr -s ' \n' ' ')"
|
P_CIPHERSUITES=" $($P_CLI help_ciphersuites 2>/dev/null |
|
||||||
|
grep 'TLS-' |
|
||||||
|
tr -s ' \n' ' ')"
|
||||||
|
|
||||||
|
if [ -z "${P_CIPHERSUITES# }" ]; then
|
||||||
|
echo >&2 "$0: fatal error: no cipher suites found!"
|
||||||
|
exit 125
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
requires_ciphersuite_enabled() {
|
requires_ciphersuite_enabled() {
|
||||||
case $P_CIPHERSUITES in
|
case $P_CIPHERSUITES in
|
||||||
*" $1 "*) :;;
|
*" $1 "*) :;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user