summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-30 00:14:50 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-30 00:14:50 (EDT)
commit4485007008f039648c4259a26484eabcd5b7cc9b (patch)
treef94a42e816f4a695307faff22e7a3cb4e6d2c728
parent276f6b6d9368ac9ae7fb72e82eaa36451c450b3d (diff)
s_client: Disable SSLv3, TLSv1.0, and TLSv1.1
And update tests/badssl.sh results.
-rw-r--r--src/s_client.c2
-rwxr-xr-xtests/badssl.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/s_client.c b/src/s_client.c
index 20ef929..683f08b 100644
--- a/src/s_client.c
+++ b/src/s_client.c
@@ -302,7 +302,7 @@ s_client(int argc, char **argv)
wolfSSL_Init();
- method = wolfSSLv23_client_method();
+ method = wolfTLSv1_2_client_method();
if (method == NULL) {
fputs("Out of memory\n", stderr);
ret = EXIT_FAILURE;
diff --git a/tests/badssl.sh b/tests/badssl.sh
index 706dc97..40d33c2 100755
--- a/tests/badssl.sh
+++ b/tests/badssl.sh
@@ -101,6 +101,6 @@ do_test 'not' 'invalid-expected-sct' 443
# Protocol
-do_test ' ' 'tls-v1-0' 1010
-do_test ' ' 'tls-v1-1' 1011
+do_test 'not' 'tls-v1-0' 1010
+do_test 'not' 'tls-v1-1' 1011
do_test ' ' 'tls-v1-2' 1012