More const.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 31 Oct 2001 06:57:28 +0000 (06:57 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 Oct 2001 06:57:28 +0000 (06:57 +0000)
(This used to be commit ceba373aa30e09be948bd0980040cba204d12084)

source3/libsmb/smbencrypt.c

index 9b0ef37eb6f6ab8ebf1a24d3f31c58e5f45b5e20..2868b02ed9e7f194555807ac3165f81106a09793 100644 (file)
@@ -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. */