summaryrefslogtreecommitdiffstats
path: root/sys/crypto
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
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')
-rw-r--r--sys/crypto/sha1.c2
-rw-r--r--sys/crypto/sha1.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/sha1.c b/sys/crypto/sha1.c
index 5b1c02d..8918837 100644
--- a/sys/crypto/sha1.c
+++ b/sys/crypto/sha1.c
@@ -220,7 +220,7 @@ sha1_pad(ctxt)
void
sha1_loop(ctxt, input0, len)
struct sha1_ctxt *ctxt;
- caddr_t input0;
+ const caddr_t input0;
size_t len;
{
u_int8_t *input;
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