diff options
Diffstat (limited to 'src/regress/lib/libssl/ssl/ssltest.c')
| -rw-r--r-- | src/regress/lib/libssl/ssl/ssltest.c | 25 |
1 files changed, 3 insertions, 22 deletions
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; |
