summaryrefslogtreecommitdiffstats
path: root/source3/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-03-28 13:31:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:59 -0500
commit9bb40d7c6158090712d774e98654d80c888ca4f3 (patch)
treeffb14cda6386f2ccbd390b49422a06b588468934 /source3/utils
parent5b7c813104c652cfa215090361946ab33e8f0679 (diff)
downloadsamba-9bb40d7c6158090712d774e98654d80c888ca4f3.tar.gz
samba-9bb40d7c6158090712d774e98654d80c888ca4f3.tar.xz
samba-9bb40d7c6158090712d774e98654d80c888ca4f3.zip
r22000: remove useless casts
metze (This used to be commit 8f55fe4e4614d73c2534ca87745972f7550875ee)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/ntlm_auth_diagnostics.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/utils/ntlm_auth_diagnostics.c b/source3/utils/ntlm_auth_diagnostics.c
index f7997de711e..6f829de1dd8 100644
--- a/source3/utils/ntlm_auth_diagnostics.c
+++ b/source3/utils/ntlm_auth_diagnostics.c
@@ -243,10 +243,10 @@ static BOOL test_ntlm_in_both(void)
DATA_BLOB nt_response = data_blob(NULL, 24);
DATA_BLOB session_key = data_blob(NULL, 16);
- char lm_key[8];
- char lm_hash[16];
- char user_session_key[16];
- char nt_hash[16];
+ uint8 lm_key[8];
+ uint8 lm_hash[16];
+ uint8 user_session_key[16];
+ uint8 nt_hash[16];
DATA_BLOB chall = get_challenge();
char *error_string;
@@ -257,10 +257,10 @@ static BOOL test_ntlm_in_both(void)
flags |= WBFLAG_PAM_USER_SESSION_KEY;
SMBNTencrypt(opt_password,chall.data,nt_response.data);
- E_md4hash(opt_password, (unsigned char *)nt_hash);
- SMBsesskeygen_ntv1((const unsigned char *)nt_hash, NULL, session_key.data);
+ E_md4hash(opt_password, nt_hash);
+ SMBsesskeygen_ntv1(nt_hash, NULL, session_key.data);
- E_deshash(opt_password, (unsigned char *)lm_hash);
+ E_deshash(opt_password, lm_hash);
nt_status = contact_winbind_auth_crap(opt_username, opt_domain,
opt_workstation,
@@ -268,8 +268,8 @@ static BOOL test_ntlm_in_both(void)
&nt_response,
&nt_response,
flags,
- (unsigned char *)lm_key,
- (unsigned char *)user_session_key,
+ lm_key,
+ user_session_key,
&error_string, NULL);
data_blob_free(&nt_response);