mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
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:
parent
adec22c69f
commit
1aeda5001c
6 changed files with 71 additions and 6 deletions
4
crc32.c
4
crc32.c
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue