diff options
author | Seraphim Mellos <mellos@ceid.upatras.gr> | 2008-08-05 13:50:18 +0300 |
---|---|---|
committer | Seraphim Mellos <mellos@ceid.upatras.gr> | 2008-08-05 13:50:18 +0300 |
commit | af2dc9d14446c2ebcefda2a1e4deeb7a1f34fe69 (patch) | |
tree | 830b5e3aafa7a25d5435deec809b31c5748f1f37 /modules/pam_unix/md5.h | |
parent | Minor fixes here and there (diff) | |
download | openpam-modules-af2dc9d14446c2ebcefda2a1e4deeb7a1f34fe69.tar.gz openpam-modules-af2dc9d14446c2ebcefda2a1e4deeb7a1f34fe69.tar.bz2 openpam-modules-af2dc9d14446c2ebcefda2a1e4deeb7a1f34fe69.zip |
Added MD5 support
Diffstat (limited to 'modules/pam_unix/md5.h')
-rw-r--r-- | modules/pam_unix/md5.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/pam_unix/md5.h b/modules/pam_unix/md5.h index df431b6..51dcb7b 100644 --- a/modules/pam_unix/md5.h +++ b/modules/pam_unix/md5.h @@ -13,8 +13,9 @@ #ifndef _MD5_H_ #define _MD5_H_ +#define SALTSIZE 32 #define MD5_BLOCK_LENGTH 64 -#define MD5_DIGEST_LENGTH 16 +#define MD5_DIGEST_LENGTH 16 #define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_LENGTH * 2 + 1) typedef struct MD5Context { @@ -33,5 +34,7 @@ char *MD5End(MD5_CTX *, char *); char *MD5File(const char *, char *); char *MD5FileChunk(const char *, char *, off_t, off_t); char *MD5Data(const u_int8_t *, size_t, char *); -char *MD5String(const char *); +char *MD5Hash(const char *, const char * salt); +void makesalt(char *); + #endif /* _MD5_H_ */ |