summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sha1.h6
-rw-r--r--lib/libc/hash/sha1.34
-rw-r--r--lib/libc/hash/sha1.c6
-rw-r--r--lib/libc/md/mdX.34
4 files changed, 10 insertions, 10 deletions
diff --git a/include/sha1.h b/include/sha1.h
index cec4aa2eb3b..0e1f225e140 100644
--- a/include/sha1.h
+++ b/include/sha1.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha1.h,v 1.7 1997/07/12 20:06:01 millert Exp $ */
+/* $OpenBSD: sha1.h,v 1.8 1997/07/15 01:54:23 millert Exp $ */
/*
* SHA-1 in C
@@ -15,9 +15,9 @@ typedef struct {
u_char buffer[64];
} SHA1_CTX;
-void SHA1Transform __P((u_int32_t state[5], u_char buffer[64]));
+void SHA1Transform __P((u_int32_t state[5], const u_char buffer[64]));
void SHA1Init __P((SHA1_CTX *context));
-void SHA1Update __P((SHA1_CTX *context, u_char *data, u_int len));
+void SHA1Update __P((SHA1_CTX *context, const u_char *data, u_int len));
void SHA1Final __P((u_char digest[20], SHA1_CTX *context));
char *SHA1End __P((SHA1_CTX *, char *));
char *SHA1File __P((char *, char *));
diff --git a/lib/libc/hash/sha1.3 b/lib/libc/hash/sha1.3
index c016a828634..384f48af207 100644
--- a/lib/libc/hash/sha1.3
+++ b/lib/libc/hash/sha1.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sha1.3,v 1.4 1997/07/12 20:06:03 millert Exp $
+.\" $OpenBSD: sha1.3,v 1.5 1997/07/15 01:54:23 millert Exp $
.\"
.\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
.\" All rights reserved.
@@ -47,7 +47,7 @@
.Ft void
.Fn SHA1Init "SHA1_CTX *context"
.Ft void
-.Fn SHA1Update "SHA1_CTX *context" "u_char *data" "u_int len"
+.Fn SHA1Update "SHA1_CTX *context" "const u_char *data" "u_int len"
.Ft void
.Fn SHA1Final "u_char digest[20]" "SHA1_CTX *context"
.Ft void
diff --git a/lib/libc/hash/sha1.c b/lib/libc/hash/sha1.c
index 64ebf133dca..56df23605eb 100644
--- a/lib/libc/hash/sha1.c
+++ b/lib/libc/hash/sha1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha1.c,v 1.7 1997/07/12 00:51:18 millert Exp $ */
+/* $OpenBSD: sha1.c,v 1.8 1997/07/15 01:54:24 millert Exp $ */
/*
* SHA-1 in C
@@ -50,7 +50,7 @@
*/
void SHA1Transform(state, buffer)
u_int32_t state[5];
- u_char buffer[64];
+ const u_char buffer[64];
{
u_int32_t a, b, c, d, e;
typedef union {
@@ -130,7 +130,7 @@ void SHA1Init(context)
*/
void SHA1Update(context, data, len)
SHA1_CTX *context;
- u_char *data;
+ const u_char *data;
u_int len;
{
u_int i, j;
diff --git a/lib/libc/md/mdX.3 b/lib/libc/md/mdX.3
index 842ab175ef6..b1605abaa3d 100644
--- a/lib/libc/md/mdX.3
+++ b/lib/libc/md/mdX.3
@@ -6,7 +6,7 @@
.\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
.\" ----------------------------------------------------------------------------
.\"
-.\" $OpenBSD: mdX.3,v 1.7 1997/07/03 23:30:22 provos Exp $
+.\" $OpenBSD: mdX.3,v 1.8 1997/07/15 01:54:22 millert Exp $
.\"
.Dd October 9, 1996
.Dt MDX 3
@@ -24,7 +24,7 @@
.Ft void
.Fn MDXInit "MDX_CTX *context"
.Ft void
-.Fn MDXUpdate "MDX_CTX *context" "unsigned char *data" "unsigned int len"
+.Fn MDXUpdate "MDX_CTX *context" "const unsigned char *data" "unsigned int len"
.Ft void
.Fn MDXFinal "unsigned char digest[16]" "MDX_CTX *context"
.Ft "char *"