diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-27 09:40:03 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-04-02 09:03:42 +0200 |
commit | cd648ec00f0ee3afd452486c0a2a1f03be148416 (patch) | |
tree | 4203439efc64a83f03cad4072aaffc953dbc77fd /libcli/auth | |
parent | c8519003a34dc7db44854a3d844d1c7432d52a78 (diff) | |
download | samba-cd648ec00f0ee3afd452486c0a2a1f03be148416.tar.gz samba-cd648ec00f0ee3afd452486c0a2a1f03be148416.tar.xz samba-cd648ec00f0ee3afd452486c0a2a1f03be148416.zip |
libcli/auth: s/encrypt/do_encrypt
This avoids compiler warnings.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli/auth')
-rw-r--r-- | libcli/auth/credentials.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c index f52538a7242..06f5728c462 100644 --- a/libcli/auth/credentials.c +++ b/libcli/auth/credentials.c @@ -624,7 +624,7 @@ void netlogon_creds_encrypt_samlogon_validation(struct netlogon_creds_Credential static void netlogon_creds_crypt_samlogon_logon(struct netlogon_creds_CredentialState *creds, enum netr_LogonInfoClass level, union netr_LogonLevel *logon, - bool encrypt) + bool do_encrypt) { static const char zeros[16]; @@ -646,7 +646,7 @@ static void netlogon_creds_crypt_samlogon_logon(struct netlogon_creds_Credential h = logon->password->lmpassword.hash; if (memcmp(h, zeros, 16) != 0) { - if (encrypt) { + if (do_encrypt) { netlogon_creds_aes_encrypt(creds, h, 16); } else { netlogon_creds_aes_decrypt(creds, h, 16); @@ -655,7 +655,7 @@ static void netlogon_creds_crypt_samlogon_logon(struct netlogon_creds_Credential h = logon->password->ntpassword.hash; if (memcmp(h, zeros, 16) != 0) { - if (encrypt) { + if (do_encrypt) { netlogon_creds_aes_encrypt(creds, h, 16); } else { netlogon_creds_aes_decrypt(creds, h, 16); @@ -678,7 +678,7 @@ static void netlogon_creds_crypt_samlogon_logon(struct netlogon_creds_Credential p = &logon->password->lmpassword; if (memcmp(p->hash, zeros, 16) != 0) { - if (encrypt) { + if (do_encrypt) { netlogon_creds_des_encrypt(creds, p); } else { netlogon_creds_des_decrypt(creds, p); @@ -686,7 +686,7 @@ static void netlogon_creds_crypt_samlogon_logon(struct netlogon_creds_Credential } p = &logon->password->ntpassword; if (memcmp(p->hash, zeros, 16) != 0) { - if (encrypt) { + if (do_encrypt) { netlogon_creds_des_encrypt(creds, p); } else { netlogon_creds_des_decrypt(creds, p); @@ -705,7 +705,7 @@ static void netlogon_creds_crypt_samlogon_logon(struct netlogon_creds_Credential } if (creds->negotiate_flags & NETLOGON_NEG_SUPPORTS_AES) { - if (encrypt) { + if (do_encrypt) { netlogon_creds_aes_encrypt(creds, logon->generic->data, logon->generic->length); |