X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=test%2Fssltest.c;h=e531b32f659e8b96e00ad6f96ff85f9d5762c3e8;hb=9a555706a3fb8f6622e1049ab510a12f4e1bc6a2;hp=39f1d80509559c0b284626704b34cf0ec984a3aa;hpb=86885c289580066792415218754bd935b449f170;p=openssl.git diff --git a/test/ssltest.c b/test/ssltest.c index 39f1d80509..e531b32f65 100644 --- a/test/ssltest.c +++ b/test/ssltest.c @@ -995,7 +995,7 @@ int main(int argc, char *argv[]) int print_time = 0; clock_t s_time = 0, c_time = 0; #ifndef OPENSSL_NO_COMP - int comp = 0; + int n, comp = 0; COMP_METHOD *cm = NULL; STACK_OF(SSL_COMP) *ssl_comp_methods = NULL; #endif @@ -1004,7 +1004,6 @@ int main(int argc, char *argv[]) int fips_mode = 0; #endif int no_protocol = 0; - int n; SSL_CONF_CTX *s_cctx = NULL, *c_cctx = NULL; STACK_OF(OPENSSL_STRING) *conf_args = NULL; @@ -1373,7 +1372,7 @@ int main(int argc, char *argv[]) if (comp == COMP_ZLIB) cm = COMP_zlib(); if (cm != NULL) { - if (cm->type != NID_undef) { + if (COMP_get_type(cm) != NID_undef) { if (SSL_COMP_add_compression_method(comp, cm) != 0) { fprintf(stderr, "Failed to add compression method\n"); ERR_print_errors_fp(stderr);