diff options
author | David Shaw <[email protected]> | 2002-11-15 04:07:24 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-11-15 04:07:24 +0000 |
commit | cf163db5056470167403ea979e978af51219113e (patch) | |
tree | fb0076dc4ffa01d461548d48c266aaadc0fd42e8 /g10/misc.c | |
parent | * gpgkeys_ldap.c (get_key): The deduping code requires "pgpcertid", but (diff) | |
download | gnupg-cf163db5056470167403ea979e978af51219113e.tar.gz gnupg-cf163db5056470167403ea979e978af51219113e.zip |
* g10.c (main): Allow compression algorithm names as the argument to
--compress-algo. The old algorithm names still work for backwards
compatibility.
* misc.c (string_to_compress_algo): Allow "none" as an alias for
"uncompressed".
Diffstat (limited to 'g10/misc.c')
-rw-r--r-- | g10/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/misc.c b/g10/misc.c index fee040f86..6781f779c 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -543,6 +543,8 @@ string_to_compress_algo(const char *string) { if(ascii_strcasecmp(string,"uncompressed")==0) return 0; + else if(ascii_strcasecmp(string,"none")==0) + return 0; else if(ascii_strcasecmp(string,"zip")==0) return 1; else if(ascii_strcasecmp(string,"zlib")==0) |