]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/md5.h
The use of <net/ppp_defs.h> isn't guranteed to exist on Linux (e.g. uclibc, buildroot...
[ppp.git] / pppd / md5.h
index f7a0c9641834ed878a732ac83f2a8dca77ae824a..31f410dcf19c3911f38b7b3cd8266a7a867747bd 100644 (file)
  ** documentation and/or software.                                    **
  ***********************************************************************
  */
+#ifndef PPP_MD5_H
+#define PPP_MD5_H
 
-#ifndef __MD5_INCLUDE__
+#include "pppdconf.h"
+
+#ifndef USE_MD5
+#include <openssl/md5.h>
+#else
 
 /* typedef a 32-bit type */
 #ifdef _LP64
@@ -57,9 +63,9 @@ typedef struct {
   unsigned char digest[16];     /* actual digest after MD5Final call */
 } MD5_CTX;
 
-void MD5_Init ();
-void MD5_Update ();
-void MD5_Final ();
+void MD5_Init (MD5_CTX *mdContext);
+void MD5_Update (MD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen);
+void MD5_Final (unsigned char hash[], MD5_CTX *mdContext);
 
-#define __MD5_INCLUDE__
-#endif /* __MD5_INCLUDE__ */
+#endif /* USE_MD5 */
+#endif /* PPP_MD5_H */