summaryrefslogtreecommitdiffstats
path: root/lib/libmd/rmd160c.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-01-17 15:35:57 +0000
committerphk <phk@FreeBSD.org>2006-01-17 15:35:57 +0000
commit7a469c93bd0237caf5ea853e39af9aae0641ee9a (patch)
tree101d4be37f349e17f665a23b1aa8744624569973 /lib/libmd/rmd160c.c
parent0918b5cf25de7142e1ae5fd30873e51040664a87 (diff)
downloadFreeBSD-src-7a469c93bd0237caf5ea853e39af9aae0641ee9a.zip
FreeBSD-src-7a469c93bd0237caf5ea853e39af9aae0641ee9a.tar.gz
Fix an 11 year old mistake: Let the hash functions take a void* instead
of unsigned char* argument.
Diffstat (limited to 'lib/libmd/rmd160c.c')
-rw-r--r--lib/libmd/rmd160c.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libmd/rmd160c.c b/lib/libmd/rmd160c.c
index 2467d71..e01f1e0 100644
--- a/lib/libmd/rmd160c.c
+++ b/lib/libmd/rmd160c.c
@@ -101,14 +101,15 @@ RIPEMD160_CTX *c;
c->num=0;
}
-void RIPEMD160_Update(c, data, len)
+void RIPEMD160_Update(c, in, len)
RIPEMD160_CTX *c;
-const unsigned char *data;
+const void *in;
size_t len;
{
u_int32_t *p;
int sw,sc;
u_int32_t l;
+ const unsigned char *data = in;
if (len == 0) return;
OpenPOWER on IntegriCloud