summaryrefslogtreecommitdiffstats
path: root/contrib/cvs
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-11 15:10:02 +0000
committerpeter <peter@FreeBSD.org>1999-12-11 15:10:02 +0000
commitf76c207acbf1b3fc149557abc5cf255eb9757ed7 (patch)
treeacff7747e73482d9c40600e72a076e77c95b2619 /contrib/cvs
parent17ef7b81d643aaa65e7aaba16d54f2baec7e1e7c (diff)
downloadFreeBSD-src-f76c207acbf1b3fc149557abc5cf255eb9757ed7.zip
FreeBSD-src-f76c207acbf1b3fc149557abc5cf255eb9757ed7.tar.gz
Unmangle cvs's MD5* calls.
Diffstat (limited to 'contrib/cvs')
-rw-r--r--contrib/cvs/lib/md5.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/cvs/lib/md5.h b/contrib/cvs/lib/md5.h
index 876b632..3b5ba05 100644
--- a/contrib/cvs/lib/md5.h
+++ b/contrib/cvs/lib/md5.h
@@ -1,8 +1,21 @@
/* See md5.c for explanation and copyright information. */
+/*
+ * $FreeBSD$
+ */
+
#ifndef MD5_H
#define MD5_H
+#ifdef __FreeBSD__
+#define cvs_MD5Context MD5Context
+#define cvs_MD5Init MD5Init
+#define cvs_MD5Update MD5Update
+#define cvs_MD5Final MD5Final
+#define cvs_MD5Transform MD5Transform
+#include <sys/md5.h>
+#else
+
/* Unlike previous versions of this code, uint32 need not be exactly
32 bits, merely 32 bits or more. Choosing a data type which is 32
bits instead of 64 is not important; speed is considerably more
@@ -23,4 +36,6 @@ void cvs_MD5Final PROTO ((unsigned char digest[16],
struct cvs_MD5Context *context));
void cvs_MD5Transform PROTO ((cvs_uint32 buf[4], const unsigned char in[64]));
+#endif
+
#endif /* !MD5_H */
OpenPOWER on IntegriCloud