aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/md.c')
-rw-r--r--cipher/md.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cipher/md.c b/cipher/md.c
index 6d84772d2..8d20a9804 100644
--- a/cipher/md.c
+++ b/cipher/md.c
@@ -317,7 +317,7 @@ md_close(MD_HANDLE a)
void
-md_write( MD_HANDLE a, byte *inbuf, size_t inlen)
+md_write( MD_HANDLE a, const byte *inbuf, size_t inlen)
{
struct md_digest_list_s *r;
@@ -329,7 +329,8 @@ md_write( MD_HANDLE a, byte *inbuf, size_t inlen)
}
for(r=a->list; r; r = r->next ) {
(*r->write)( &r->context.c, a->buffer, a->bufcount );
- (*r->write)( &r->context.c, inbuf, inlen );
+ /* Fixme: all ->write fnc should take a const byte* */
+ (*r->write)( &r->context.c, (byte*)inbuf, inlen );
}
a->bufcount = 0;
}