From 9eb6afb00d85c1a7b367d51a19eed41172f7a2e9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 4 Jun 2004 11:58:46 +0000 Subject: r1009: Make all users of NT and LM passwords use the samr_Password structure. This includes the netlogon pipe, for the machine account password change system. Andrew Bartlett (This used to be commit 49d545a82057ee8b60d50aa55e908efe59875150) --- source4/libcli/auth/credentials.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/libcli') diff --git a/source4/libcli/auth/credentials.c b/source4/libcli/auth/credentials.c index 27a3e32cf3..e0989eff4b 100644 --- a/source4/libcli/auth/credentials.c +++ b/source4/libcli/auth/credentials.c @@ -128,20 +128,20 @@ static void creds_step(struct creds_CredentialState *creds) /* DES encrypt a 16 byte password buffer using the session key */ -void creds_des_encrypt(struct creds_CredentialState *creds, struct netr_Password *pass) +void creds_des_encrypt(struct creds_CredentialState *creds, struct samr_Password *pass) { - struct netr_Password tmp; - des_crypt112_16(tmp.data, pass->data, creds->session_key, 1); + struct samr_Password tmp; + des_crypt112_16(tmp.hash, pass->hash, creds->session_key, 1); *pass = tmp; } /* DES decrypt a 16 byte password buffer using the session key */ -void creds_des_decrypt(struct creds_CredentialState *creds, struct netr_Password *pass) +void creds_des_decrypt(struct creds_CredentialState *creds, struct samr_Password *pass) { - struct netr_Password tmp; - des_crypt112_16(tmp.data, pass->data, creds->session_key, 0); + struct samr_Password tmp; + des_crypt112_16(tmp.hash, pass->hash, creds->session_key, 0); *pass = tmp; } -- cgit