summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-10-31 06:57:28 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-10-31 06:57:28 +0000
commit83575bd3868ef3993107460d2c8e05f382eae351 (patch)
treeffd07f5341aa3a13ad6908df769c65d49715407b
parentd8f0f3a6d4c6fedf5cad364afb33d9cb92bc1336 (diff)
downloadsamba-83575bd3868ef3993107460d2c8e05f382eae351.tar.gz
samba-83575bd3868ef3993107460d2c8e05f382eae351.tar.bz2
samba-83575bd3868ef3993107460d2c8e05f382eae351.zip
More const.
(This used to be commit ceba373aa30e09be948bd0980040cba204d12084)
-rw-r--r--source3/libsmb/smbencrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c
index 9b0ef37eb6..2868b02ed9 100644
--- a/source3/libsmb/smbencrypt.c
+++ b/source3/libsmb/smbencrypt.c
@@ -54,13 +54,13 @@ void SMBencrypt(const uchar *passwd, const uchar *c8, uchar *p24)
* Creates the MD4 Hash of the users password in NT UNICODE.
*/
-void E_md4hash(uchar *passwd, uchar *p16)
+void E_md4hash(const uchar *passwd, uchar *p16)
{
int len;
smb_ucs2_t wpwd[129];
/* Password cannot be longer than 128 characters */
- len = strlen((char *)passwd);
+ len = strlen((const char *)passwd);
if(len > 128)
len = 128;
/* Password must be converted to NT unicode - null terminated. */