summaryrefslogtreecommitdiffstats
path: root/source/lib/hmacmd5.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-06-29 18:47:06 +0000
committerLuke Leighton <lkcl@samba.org>1999-06-29 18:47:06 +0000
commitab1a6aa42db5217f025941fb5107436556bc23b7 (patch)
tree1bc342852e54df8cbf73de89d49871b5c3d12091 /source/lib/hmacmd5.c
parentde9a38b0bcb5adcb6e502f2200d3e84bdcbdfc48 (diff)
downloadsamba-ab1a6aa42db5217f025941fb5107436556bc23b7.tar.gz
samba-ab1a6aa42db5217f025941fb5107436556bc23b7.tar.xz
samba-ab1a6aa42db5217f025941fb5107436556bc23b7.zip
improving authentication code (tidyup).
Diffstat (limited to 'source/lib/hmacmd5.c')
-rw-r--r--source/lib/hmacmd5.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/lib/hmacmd5.c b/source/lib/hmacmd5.c
index 9821afdc1da..d3c0d42d972 100644
--- a/source/lib/hmacmd5.c
+++ b/source/lib/hmacmd5.c
@@ -67,7 +67,8 @@ void hmac_md5_init_rfc2104(uchar* key, int key_len, HMACMD5Context *ctx)
/***********************************************************************
the microsoft version of hmac_md5 initialisation.
***********************************************************************/
-void hmac_md5_init_limK_to_64(uchar* key, int key_len, HMACMD5Context *ctx)
+void hmac_md5_init_limK_to_64(const uchar* key, int key_len,
+ HMACMD5Context *ctx)
{
int i;
@@ -97,7 +98,7 @@ void hmac_md5_init_limK_to_64(uchar* key, int key_len, HMACMD5Context *ctx)
/***********************************************************************
update hmac_md5 "inner" buffer
***********************************************************************/
-void hmac_md5_update(uchar* text, int text_len, HMACMD5Context *ctx)
+void hmac_md5_update(const uchar* text, int text_len, HMACMD5Context *ctx)
{
MD5Update(&ctx->ctx, text, text_len); /* then text of datagram */
}