Skip to content

Commit

Permalink
compat.sh: Restore testing against OpenSSL for pre 1.2 TLS versions
Browse files Browse the repository at this point in the history
Restore compatibiltiy testing against OpenSSL for
(D)TLS versions smaller that 1.2.

. Fix the check for support in OpenSSL for these versions
. For test cases for (D)TLS version smaller than 1.2,
  restore the configuration of OpenSSL client/server
  with the given TLS version, as it was before #5660
  that broke it.

Signed-off-by: Ronald Cron <[email protected]>
  • Loading branch information
ronald-cron-arm authored and gilles-peskine-arm committed Nov 24, 2022
1 parent 4eea196 commit a7ba2b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/compat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -867,19 +867,23 @@ setup_arguments()
G_MODE=""
case "$MODE" in
"ssl3")
O_MODE="ssl3"
G_PRIO_MODE="+VERS-SSL3.0"
;;
"tls1")
O_MODE="tls1"
G_PRIO_MODE="+VERS-TLS1.0"
;;
"tls1_1")
O_MODE="tls1_1"
G_PRIO_MODE="+VERS-TLS1.1"
;;
"tls12")
O_MODE="tls1_2"
G_PRIO_MODE="+VERS-TLS1.2"
;;
"dtls1")
O_MODE="dtls1"
G_PRIO_MODE="+VERS-DTLS1.0"
G_MODE="-u"
;;
Expand Down

0 comments on commit a7ba2b5

Please sign in to comment.