]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/md5.h
Use autoconf/automake to configure and make ppp
[ppp.git] / pppd / md5.h
index 71e8b00e2dde9e481384b43866c9b0e091ac3408..662eb4126085c6f48ada54d41cea54ba7b2fd3e9 100644 (file)
  ** documentation and/or software.                                    **
  ***********************************************************************
  */
+#include "pppdconf.h"
 
 #ifndef __MD5_INCLUDE__
+#define __MD5_INCLUDE__
+#ifndef USE_MD5
+#include <openssl/md5.h>
+#else
 
 /* typedef a 32-bit type */
 #ifdef _LP64
@@ -61,5 +66,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 /* USE_MD5 */
 #endif /* __MD5_INCLUDE__ */