diff options
author | cem <cem@FreeBSD.org> | 2016-05-26 20:37:49 +0000 |
---|---|---|
committer | cem <cem@FreeBSD.org> | 2016-05-26 20:37:49 +0000 |
commit | e5ef05be3737033c0da5ab5f00022773c4274dcb (patch) | |
tree | 82bb0a8bc8f2bd11fd010bece93427cb8ca620ba | |
parent | 444253bba579f26af746a0fbf42b89b8f44298a0 (diff) | |
download | FreeBSD-src-e5ef05be3737033c0da5ab5f00022773c4274dcb.zip FreeBSD-src-e5ef05be3737033c0da5ab5f00022773c4274dcb.tar.gz |
Ifndef KERNEL the userspace-only routines in sys/md[45].h
A follow-up to r300773. Nothing in the kernel uses those definitions, but
apparently libmd includes the sys/md45 headers. Fix the build.
Reported by: gjb
Pointy-hat: cem
Sponsored by: EMC / Isilon Storage Division
-rw-r--r-- | sys/sys/md4.h | 5 | ||||
-rw-r--r-- | sys/sys/md5.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sys/sys/md4.h b/sys/sys/md4.h index e77eabb..55160ed 100644 --- a/sys/sys/md4.h +++ b/sys/sys/md4.h @@ -40,6 +40,11 @@ void MD4Init(MD4_CTX *); void MD4Update(MD4_CTX *, const unsigned char *, unsigned int); void MD4Pad(MD4_CTX *); void MD4Final(unsigned char [static 16], MD4_CTX *); +#ifndef _KERNEL +char * MD4End(MD4_CTX *, char *); +char * MD4File(const char *, char *); +char * MD4Data(const unsigned char *, unsigned int, char *); +#endif __END_DECLS #endif /* _MD4_H_ */ diff --git a/sys/sys/md5.h b/sys/sys/md5.h index 3140aa1..8a47795 100644 --- a/sys/sys/md5.h +++ b/sys/sys/md5.h @@ -45,5 +45,11 @@ __BEGIN_DECLS void MD5Init (MD5_CTX *); void MD5Update (MD5_CTX *, const void *, unsigned int); void MD5Final (unsigned char[static MD5_DIGEST_LENGTH], MD5_CTX *); +#ifndef _KERNEL +char * MD5End(MD5_CTX *, char *); +char * MD5File(const char *, char *); +char * MD5FileChunk(const char *, char *, off_t, off_t); +char * MD5Data(const void *, unsigned int, char *); +#endif __END_DECLS #endif /* _SYS_MD5_H_ */ |