git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8f0f3a
)
More const.
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 31 Oct 2001 06:57:28 +0000
(06:57 +0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source3/libsmb/smbencrypt.c
b/source3/libsmb/smbencrypt.c
index 9b0ef37eb6f6ab8ebf1a24d3f31c58e5f45b5e20..2868b02ed9e7f194555807ac3165f81106a09793 100644
(file)
--- 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((c
onst c
har *)passwd);
if(len > 128)
len = 128;
/* Password must be converted to NT unicode - null terminated. */