diff options
author | jsing <> | 2014-07-10 11:58:51 +0000 |
---|---|---|
committer | jsing <> | 2014-07-10 11:58:51 +0000 |
commit | c7471782b2ce3b5d1e6708ca01b2076f1af72bc9 (patch) | |
tree | 1374bcef24cacc4245d40d801168909f569d2cd4 /src | |
parent | 6ac73bd27d209a47dce4b245145f55151f5bfa6e (diff) | |
download | openbsd-c7471782b2ce3b5d1e6708ca01b2076f1af72bc9.tar.gz openbsd-c7471782b2ce3b5d1e6708ca01b2076f1af72bc9.tar.bz2 openbsd-c7471782b2ce3b5d1e6708ca01b2076f1af72bc9.zip |
Uncompress ssltest.
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libssl/ssl/ssltest.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/regress/lib/libssl/ssl/ssltest.c b/src/regress/lib/libssl/ssl/ssltest.c index 40a3b77e07..adb9e0647b 100644 --- a/src/regress/lib/libssl/ssl/ssltest.c +++ b/src/regress/lib/libssl/ssl/ssltest.c | |||
@@ -190,11 +190,6 @@ | |||
190 | # define TEST_SERVER_CERT "../apps/server.pem" | 190 | # define TEST_SERVER_CERT "../apps/server.pem" |
191 | # define TEST_CLIENT_CERT "../apps/client.pem" | 191 | # define TEST_CLIENT_CERT "../apps/client.pem" |
192 | 192 | ||
193 | /* There is really no standard for this, so let's assign some tentative | ||
194 | numbers. In any case, these numbers are only for this test */ | ||
195 | #define COMP_RLE 255 | ||
196 | #define COMP_ZLIB 1 | ||
197 | |||
198 | static int verify_callback(int ok, X509_STORE_CTX *ctx); | 193 | static int verify_callback(int ok, X509_STORE_CTX *ctx); |
199 | static RSA *tmp_rsa_cb(SSL *s, int is_export, int keylength); | 194 | static RSA *tmp_rsa_cb(SSL *s, int is_export, int keylength); |
200 | static void free_tmp_rsa(void); | 195 | static void free_tmp_rsa(void); |
@@ -281,8 +276,6 @@ sv_usage(void) | |||
281 | fprintf(stderr, " -bio_pair - Use BIO pairs\n"); | 276 | fprintf(stderr, " -bio_pair - Use BIO pairs\n"); |
282 | fprintf(stderr, " -f - Test even cases that can't work\n"); | 277 | fprintf(stderr, " -f - Test even cases that can't work\n"); |
283 | fprintf(stderr, " -time - measure processor time used by client and server\n"); | 278 | fprintf(stderr, " -time - measure processor time used by client and server\n"); |
284 | fprintf(stderr, " -zlib - use zlib compression\n"); | ||
285 | fprintf(stderr, " -rle - use rle compression\n"); | ||
286 | #ifndef OPENSSL_NO_ECDH | 279 | #ifndef OPENSSL_NO_ECDH |
287 | fprintf(stderr, " -named_curve arg - Elliptic curve name to use for ephemeral ECDH keys.\n" \ | 280 | fprintf(stderr, " -named_curve arg - Elliptic curve name to use for ephemeral ECDH keys.\n" \ |
288 | " Use \"openssl ecparam -list_curves\" for all names\n" \ | 281 | " Use \"openssl ecparam -list_curves\" for all names\n" \ |
@@ -418,11 +411,6 @@ main(int argc, char *argv[]) | |||
418 | int no_psk = 0; | 411 | int no_psk = 0; |
419 | int print_time = 0; | 412 | int print_time = 0; |
420 | clock_t s_time = 0, c_time = 0; | 413 | clock_t s_time = 0, c_time = 0; |
421 | int comp = 0; | ||
422 | #ifndef OPENSSL_NO_COMP | ||
423 | COMP_METHOD *cm = NULL; | ||
424 | STACK_OF(SSL_COMP) *ssl_comp_methods = NULL; | ||
425 | #endif | ||
426 | int test_cipherlist = 0; | 414 | int test_cipherlist = 0; |
427 | 415 | ||
428 | verbose = 0; | 416 | verbose = 0; |
@@ -556,10 +544,6 @@ main(int argc, char *argv[]) | |||
556 | force = 1; | 544 | force = 1; |
557 | } else if (strcmp(*argv, "-time") == 0) { | 545 | } else if (strcmp(*argv, "-time") == 0) { |
558 | print_time = 1; | 546 | print_time = 1; |
559 | } else if (strcmp(*argv, "-zlib") == 0) { | ||
560 | comp = COMP_ZLIB; | ||
561 | } else if (strcmp(*argv, "-rle") == 0) { | ||
562 | comp = COMP_RLE; | ||
563 | } else if (strcmp(*argv, "-named_curve") == 0) { | 547 | } else if (strcmp(*argv, "-named_curve") == 0) { |
564 | if (--argc < 1) | 548 | if (--argc < 1) |
565 | goto bad; | 549 | goto bad; |
@@ -621,40 +605,6 @@ bad: | |||
621 | SSL_library_init(); | 605 | SSL_library_init(); |
622 | SSL_load_error_strings(); | 606 | SSL_load_error_strings(); |
623 | 607 | ||
624 | #ifndef OPENSSL_NO_COMP | ||
625 | if (comp == COMP_ZLIB) | ||
626 | cm = COMP_zlib(); | ||
627 | if (comp == COMP_RLE) | ||
628 | cm = COMP_rle(); | ||
629 | if (cm != NULL) { | ||
630 | if (cm->type != NID_undef) { | ||
631 | if (SSL_COMP_add_compression_method(comp, cm) != 0) { | ||
632 | fprintf(stderr, | ||
633 | "Failed to add compression method\n"); | ||
634 | ERR_print_errors_fp(stderr); | ||
635 | } | ||
636 | } else { | ||
637 | fprintf(stderr, | ||
638 | "Warning: %s compression not supported\n", | ||
639 | (comp == COMP_RLE ? "rle" : | ||
640 | (comp == COMP_ZLIB ? "zlib" : | ||
641 | "unknown"))); | ||
642 | ERR_print_errors_fp(stderr); | ||
643 | } | ||
644 | } | ||
645 | ssl_comp_methods = SSL_COMP_get_compression_methods(); | ||
646 | fprintf(stderr, "Available compression methods:\n"); | ||
647 | { | ||
648 | int j, n = sk_SSL_COMP_num(ssl_comp_methods); | ||
649 | if (n == 0) | ||
650 | fprintf(stderr, " NONE\n"); | ||
651 | else | ||
652 | for (j = 0; j < n; j++) { | ||
653 | SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j); | ||
654 | fprintf(stderr, " %d: %s\n", c->id, c->name); | ||
655 | } | ||
656 | } | ||
657 | #endif | ||
658 | 608 | ||
659 | if (dtls1) | 609 | if (dtls1) |
660 | meth = DTLSv1_method(); | 610 | meth = DTLSv1_method(); |