#include <string.h>
+#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
* With the following changes: uint64_t => uint32_t[2]
/* __attribute__((__bounded__(__minbytes__,2,MD5_BLOCK_LENGTH)))*/;
/* __END_DECLS */
+#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_MD5Final MD5_Final
+#define fr_MD5Transform MD5_Transform
+#endif
+
#endif /* _FR_MD5_H */
fr_MD5Final(output, &context);
}
+
+#ifndef WITH_OPENSSL_MD5
/* The below was retrieved from
* http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/crypto/md5.c?rev=1.1
* with the following changes:
state[2] += c;
state[3] += d;
}
+#endif