diff options
author | doug <> | 2015-08-27 07:19:17 +0000 |
---|---|---|
committer | doug <> | 2015-08-27 07:19:17 +0000 |
commit | 4a3b5b4804ec167677814c2ef47c1915c15e309a (patch) | |
tree | c2c3474cd6d2bdd429da44f56d3ae696f9161ea9 | |
parent | c29954b1618ca744767a1c58357ca89ce5e283f0 (diff) | |
download | openbsd-4a3b5b4804ec167677814c2ef47c1915c15e309a.tar.gz openbsd-4a3b5b4804ec167677814c2ef47c1915c15e309a.tar.bz2 openbsd-4a3b5b4804ec167677814c2ef47c1915c15e309a.zip |
Remove SSLv3 support from LibreSSL regression tests.
-rw-r--r-- | src/regress/lib/libssl/ciphers/cipherstest.c | 4 | ||||
-rw-r--r-- | src/regress/lib/libssl/ssl/ssltest.c | 25 | ||||
-rw-r--r-- | src/regress/lib/libssl/ssl/testssl | 32 |
3 files changed, 5 insertions, 56 deletions
diff --git a/src/regress/lib/libssl/ciphers/cipherstest.c b/src/regress/lib/libssl/ciphers/cipherstest.c index b20ec8bd52..d76fbfc8c0 100644 --- a/src/regress/lib/libssl/ciphers/cipherstest.c +++ b/src/regress/lib/libssl/ciphers/cipherstest.c | |||
@@ -87,10 +87,6 @@ cipher_get_put_tests(void) | |||
87 | failed |= get_put_test("SSLv23_client", SSLv23_client_method()); | 87 | failed |= get_put_test("SSLv23_client", SSLv23_client_method()); |
88 | failed |= get_put_test("SSLv23_server", SSLv23_server_method()); | 88 | failed |= get_put_test("SSLv23_server", SSLv23_server_method()); |
89 | 89 | ||
90 | failed |= get_put_test("SSLv3", SSLv3_method()); | ||
91 | failed |= get_put_test("SSLv3_client", SSLv3_client_method()); | ||
92 | failed |= get_put_test("SSLv3_server", SSLv3_server_method()); | ||
93 | |||
94 | failed |= get_put_test("TLSv1", TLSv1_method()); | 90 | failed |= get_put_test("TLSv1", TLSv1_method()); |
95 | failed |= get_put_test("TLSv1_client", TLSv1_client_method()); | 91 | failed |= get_put_test("TLSv1_client", TLSv1_client_method()); |
96 | failed |= get_put_test("TLSv1_server", TLSv1_server_method()); | 92 | failed |= get_put_test("TLSv1_server", TLSv1_server_method()); |
diff --git a/src/regress/lib/libssl/ssl/ssltest.c b/src/regress/lib/libssl/ssl/ssltest.c index 5b03e0e0b8..712e2ca184 100644 --- a/src/regress/lib/libssl/ssl/ssltest.c +++ b/src/regress/lib/libssl/ssl/ssltest.c | |||
@@ -431,7 +431,6 @@ sv_usage(void) | |||
431 | fprintf(stderr, " -no_dhe - disable DHE\n"); | 431 | fprintf(stderr, " -no_dhe - disable DHE\n"); |
432 | fprintf(stderr, " -no_ecdhe - disable ECDHE\n"); | 432 | fprintf(stderr, " -no_ecdhe - disable ECDHE\n"); |
433 | fprintf(stderr, " -dtls1 - use DTLSv1\n"); | 433 | fprintf(stderr, " -dtls1 - use DTLSv1\n"); |
434 | fprintf(stderr, " -ssl3 - use SSLv3\n"); | ||
435 | fprintf(stderr, " -tls1 - use TLSv1\n"); | 434 | fprintf(stderr, " -tls1 - use TLSv1\n"); |
436 | fprintf(stderr, " -CApath arg - PEM format directory of CA's\n"); | 435 | fprintf(stderr, " -CApath arg - PEM format directory of CA's\n"); |
437 | fprintf(stderr, " -CAfile arg - PEM format file of CA's\n"); | 436 | fprintf(stderr, " -CAfile arg - PEM format file of CA's\n"); |
@@ -550,7 +549,7 @@ main(int argc, char *argv[]) | |||
550 | int badop = 0; | 549 | int badop = 0; |
551 | int bio_pair = 0; | 550 | int bio_pair = 0; |
552 | int force = 0; | 551 | int force = 0; |
553 | int tls1 = 0, ssl3 = 0, dtls1 = 0, ret = 1; | 552 | int tls1 = 0, dtls1 = 0, ret = 1; |
554 | int client_auth = 0; | 553 | int client_auth = 0; |
555 | int server_auth = 0, i; | 554 | int server_auth = 0, i; |
556 | struct app_verify_arg app_verify_arg = | 555 | struct app_verify_arg app_verify_arg = |
@@ -618,8 +617,6 @@ main(int argc, char *argv[]) | |||
618 | no_ecdhe = 1; | 617 | no_ecdhe = 1; |
619 | else if (strcmp(*argv, "-dtls1") == 0) | 618 | else if (strcmp(*argv, "-dtls1") == 0) |
620 | dtls1 = 1; | 619 | dtls1 = 1; |
621 | else if (strcmp(*argv, "-ssl3") == 0) | ||
622 | ssl3 = 1; | ||
623 | else if (strcmp(*argv, "-tls1") == 0) | 620 | else if (strcmp(*argv, "-tls1") == 0) |
624 | tls1 = 1; | 621 | tls1 = 1; |
625 | else if (strncmp(*argv, "-num", 4) == 0) { | 622 | else if (strncmp(*argv, "-num", 4) == 0) { |
@@ -733,12 +730,12 @@ bad: | |||
733 | goto end; | 730 | goto end; |
734 | } | 731 | } |
735 | 732 | ||
736 | if (!dtls1 && !ssl3 && !tls1 && | 733 | if (!dtls1 && !tls1 && |
737 | number > 1 && !reuse && !force) { | 734 | number > 1 && !reuse && !force) { |
738 | fprintf(stderr, | 735 | fprintf(stderr, |
739 | "This case cannot work. Use -f to perform " | 736 | "This case cannot work. Use -f to perform " |
740 | "the test anyway (and\n-d to see what happens), " | 737 | "the test anyway (and\n-d to see what happens), " |
741 | "or add one of -dtls1, -ssl3, -tls1, -reuse\n" | 738 | "or add one of -dtls1, -tls1, -reuse\n" |
742 | "to avoid protocol mismatch.\n"); | 739 | "to avoid protocol mismatch.\n"); |
743 | exit(1); | 740 | exit(1); |
744 | } | 741 | } |
@@ -761,8 +758,6 @@ bad: | |||
761 | meth = DTLSv1_method(); | 758 | meth = DTLSv1_method(); |
762 | else if (tls1) | 759 | else if (tls1) |
763 | meth = TLSv1_method(); | 760 | meth = TLSv1_method(); |
764 | else if (ssl3) | ||
765 | meth = SSLv3_method(); | ||
766 | else | 761 | else |
767 | meth = SSLv23_method(); | 762 | meth = SSLv23_method(); |
768 | 763 | ||
@@ -2169,20 +2164,6 @@ do_test_cipherlist(void) | |||
2169 | const SSL_METHOD *meth; | 2164 | const SSL_METHOD *meth; |
2170 | const SSL_CIPHER *ci, *tci = NULL; | 2165 | const SSL_CIPHER *ci, *tci = NULL; |
2171 | 2166 | ||
2172 | fprintf(stderr, "testing SSLv3 cipher list order: "); | ||
2173 | meth = SSLv3_method(); | ||
2174 | tci = NULL; | ||
2175 | while ((ci = meth->get_cipher(i++)) != NULL) { | ||
2176 | if (tci != NULL) { | ||
2177 | if (ci->id >= tci->id) { | ||
2178 | fprintf(stderr, | ||
2179 | "failed %lx vs. %lx\n", ci->id, tci->id); | ||
2180 | return 0; | ||
2181 | } | ||
2182 | } | ||
2183 | tci = ci; | ||
2184 | } | ||
2185 | fprintf(stderr, "ok\n"); | ||
2186 | fprintf(stderr, "testing TLSv1 cipher list order: "); | 2167 | fprintf(stderr, "testing TLSv1 cipher list order: "); |
2187 | meth = TLSv1_method(); | 2168 | meth = TLSv1_method(); |
2188 | tci = NULL; | 2169 | tci = NULL; |
diff --git a/src/regress/lib/libssl/ssl/testssl b/src/regress/lib/libssl/ssl/testssl index 04f82a9da1..756f8e73fa 100644 --- a/src/regress/lib/libssl/ssl/testssl +++ b/src/regress/lib/libssl/ssl/testssl | |||
@@ -15,18 +15,6 @@ fi | |||
15 | 15 | ||
16 | ############################################################################# | 16 | ############################################################################# |
17 | 17 | ||
18 | echo test sslv3 | ||
19 | $ssltest -ssl3 $extra || exit 1 | ||
20 | |||
21 | echo test sslv3 with server authentication | ||
22 | $ssltest -ssl3 -server_auth $CA $extra || exit 1 | ||
23 | |||
24 | echo test sslv3 with client authentication | ||
25 | $ssltest -ssl3 -client_auth $CA $extra || exit 1 | ||
26 | |||
27 | echo test sslv3 with both client and server authentication | ||
28 | $ssltest -ssl3 -server_auth -client_auth $CA $extra || exit 1 | ||
29 | |||
30 | echo test sslv2/sslv3 | 18 | echo test sslv2/sslv3 |
31 | $ssltest $extra || exit 1 | 19 | $ssltest $extra || exit 1 |
32 | 20 | ||
@@ -39,18 +27,6 @@ $ssltest -client_auth $CA $extra || exit 1 | |||
39 | echo test sslv2/sslv3 with both client and server authentication | 27 | echo test sslv2/sslv3 with both client and server authentication |
40 | $ssltest -server_auth -client_auth $CA $extra || exit 1 | 28 | $ssltest -server_auth -client_auth $CA $extra || exit 1 |
41 | 29 | ||
42 | echo test sslv3 via BIO pair | ||
43 | $ssltest -bio_pair -ssl3 $extra || exit 1 | ||
44 | |||
45 | echo test sslv3 with server authentication via BIO pair | ||
46 | $ssltest -bio_pair -ssl3 -server_auth $CA $extra || exit 1 | ||
47 | |||
48 | echo test sslv3 with client authentication via BIO pair | ||
49 | $ssltest -bio_pair -ssl3 -client_auth $CA $extra || exit 1 | ||
50 | |||
51 | echo test sslv3 with both client and server authentication via BIO pair | ||
52 | $ssltest -bio_pair -ssl3 -server_auth -client_auth $CA $extra || exit 1 | ||
53 | |||
54 | echo test sslv2/sslv3 via BIO pair | 30 | echo test sslv2/sslv3 via BIO pair |
55 | $ssltest $extra || exit 1 | 31 | $ssltest $extra || exit 1 |
56 | 32 | ||
@@ -75,15 +51,11 @@ echo test sslv2/sslv3 with both client and server authentication via BIO pair an | |||
75 | $ssltest -bio_pair -server_auth -client_auth -app_verify $CA $extra || exit 1 | 51 | $ssltest -bio_pair -server_auth -client_auth -app_verify $CA $extra || exit 1 |
76 | 52 | ||
77 | echo "Testing ciphersuites" | 53 | echo "Testing ciphersuites" |
78 | for protocol in SSLv3 TLSv1.2; do | 54 | for protocol in TLSv1.2; do |
79 | echo "Testing ciphersuites for $protocol" | 55 | echo "Testing ciphersuites for $protocol" |
80 | for cipher in `$openssl ciphers "$protocol+aRSA" | tr ':' ' '`; do | 56 | for cipher in `$openssl ciphers "$protocol+aRSA" | tr ':' ' '`; do |
81 | echo "Testing $cipher" | 57 | echo "Testing $cipher" |
82 | prot="" | 58 | $ssltest -cipher $cipher |
83 | if [ $protocol = "SSLv3" ] ; then | ||
84 | prot="-ssl3" | ||
85 | fi | ||
86 | $ssltest -cipher $cipher $prot | ||
87 | if [ $? -ne 0 ] ; then | 59 | if [ $? -ne 0 ] ; then |
88 | echo "Failed $cipher" | 60 | echo "Failed $cipher" |
89 | exit 1 | 61 | exit 1 |