svn commit: samba r3899 - in branches/SAMBA_4_0/source/libcli/util: .

metze at samba.org metze at samba.org
Mon Nov 22 07:54:17 GMT 2004


Author: metze
Date: 2004-11-22 07:54:16 +0000 (Mon, 22 Nov 2004)
New Revision: 3899

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3899

Log:
fix compiler warnings

metze

Modified:
   branches/SAMBA_4_0/source/libcli/util/smbencrypt.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/util/smbencrypt.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/util/smbencrypt.c	2004-11-21 17:47:09 UTC (rev 3898)
+++ branches/SAMBA_4_0/source/libcli/util/smbencrypt.c	2004-11-22 07:54:16 UTC (rev 3899)
@@ -435,7 +435,7 @@
  encode a password buffer with a unicode password.  The buffer
  is filled with random data to make it harder to attack.
 ************************************************************/
-BOOL encode_pw_buffer(char buffer[516], const char *password, int string_flags)
+BOOL encode_pw_buffer(uint8_t buffer[516], const char *password, int string_flags)
 {
 	uint8_t new_pw[512];
 	size_t new_pw_len;
@@ -446,7 +446,7 @@
 	
 	memcpy(&buffer[512 - new_pw_len], new_pw, new_pw_len);
 
-	generate_random_buffer((uint8_t *)buffer, 512 - new_pw_len);
+	generate_random_buffer(buffer, 512 - new_pw_len);
 
 	/* 
 	 * The length of the new password is in the last 4 bytes of



More information about the samba-cvs mailing list