summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-08-28 08:08:19 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-08-28 08:08:19 +0200
commit17527d46be3038c37ae65380dd388377994f07da (patch)
tree748e2eea0e7cf0491ff6b56e6cd1326d0af2bb0d /src/file_gz.c
parenteaaf96c14ebc6c231bdaa42476e963735ea23763 (diff)
Log zlib version
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index a3d1400..74e8369 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -33,6 +33,7 @@
#endif
#include "filegen.h"
#include "common.h"
+#include "file_gz.h"
static void register_header_check_gz(file_stat_t *file_stat);
static int header_check_gz(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new);
@@ -272,3 +273,12 @@ static void file_rename_gz(file_recovery_t *file_recovery)
}
}
}
+
+const char*td_zlib_version(void)
+{
+#if defined(HAVE_ZLIB_H) && defined(HAVE_LIBZ)
+ return ZLIB_VERSION;
+#else
+ return "none";
+#endif
+}