add gzip support for login and password files

* module hydra-teamspeak.c modified, because of
  conflict of crc32 with zlib crc32
This commit is contained in:
Renato Alencar 2015-07-01 11:00:17 -03:00
parent adec22c69f
commit 1aeda5001c
6 changed files with 71 additions and 6 deletions

View file

@ -89,6 +89,8 @@ unsigned int crc32_tab[] = {
0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d
};
#ifndef HAVE_ZLIB
unsigned int crc32(const void *buf, unsigned int size) {
const unsigned char *p;
unsigned int crc;
@ -101,3 +103,5 @@ unsigned int crc32(const void *buf, unsigned int size) {
return crc ^ ~0U;
}
#endif