#include <string.h>
+#ifdef WITH_OPENSSL_MD5
+#include <openssl/md5.h>
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef WITH_OPENSSL_MD5
/* The below was retrieved from
* http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/crypto/md5.h?rev=1.1
#else /* WITH_OPENSSL_HASH */
-#include <openssl/md5.h>
-
#define FR_MD5_CTX MD5_CTX
#define fr_MD5Init MD5_Init
#define fr_MD5Update MD5_Update
#define fr_MD5Transform MD5_Transform
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FR_MD5_H */