From e51c3224d0b8b5760c48ebe4f859f27cf3c202b6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 2 Mar 2002 04:41:55 +0000 Subject: Add a dash of const here and there... (This used to be commit 413a46292b4e963343abce2428955305052e9cb4) --- source3/libsmb/credentials.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/libsmb/credentials.c') diff --git a/source3/libsmb/credentials.c b/source3/libsmb/credentials.c index fb874fc1dbc..0d521bae8ac 100644 --- a/source3/libsmb/credentials.c +++ b/source3/libsmb/credentials.c @@ -23,7 +23,7 @@ /**************************************************************************** represent a credential as a string ****************************************************************************/ -char *credstr(uchar *cred) +char *credstr(const uchar *cred) { static fstring buf; slprintf(buf, sizeof(buf) - 1, "%02X%02X%02X%02X%02X%02X%02X%02X", @@ -41,7 +41,7 @@ Input: 8 byte challenge block Output: 8 byte session key ****************************************************************************/ -void cred_session_key(DOM_CHAL *clnt_chal, DOM_CHAL *srv_chal, char *pass, +void cred_session_key(const DOM_CHAL *clnt_chal, const DOM_CHAL *srv_chal, const uchar *pass, uchar session_key[8]) { uint32 sum[2]; @@ -53,7 +53,7 @@ void cred_session_key(DOM_CHAL *clnt_chal, DOM_CHAL *srv_chal, char *pass, SIVAL(sum2,0,sum[0]); SIVAL(sum2,4,sum[1]); - cred_hash1(session_key, sum2,(unsigned char *)pass); + cred_hash1(session_key, sum2, pass); /* debug output */ DEBUG(4,("cred_session_key\n")); -- cgit