diff options
Diffstat (limited to 'src/lib/libssl/src/ssl/ssltest.c')
-rw-r--r-- | src/lib/libssl/src/ssl/ssltest.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/libssl/src/ssl/ssltest.c b/src/lib/libssl/src/ssl/ssltest.c index 28095148e7..84c25d2c30 100644 --- a/src/lib/libssl/src/ssl/ssltest.c +++ b/src/lib/libssl/src/ssl/ssltest.c | |||
@@ -119,6 +119,7 @@ | |||
119 | #include <stdlib.h> | 119 | #include <stdlib.h> |
120 | #include <string.h> | 120 | #include <string.h> |
121 | #include <time.h> | 121 | #include <time.h> |
122 | #include <inttypes.h> | ||
122 | 123 | ||
123 | #define USE_SOCKETS | 124 | #define USE_SOCKETS |
124 | #include "e_os.h" | 125 | #include "e_os.h" |
@@ -564,14 +565,7 @@ bad: | |||
564 | if (cm != NULL) | 565 | if (cm != NULL) |
565 | { | 566 | { |
566 | if (cm->type != NID_undef) | 567 | if (cm->type != NID_undef) |
567 | { | 568 | SSL_COMP_add_compression_method(comp, cm); |
568 | if (SSL_COMP_add_compression_method(comp, cm) != 0) | ||
569 | { | ||
570 | fprintf(stderr, | ||
571 | "Failed to add compression method\n"); | ||
572 | ERR_print_errors_fp(stderr); | ||
573 | } | ||
574 | } | ||
575 | else | 569 | else |
576 | { | 570 | { |
577 | fprintf(stderr, | 571 | fprintf(stderr, |
@@ -1507,8 +1501,8 @@ static int MS_CALLBACK app_verify_callback(X509_STORE_CTX *ctx, void *arg) | |||
1507 | 1501 | ||
1508 | fprintf(stderr, "In app_verify_callback, allowing cert. "); | 1502 | fprintf(stderr, "In app_verify_callback, allowing cert. "); |
1509 | fprintf(stderr, "Arg is: %s\n", (char *)arg); | 1503 | fprintf(stderr, "Arg is: %s\n", (char *)arg); |
1510 | fprintf(stderr, "Finished printing do we have a context? 0x%x a cert? 0x%x\n", | 1504 | fprintf(stderr, "Finished printing do we have a context? 0x%lx a cert? 0x%lx\n", |
1511 | (unsigned int)ctx, (unsigned int)ctx->cert); | 1505 | (uintptr_t)ctx, (uintptr_t)ctx->cert); |
1512 | if (ctx->cert) | 1506 | if (ctx->cert) |
1513 | s=X509_NAME_oneline(X509_get_subject_name(ctx->cert),buf,256); | 1507 | s=X509_NAME_oneline(X509_get_subject_name(ctx->cert),buf,256); |
1514 | if (s != NULL) | 1508 | if (s != NULL) |