/* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "istream-zlib.h"
#include "ostream-zlib.h"
#include "iostream-lz4.h"
#include "compression.h"
#ifndef HAVE_ZLIB
#endif
#ifndef HAVE_BZLIB
#endif
#ifndef HAVE_LZMA
#endif
#ifndef HAVE_LZ4
#endif
{
const unsigned char *data;
/* Peek in to the stream and see if it looks like it's compressed
(based on its header). This also means that users can try to exploit
security holes in the uncompression library by APPENDing a specially
crafted mail. So let's hope zlib is free of holes. */
return FALSE;
}
{
const unsigned char *data;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
}
{
const unsigned char *data;
return FALSE;
}
{
const unsigned char *data;
return FALSE;
/* there is no standard LZ4 header, so we've created our own */
}
{
unsigned int i;
return &compression_handlers[i];
}
return NULL;
}
const struct compression_handler *
{
unsigned int i;
return &compression_handlers[i];
}
return NULL;
}
const struct compression_handler *
{
unsigned int i;
continue;
return &compression_handlers[i];
}
return NULL;
}
};