diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-22 15:06:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-22 15:06:32 +0100 |
commit | 77d0030eff22ebed1ab4b3a124142b8fff38fb4a (patch) | |
tree | 2362b7031aa32f72ccdd1b40a71534216741f0c8 /src/libmime | |
parent | 83dfe58bd168a7446d65a0c2a39a8b5a29f34ad9 (diff) | |
download | rspamd-77d0030eff22ebed1ab4b3a124142b8fff38fb4a.tar.gz rspamd-77d0030eff22ebed1ab4b3a124142b8fff38fb4a.zip |
[Minor] Archives: Distinguish compressed headers and encrypted archives
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/archives.c | 3 | ||||
-rw-r--r-- | src/libmime/archives.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libmime/archives.c b/src/libmime/archives.c index 9c0336ac8..c19991eb6 100644 --- a/src/libmime/archives.c +++ b/src/libmime/archives.c @@ -1590,7 +1590,8 @@ rspamd_7zip_read_next_section (struct rspamd_task *task, * In fact, headers are just packed, but we assume it as * encrypted to distinguish from the normal archives */ - arch->flags |= RSPAMD_ARCHIVE_ENCRYPTED; + msg_debug_archive ("7zip: encoded header, needs to be uncompressed"); + arch->flags |= RSPAMD_ARCHIVE_CANNOT_READ; p = NULL; /* Cannot get anything useful */ break; case kArchiveProperties: diff --git a/src/libmime/archives.h b/src/libmime/archives.h index e4e7b8b03..6abfb857a 100644 --- a/src/libmime/archives.h +++ b/src/libmime/archives.h @@ -27,6 +27,7 @@ enum rspamd_archive_type { enum rspamd_archive_flags { RSPAMD_ARCHIVE_ENCRYPTED = (1u << 0u), + RSPAMD_ARCHIVE_CANNOT_READ = (1u << 1u), }; enum rspamd_archive_file_flags { |