diff options
author | Todd Short <tshort@akamai.com> | 2022-08-17 17:36:27 -0400 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2022-10-18 09:30:21 -0400 |
commit | 59d21298df9176b64b41cc8583c7024f7f5895d4 (patch) | |
tree | 6819e56eb1a1916dd85950bb210c27b9904e9859 /test/bio_comp_test.c | |
parent | caf9317d7d75213990014e07048384be15688889 (diff) | |
download | openssl-59d21298df9176b64b41cc8583c7024f7f5895d4.zip openssl-59d21298df9176b64b41cc8583c7024f7f5895d4.tar.gz openssl-59d21298df9176b64b41cc8583c7024f7f5895d4.tar.bz2 |
Convert ZLIB defines to OPENSSL_NO_ZLIB
Use the normal OPENSSL_NO_ prefix to enable/disable ZLIB
Make `BIO_f_zlib()` always available.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18186)
Diffstat (limited to 'test/bio_comp_test.c')
-rw-r--r-- | test/bio_comp_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bio_comp_test.c b/test/bio_comp_test.c index 5e0888d..ab56e98 100644 --- a/test/bio_comp_test.c +++ b/test/bio_comp_test.c @@ -129,7 +129,7 @@ static int test_brotli(int n) return do_bio_comp(BIO_f_brotli(), n); } #endif -#ifdef ZLIB +#ifndef OPENSSL_NO_ZLIB static int test_zlib(int n) { return do_bio_comp(BIO_f_zlib(), n); @@ -138,7 +138,7 @@ static int test_zlib(int n) int setup_tests(void) { -#ifdef ZLIB +#ifndef OPENSSL_NO_ZLIB ADD_ALL_TESTS(test_zlib, NUM_SIZES * 4); #endif #ifndef OPENSSL_NO_BROTLI |