The Samba-Bugzilla – Attachment 1037 Details for
Bug 2461
smbd/chgpasswd.c "unsigned char *" cannot be assigned to "char *"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patches smbd/chgpasswd.c libsmb/smbencrypt.c rpc_server/srv_samr_nt.c
bug2461.patch (text/plain), 1.79 KB, created by
Jason Mader (mail bounces back)
on 2005-03-16 11:14:03 UTC
(
hide
)
Description:
patches smbd/chgpasswd.c libsmb/smbencrypt.c rpc_server/srv_samr_nt.c
Filename:
MIME Type:
Creator:
Jason Mader (mail bounces back)
Created:
2005-03-16 11:14:03 UTC
Size:
1.79 KB
patch
obsolete
>--- smbd/chgpasswd.c Fri Feb 25 12:59:26 2005 >+++ smbd/chgpasswd.c.N Wed Mar 16 11:34:28 2005 >@@ -747,8 +747,8 @@ > static uchar null_pw[16]; > static uchar null_ntpw[16]; > SAM_ACCOUNT *sampass = NULL; >- char *password_encrypted; >- const char *encryption_key; >+ unsigned char *password_encrypted; >+ const unsigned char *encryption_key; > const uint8 *lanman_pw, *nt_pw; > uint16 acct_ctrl; > uint32 new_pw_len; >--- libsmb/smbencrypt.c Fri Feb 25 12:59:33 2005 >+++ libsmb/smbencrypt.c.N Wed Mar 16 11:34:48 2005 >@@ -513,7 +513,7 @@ > *new_pw_len is the length in bytes of the possibly mulitbyte > returned password including termination. > ************************************************************/ >-BOOL decode_pw_buffer(char in_buffer[516], char *new_pwrd, >+BOOL decode_pw_buffer(unsigned char in_buffer[516], char *new_pwrd, > int new_pwrd_size, uint32 *new_pw_len, > int string_flags) > { >--- rpc_server/srv_samr_nt.c Fri Mar 11 08:47:04 2005 >+++ rpc_server/srv_samr_nt.c.N Wed Mar 16 11:35:05 2005 >@@ -2900,7 +2900,7 @@ > > acct_ctrl = pdb_get_acct_ctrl(pwd); > >- if (!decode_pw_buffer((char*)id23->pass, plaintext_buf, 256, &len, STR_UNICODE)) { >+ if (!decode_pw_buffer(id23->pass, plaintext_buf, 256, &len, STR_UNICODE)) { > pdb_free_sam(&pwd); > return False; > } >@@ -2951,7 +2951,7 @@ > set_user_info_pw > ********************************************************************/ > >-static BOOL set_user_info_pw(char *pass, SAM_ACCOUNT *pwd) >+static BOOL set_user_info_pw(unsigned char *pass, SAM_ACCOUNT *pwd) > { > uint32 len; > pstring plaintext_buf; >@@ -3097,7 +3097,7 @@ > > dump_data(100, (char *)ctr->info.id24->pass, 516); > >- if (!set_user_info_pw((char *)ctr->info.id24->pass, pwd)) >+ if (!set_user_info_pw(ctr->info.id24->pass, pwd)) > r_u->status = NT_STATUS_ACCESS_DENIED; > break; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2461
:
1037
|
1038