zlib: Move conditional compilation inside of the gzip.c

This implements stub for the compression functions and includes the
gzip.c in the compilation target uncoditionally, keeping the WITH_ZLIB
conditional compilation only in the gzip.c

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 0cd749a533)
This commit is contained in:
Jakub Jelen
2025-01-14 14:43:22 +01:00
parent 2e5b6beec7
commit 39aefd479f
4 changed files with 28 additions and 14 deletions

View File

@@ -194,9 +194,7 @@ void crypto_free(struct ssh_crypto_struct *crypto)
explicit_bzero(crypto->secret_hash, crypto->digest_len);
SAFE_FREE(crypto->secret_hash);
}
#ifdef WITH_ZLIB
compress_cleanup(crypto);
#endif /* WITH_ZLIB */
SAFE_FREE(crypto->encryptIV);
SAFE_FREE(crypto->decryptIV);
SAFE_FREE(crypto->encryptMAC);