diff options
author | MadCamel <madcamel@gmail.com> | 2010-10-08 06:00:13 -0400 |
---|---|---|
committer | MadCamel <madcamel@gmail.com> | 2010-10-08 06:00:13 -0400 |
commit | 0a719c5441ddc14fad483e679edea900cd1e3789 (patch) | |
tree | 4783b026f4f87b7f0e042c48a43b28db203a9992 /src/common/md5calc.h | |
parent | 5cfb10a69c03979d1d3f246ba1babf3ba92df178 (diff) | |
download | tmwa-0a719c5441ddc14fad483e679edea900cd1e3789.tar.gz tmwa-0a719c5441ddc14fad483e679edea900cd1e3789.tar.bz2 tmwa-0a719c5441ddc14fad483e679edea900cd1e3789.tar.xz tmwa-0a719c5441ddc14fad483e679edea900cd1e3789.zip |
Added MD5_ip() function to hash IP addresses
Diffstat (limited to 'src/common/md5calc.h')
-rw-r--r-- | src/common/md5calc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/md5calc.h b/src/common/md5calc.h index 3571466..5994376 100644 --- a/src/common/md5calc.h +++ b/src/common/md5calc.h @@ -1,11 +1,13 @@ // $Id: md5calc.h,v 1.1.1.1 2004/09/10 17:26:54 MagicalTux Exp $ #ifndef _MD5CALC_H_ #define _MD5CALC_H_ +#include <netinet/in.h> void MD5_String (const char *string, char *output); void MD5_String2binary (const char *string, char *output); char *MD5_saltcrypt(const char *key, const char *salt); char *make_salt(); int pass_ok(const char *password, const char *crypted); +in_addr_t MD5_ip(char *secret, in_addr_t ip); #endif |