summaryrefslogtreecommitdiffstats
path: root/sys/crypto
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-10-09 18:49:14 +0000
committerarchie <archie@FreeBSD.org>2000-10-09 18:49:14 +0000
commitf46adaf572d02ece2fdf79088d06e1801bb5f7d9 (patch)
tree0d97541fb7a1320fc72ad26ec5d061a82a7fd3d0 /sys/crypto
parent8c25d0773da5520a5580e9fa1883814c79d540f8 (diff)
downloadFreeBSD-src-f46adaf572d02ece2fdf79088d06e1801bb5f7d9.zip
FreeBSD-src-f46adaf572d02ece2fdf79088d06e1801bb5f7d9.tar.gz
Fix broken const'ness in declaration of sha1_loop().
Diffstat (limited to 'sys/crypto')
-rw-r--r--sys/crypto/sha1.c6
-rw-r--r--sys/crypto/sha1.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/crypto/sha1.c b/sys/crypto/sha1.c
index 815bc5a..bbf20b8 100644
--- a/sys/crypto/sha1.c
+++ b/sys/crypto/sha1.c
@@ -219,18 +219,16 @@ sha1_pad(ctxt)
}
void
-sha1_loop(ctxt, input0, len)
+sha1_loop(ctxt, input, len)
struct sha1_ctxt *ctxt;
- const caddr_t input0;
+ const u_int8_t *input;
size_t len;
{
- const u_int8_t *input;
size_t gaplen;
size_t gapstart;
size_t off;
size_t copysiz;
- input = (const u_int8_t *)input0;
off = 0;
while (off < len) {
diff --git a/sys/crypto/sha1.h b/sys/crypto/sha1.h
index 2e87f05..9162ce6 100644
--- a/sys/crypto/sha1.h
+++ b/sys/crypto/sha1.h
@@ -57,7 +57,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 *, const caddr_t, size_t));
+extern void sha1_loop __P((struct sha1_ctxt *, const u_int8_t *, size_t));
extern void sha1_result __P((struct sha1_ctxt *, caddr_t));
/* compatibilty with other SHA1 source codes */
@@ -65,7 +65,7 @@ typedef struct sha1_ctxt SHA1_CTX;
#define SHA1Init(x) sha1_init((x))
#define SHA1Update(x, y, z) sha1_loop((x), (y), (z))
#define SHA1Final(x, y) sha1_result((y), (x))
-#endif
+#endif /* _KERNEL */
#define SHA1_RESULTLEN (160/8)
OpenPOWER on IntegriCloud