aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_unix/md5.h')
-rw-r--r--modules/pam_unix/md5.h7
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_ */