summaryrefslogtreecommitdiffstats
path: root/sys/sys/md5.h
diff options
context:
space:
mode:
authorcem <cem@FreeBSD.org>2016-05-26 20:37:49 +0000
committercem <cem@FreeBSD.org>2016-05-26 20:37:49 +0000
commite5ef05be3737033c0da5ab5f00022773c4274dcb (patch)
tree82bb0a8bc8f2bd11fd010bece93427cb8ca620ba /sys/sys/md5.h
parent444253bba579f26af746a0fbf42b89b8f44298a0 (diff)
downloadFreeBSD-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
Diffstat (limited to 'sys/sys/md5.h')
-rw-r--r--sys/sys/md5.h6
1 files changed, 6 insertions, 0 deletions
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_ */
OpenPOWER on IntegriCloud