summaryrefslogtreecommitdiff
path: root/libcli/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-06-14 09:47:50 +0200
committerAndreas Schneider <asn@samba.org>2013-08-05 10:30:01 +0200
commit291f6a1e031dc9db7d03b3ca924c4309b313cae5 (patch)
tree07531f39949a56879f243e020344879f3f2aa569 /libcli/auth
parent39fedd27182d9e1985418ea79b86aef69999dd57 (diff)
downloadsamba-291f6a1e031dc9db7d03b3ca924c4309b313cae5.tar.gz
samba-291f6a1e031dc9db7d03b3ca924c4309b313cae5.tar.bz2
samba-291f6a1e031dc9db7d03b3ca924c4309b313cae5.zip
libcli/auth: fix shadowed declaration in netlogon_creds_crypt_samlogon_validation()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'libcli/auth')
-rw-r--r--libcli/auth/credentials.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c
index 5c8b25b7a4..2e9c87e8f6 100644
--- a/libcli/auth/credentials.c
+++ b/libcli/auth/credentials.c
@@ -490,7 +490,7 @@ NTSTATUS netlogon_creds_server_step_check(struct netlogon_creds_CredentialState
static void netlogon_creds_crypt_samlogon_validation(struct netlogon_creds_CredentialState *creds,
uint16_t validation_level,
union netr_Validation *validation,
- bool encrypt)
+ bool do_encrypt)
{
static const char zeros[16];
struct netr_SamBaseInfo *base = NULL;
@@ -531,7 +531,7 @@ static void netlogon_creds_crypt_samlogon_validation(struct netlogon_creds_Crede
/* Don't crypt an all-zero key, it would give away the NETLOGON pipe session key */
if (memcmp(base->key.key, zeros,
sizeof(base->key.key)) != 0) {
- if (encrypt) {
+ if (do_encrypt) {
netlogon_creds_aes_encrypt(creds,
base->key.key,
sizeof(base->key.key));
@@ -544,7 +544,7 @@ static void netlogon_creds_crypt_samlogon_validation(struct netlogon_creds_Crede
if (memcmp(base->LMSessKey.key, zeros,
sizeof(base->LMSessKey.key)) != 0) {
- if (encrypt) {
+ if (do_encrypt) {
netlogon_creds_aes_encrypt(creds,
base->LMSessKey.key,
sizeof(base->LMSessKey.key));
@@ -574,7 +574,7 @@ static void netlogon_creds_crypt_samlogon_validation(struct netlogon_creds_Crede
/* Don't crypt an all-zero key, it would give away the NETLOGON pipe session key */
if (memcmp(base->LMSessKey.key, zeros,
sizeof(base->LMSessKey.key)) != 0) {
- if (encrypt) {
+ if (do_encrypt) {
netlogon_creds_des_encrypt_LMKey(creds,
&base->LMSessKey);
} else {