Initial "gts1" commit.
[tac_plus.git] / md4.h
diff --git a/md4.h b/md4.h
index d821229..38d0a81 100644 (file)
--- a/md4.h
+++ b/md4.h
@@ -1,4 +1,11 @@
-/* 
+#ifndef MD4_H
+#define MD4_H 1
+
+#include "tac_plus.h"
+
+#ifdef MSCHAP
+
+/*
    Copyright (c) 1995-1998 by Cisco systems, Inc.
 
    Permission to use, copy, modify, and distribute this software for
@@ -42,8 +49,6 @@
    documentation and/or software.
  */
 
-#ifndef _MD4_H_
-#define _MD4_H_
 /* MD4 context. */
 typedef struct MD4Context {
   unsigned long int state[4];  /* state (ABCD) */
@@ -51,11 +56,12 @@ typedef struct MD4Context {
   unsigned char buffer[64];    /* input buffer */
 } MD4_CTX;
 
-void   MD4Init();
-void   MD4Update();
-void   MD4Final();
-char * MD4End();
-char * MD4File();
-char * MD4Data();
 
-#endif /* _MD4_H_ */
+extern void MD4Init TAC_ARGS((MD4_CTX *context));
+extern void MD4Update TAC_ARGS((MD4_CTX *context, const unsigned char *input, unsigned int inputLen));
+extern void MD4Final TAC_ARGS((unsigned char digest[16], MD4_CTX *context));
+
+
+#endif /* MSCHAP */
+
+#endif /* MD4_H */