diff options
author | joerg <joerg@FreeBSD.org> | 1997-08-25 05:24:31 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-08-25 05:24:31 +0000 |
commit | a4d82a959aeb47170a0450b2743fa5d8f9890393 (patch) | |
tree | 8b010835302624d3f9bb1e067c62a9e6d81ec37b /sys | |
parent | 4760384ee3898fd9f6ff4352bf2b0b1cae4ec150 (diff) | |
download | FreeBSD-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 'sys')
-rw-r--r-- | sys/sys/md5.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/sys/md5.h b/sys/sys/md5.h index 71b3d6c..d06cef8 100644 --- a/sys/sys/md5.h +++ b/sys/sys/md5.h @@ -1,5 +1,5 @@ /* MD5.H - header file for MD5C.C - * $Id$ + * $Id: md5.h,v 1.8 1997/02/22 09:45:33 peter Exp $ */ /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All @@ -33,10 +33,14 @@ typedef struct MD5Context { unsigned char buffer[64]; /* input buffer */ } MD5_CTX; +#include <sys/cdefs.h> + +__BEGIN_DECLS void MD5Init (MD5_CTX *); void MD5Update (MD5_CTX *, const unsigned char *, unsigned int); void MD5Final (unsigned char [16], MD5_CTX *); char * MD5End(MD5_CTX *, char *); -char * MD5File(char *, char *); +char * MD5File(const char *, char *); char * MD5Data(const unsigned char *, unsigned int, char *); +__END_DECLS #endif /* _SYS_MD5_H_ */ |