diff options
Diffstat (limited to 'g10/main.h')
-rw-r--r-- | g10/main.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/main.h b/g10/main.h index 781a49f38..540d9b1d9 100644 --- a/g10/main.h +++ b/g10/main.h @@ -33,8 +33,13 @@ #define DEFAULT_CIPHER_ALGO CIPHER_ALGO_CAST5 #define DEFAULT_DIGEST_ALGO DIGEST_ALGO_SHA1 -#define DEFAULT_COMPRESS_ALGO COMPRESS_ALGO_ZIP #define DEFAULT_S2K_DIGEST_ALGO DIGEST_ALGO_SHA1 +#ifdef HAVE_ZIP +# define DEFAULT_COMPRESS_ALGO COMPRESS_ALGO_ZIP +#else +# define DEFAULT_COMPRESS_ALGO COMPRESS_ALGO_NONE +#endif + #define S2K_DIGEST_ALGO (opt.s2k_digest_algo?opt.s2k_digest_algo:DEFAULT_S2K_DIGEST_ALGO) |