aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-11-15 04:07:24 +0000
committerDavid Shaw <[email protected]>2002-11-15 04:07:24 +0000
commitcf163db5056470167403ea979e978af51219113e (patch)
treefb0076dc4ffa01d461548d48c266aaadc0fd42e8 /g10/misc.c
parent* gpgkeys_ldap.c (get_key): The deduping code requires "pgpcertid", but (diff)
downloadgnupg-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.c2
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)