commit | bfd650ab93107849fcc95e72683361cbfc0d3201 | [log] [tgz] |
---|---|---|
author | Dieter Baron <dillo@nih.at> | Sun Jan 29 11:01:30 2017 +0100 |
committer | Dieter Baron <dillo@nih.at> | Sun Jan 29 11:01:30 2017 +0100 |
tree | 46e10ca32d95a610b8564ccc9f97976febcd379d | |
parent | a6637359c3f73f3c80f5c74a0ff5751f85f5732d [diff] [blame] |
Allow encryption method none.
diff --git a/lib/zip_file_set_encryption.c b/lib/zip_file_set_encryption.c index b9312b4..e604e6f 100644 --- a/lib/zip_file_set_encryption.c +++ b/lib/zip_file_set_encryption.c
@@ -53,7 +53,7 @@ return -1; } - if (_zip_get_encryption_implementation(method, ZIP_CODEC_ENCODE) == NULL) { + if (method != ZIP_EM_NONE && _zip_get_encryption_implementation(method, ZIP_CODEC_ENCODE) == NULL) { zip_error_set(&za->error, ZIP_ER_ENCRNOTSUPP, 0); return -1; }