Commit 8ded5f1b authored by Bernd Edlinger's avatar Bernd Edlinger Committed by Matt Caswell
Browse files

Ignore -rle and -comp when compiled with OPENSSL_NO_COMP.


Fixes make test when configured with no-comp.

Reviewed-by: default avatarKurt Roeckx <kurt@openssl.org>
Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3545)
parent d130456f
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -1239,13 +1239,21 @@ int main(int argc, char *argv[])
        } else if (strcmp(*argv, "-time") == 0) {
            print_time = 1;
        }
#ifndef OPENSSL_NO_COMP
        else if (strcmp(*argv, "-zlib") == 0) {
#ifndef OPENSSL_NO_COMP
            comp = COMP_ZLIB;
#else
            fprintf(stderr,
                    "ignoring -zlib, since I'm compiled without COMP\n");
#endif
        } else if (strcmp(*argv, "-rle") == 0) {
#ifndef OPENSSL_NO_COMP
            comp = COMP_RLE;
        }
#else
            fprintf(stderr,
                    "ignoring -rle, since I'm compiled without COMP\n");
#endif
        }
        else if (strcmp(*argv, "-named_curve") == 0) {
            if (--argc < 1)
                goto bad;