]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/md5.h
pppd: Fix compilation on Linux when IPV6 is disabled (#360)
[ppp.git] / pppd / md5.h
index 71e8b00e2dde9e481384b43866c9b0e091ac3408..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
@@ -61,5 +67,5 @@ 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 */