summaryrefslogtreecommitdiff
path: root/libtac/lib/md5.h
diff options
context:
space:
mode:
authorJeroen <jeroen@nijhofnet.nl>2011-08-19 22:05:10 +0200
committerJeroen <jeroen@nijhofnet.nl>2011-08-19 22:05:10 +0200
commitd1134977b9317c6161ae12608684ea857915a63c (patch)
tree90ed16ae4c1c0781e95f4f3ffe022c7fb6693342 /libtac/lib/md5.h
parenteb6cf3c69186698f0d5fcc5a89dd81a823794937 (diff)
downloadpam_tacplus-d1134977b9317c6161ae12608684ea857915a63c.tar.gz
pam_tacplus-d1134977b9317c6161ae12608684ea857915a63c.zip
Major contribution by Darren Besler
Diffstat (limited to 'libtac/lib/md5.h')
-rw-r--r--libtac/lib/md5.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/libtac/lib/md5.h b/libtac/lib/md5.h
index fc314ed..a1cbfbd 100644
--- a/libtac/lib/md5.h
+++ b/libtac/lib/md5.h
@@ -25,15 +25,17 @@ typedef unsigned int UINT4;
/* Data structure for MD5 (Message-Digest) computation */
typedef struct {
- UINT4 i[2]; /* number of _bits_ handled mod 2^64 */
- UINT4 buf[4]; /* scratch buffer */
- unsigned char in[64]; /* input buffer */
- unsigned char digest[16]; /* actual digest after MD5Final call */
+ UINT4 i[2]; /* number of _bits_ handled mod 2^64 */
+ UINT4 buf[4]; /* scratch buffer */
+ unsigned char in[64]; /* input buffer */
+ unsigned char digest[16]; /* actual digest after MD5Final call */
} MD5_CTX;
-void MD5Init ();
-void MD5Update ();
-void MD5Final ();
+__BEGIN_DECLS
+void MD5Init __P((MD5_CTX*));
+void MD5Update __P((MD5_CTX*, unsigned char*, UINT4));
+void MD5Final __P((unsigned char[], MD5_CTX*));
+__END_DECLS
#define MD5_LEN 16