summaryrefslogtreecommitdiffstats
path: root/lib/libmd/md2.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/md2.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/md2.h')
-rw-r--r--lib/libmd/md2.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libmd/md2.h b/lib/libmd/md2.h
index ecdeaf7..73e8b5a 100644
--- a/lib/libmd/md2.h
+++ b/lib/libmd/md2.h
@@ -1,5 +1,5 @@
/* MD2.H - header file for MD2C.C
- * $Id$
+ * $Id: md2.h,v 1.5 1997/02/22 15:07:12 peter Exp $
*/
/* Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All
@@ -30,11 +30,15 @@ typedef struct MD2Context {
unsigned char buffer[16]; /* input buffer */
} MD2_CTX;
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
void MD2Init(MD2_CTX *);
void MD2Update(MD2_CTX *, const unsigned char *, unsigned int);
void MD2Final(unsigned char [16], MD2_CTX *);
char * MD2End(MD2_CTX *, char *);
-char * MD2File(char *, char *);
+char * MD2File(const char *, char *);
char * MD2Data(const unsigned char *, unsigned int, char *);
+__END_DECLS
#endif /* _MD2_H_ */
OpenPOWER on IntegriCloud