summaryrefslogtreecommitdiffstats
path: root/sys/crypto/sha1.h
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-02-10 19:35:53 +0000
committershin <shin@FreeBSD.org>2000-02-10 19:35:53 +0000
commit0539d56f5e4dcf77c207320d6ee06b0ca8408698 (patch)
tree54f53c8461a01eee87bd67d67b98637a5a655d79 /sys/crypto/sha1.h
parenta0c9aca93ba39577e7f36147df6ca979625e77b1 (diff)
downloadFreeBSD-src-0539d56f5e4dcf77c207320d6ee06b0ca8408698.zip
FreeBSD-src-0539d56f5e4dcf77c207320d6ee06b0ca8408698.tar.gz
Prototype fix for IPsec authentication related functions
Some of IPsec authentication related functions should have 'const' for its 2nd argument, but not now. But if someone try to use them, and passed const data for those functions, then much bogus compile warnings will be generated. So those funcs prototype should be modified. Requested by: archie Approved by: jkh
Diffstat (limited to 'sys/crypto/sha1.h')
-rw-r--r--sys/crypto/sha1.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/crypto/sha1.h b/sys/crypto/sha1.h
index a6a4fab..f246ffe 100644
--- a/sys/crypto/sha1.h
+++ b/sys/crypto/sha1.h
@@ -56,7 +56,7 @@ struct sha1_ctxt {
#ifdef _KERNEL
extern void sha1_init __P((struct sha1_ctxt *));
extern void sha1_pad __P((struct sha1_ctxt *));
-extern void sha1_loop __P((struct sha1_ctxt *, caddr_t, size_t));
+extern void sha1_loop __P((struct sha1_ctxt *, const caddr_t, size_t));
extern void sha1_result __P((struct sha1_ctxt *, caddr_t));
/* compatibilty with other SHA1 source codes */
OpenPOWER on IntegriCloud