From ec06c81db313f2862544c972cbf582a07bb844c2 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 29 Nov 2012 21:30:24 +0100 Subject: s3-rpc_client: use netlogon_creds_arcfour_crypt() in init_netr_CryptPassword. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Stefan Metzmacher --- source3/rpc_client/init_netlogon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/rpc_client/init_netlogon.c') diff --git a/source3/rpc_client/init_netlogon.c b/source3/rpc_client/init_netlogon.c index 445108a7d3..0d33d6fdd6 100644 --- a/source3/rpc_client/init_netlogon.c +++ b/source3/rpc_client/init_netlogon.c @@ -1,7 +1,7 @@ /* * Unix SMB/CIFS implementation. * RPC Pipe client / server routines - * Copyright (C) Guenther Deschner 2008. + * Copyright (C) Guenther Deschner 2008,2012 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,14 +27,14 @@ *************************************************************************/ void init_netr_CryptPassword(const char *pwd, - unsigned char session_key[16], + struct netlogon_creds_CredentialState *creds, struct netr_CryptPassword *pwd_buf) { struct samr_CryptPassword password_buf; encode_pw_buffer(password_buf.data, pwd, STR_UNICODE); - arcfour_crypt(password_buf.data, session_key, 516); + netlogon_creds_arcfour_crypt(creds, password_buf.data, 516); memcpy(pwd_buf->data, password_buf.data, 512); pwd_buf->length = IVAL(password_buf.data, 512); } -- cgit