summaryrefslogtreecommitdiffstats
path: root/lib/libmd/md4.h
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-08-25 05:24:31 +0000
committerjoerg <joerg@FreeBSD.org>1997-08-25 05:24:31 +0000
commita4d82a959aeb47170a0450b2743fa5d8f9890393 (patch)
tree8b010835302624d3f9bb1e067c62a9e6d81ec37b /lib/libmd/md4.h
parent4760384ee3898fd9f6ff4352bf2b0b1cae4ec150 (diff)
downloadFreeBSD-src-a4d82a959aeb47170a0450b2743fa5d8f9890393.zip
FreeBSD-src-a4d82a959aeb47170a0450b2743fa5d8f9890393.tar.gz
Make the MD* header files C++-aware. Also, string arguments are supposed
to be of type `const char *'. PR: 3291 Submitted by: dima@tejblum.dnttm.rssi.ru (Dmitrij Tejblum)
Diffstat (limited to 'lib/libmd/md4.h')
-rw-r--r--lib/libmd/md4.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libmd/md4.h b/lib/libmd/md4.h
index 5481bbd..10058a8 100644
--- a/lib/libmd/md4.h
+++ b/lib/libmd/md4.h
@@ -1,5 +1,5 @@
/* MD4.H - header file for MD4C.C
- * $Id$
+ * $Id: md4.h,v 1.6 1997/02/22 15:07:17 peter Exp $
*/
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
@@ -32,11 +32,15 @@ typedef struct MD4Context {
unsigned char buffer[64]; /* input buffer */
} MD4_CTX;
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
void MD4Init(MD4_CTX *);
void MD4Update(MD4_CTX *, const unsigned char *, unsigned int);
void MD4Final(unsigned char [16], MD4_CTX *);
char * MD4End(MD4_CTX *, char *);
-char * MD4File(char *, char *);
+char * MD4File(const char *, char *);
char * MD4Data(const unsigned char *, unsigned int, char *);
+__END_DECLS
#endif /* _MD4_H_ */
OpenPOWER on IntegriCloud