svn commit: samba r2285 - in branches/SAMBA_4_0/source/libcli/auth: .

abartlet at samba.org abartlet at samba.org
Sat Sep 11 23:05:09 GMT 2004


Author: abartlet
Date: 2004-09-11 23:05:08 +0000 (Sat, 11 Sep 2004)
New Revision: 2285

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/libcli/auth&rev=2285&nolog=1

Log:
Remove more static data, fix spelling in a comment.

Modified:
   branches/SAMBA_4_0/source/libcli/auth/ntlmssp.c
   branches/SAMBA_4_0/source/libcli/auth/ntlmssp.h


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/auth/ntlmssp.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/auth/ntlmssp.c	2004-09-11 15:11:36 UTC (rev 2284)
+++ branches/SAMBA_4_0/source/libcli/auth/ntlmssp.c	2004-09-11 23:05:08 UTC (rev 2285)
@@ -107,8 +107,8 @@
    
 static const uint8_t *get_challenge(const struct ntlmssp_state *ntlmssp_state)
 {
-	static uint8_t chal[8];
-	generate_random_buffer(chal, sizeof(chal));
+	uint8_t *chal = talloc(ntlmssp_state->mem_ctx, 8);
+	generate_random_buffer(chal, 8);
 
 	return chal;
 }

Modified: branches/SAMBA_4_0/source/libcli/auth/ntlmssp.h
===================================================================
--- branches/SAMBA_4_0/source/libcli/auth/ntlmssp.h	2004-09-11 15:11:36 UTC (rev 2284)
+++ branches/SAMBA_4_0/source/libcli/auth/ntlmssp.h	2004-09-11 23:05:08 UTC (rev 2285)
@@ -120,7 +120,7 @@
 	 * Callback to get the 'challenge' used for NTLM authentication.  
 	 *
 	 * @param ntlmssp_state This structure
-	 * @return 8 bytes of challnege data, determined by the server to be the challenge for NTLM authentication
+	 * @return 8 bytes of challenge data, determined by the server to be the challenge for NTLM authentication
 	 *
 	 */
 	const uint8_t *(*get_challenge)(const struct ntlmssp_state *ntlmssp_state);



More information about the samba-cvs mailing list