diff options
author | Herb Lewis <herb@samba.org> | 2001-08-24 20:32:01 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2001-08-24 20:32:01 +0000 |
commit | 717533483b41ef975953f58e0c6be04828a3d467 (patch) | |
tree | 1eba76475bd03c51e9d2d2f840634517297d0024 /source3/rpc_server/srv_netlog_nt.c | |
parent | b9e7eeaf4fc13fb9e2dbee69e07bc6800f6e427a (diff) | |
download | samba-717533483b41ef975953f58e0c6be04828a3d467.tar.gz samba-717533483b41ef975953f58e0c6be04828a3d467.tar.bz2 samba-717533483b41ef975953f58e0c6be04828a3d467.zip |
get rid of compiler warnings
(This used to be commit 0768991d04ea03e774ca8662c9cae5e1951b88e0)
Diffstat (limited to 'source3/rpc_server/srv_netlog_nt.c')
-rw-r--r-- | source3/rpc_server/srv_netlog_nt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c index d878e2db58..886e5fefca 100644 --- a/source3/rpc_server/srv_netlog_nt.c +++ b/source3/rpc_server/srv_netlog_nt.c @@ -535,8 +535,8 @@ static uint32 _net_logon_any(NET_ID_INFO_CTR *ctr, char *user, char *domain, cha #endif generate_random_buffer(user_info.chal, 8, False); - SMBOWFencrypt(lm_pwd, user_info.chal, local_lm_response); - SMBOWFencrypt(nt_pwd, user_info.chal, local_nt_response); + SMBOWFencrypt((const unsigned char *)lm_pwd, user_info.chal, local_lm_response); + SMBOWFencrypt((const unsigned char *)nt_pwd, user_info.chal, local_nt_response); user_info.lm_resp.buffer = (uint8 *)local_lm_response; user_info.lm_resp.len = 24; user_info.nt_resp.buffer = (uint8 *)local_nt_response; @@ -633,7 +633,7 @@ uint32 _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON *r_ DEBUG(10,("Attempting validation level %d for mapped username %s.\n", q_u->sam_id.ctr->switch_value, nt_username)); - status = _net_logon_any(q_u->sam_id.ctr, nt_username, nt_domain, p->dc.sess_key); + status = _net_logon_any(q_u->sam_id.ctr, nt_username, nt_domain, (char *)p->dc.sess_key); /* Check account and password */ |