The compression method may be undefined for some reason that has
authorRichard Levitte <levitte@openssl.org>
Thu, 30 Nov 2000 12:53:15 +0000 (12:53 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 30 Nov 2000 12:53:15 +0000 (12:53 +0000)
generated errors.  Therefore, print whatever error there may be...

ssl/ssltest.c

index 39bfd67ae4ac1cd56e130aa8842f58564b3d4f90..b44a5ec48f847ca34396537574d867c6b8189c21 100644 (file)
@@ -398,11 +398,14 @@ bad:
                if (cm->type != NID_undef)
                        SSL_COMP_add_compression_method(comp, cm);
                else
+                       {
                        fprintf(stderr,
                                "Warning: %s compression not supported\n",
                                (comp == COMP_RLE ? "rle" :
                                        (comp == COMP_ZLIB ? "zlib" :
                                                "unknown")));
+                       ERR_print_errors_fp(stderr);
+                       }
                }
 
 #if !defined(NO_SSL2) && !defined(NO_SSL3)