mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:kdc: Remove unnecessary casts
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
0a202264d3
commit
9fd501dfec
@ -2009,7 +2009,7 @@ static krb5_error_code samba_kdc_trust_message2entry(krb5_context context,
|
||||
CH_UTF16MUNGED, CH_UTF8,
|
||||
password_utf16.data,
|
||||
password_utf16.length,
|
||||
(void *)&password_utf8.data,
|
||||
&password_utf8.data,
|
||||
&password_utf8.length);
|
||||
if (!ok) {
|
||||
krb5_clear_error_message(context);
|
||||
|
@ -136,9 +136,9 @@ static krb5_error_code kpasswd_set_password(struct kdc_server *kdc,
|
||||
lpcfg_iconv_handle(kdc->task->lp_ctx),
|
||||
CH_UTF8,
|
||||
CH_UTF16,
|
||||
(const char *)chpw.newpasswd.data,
|
||||
chpw.newpasswd.data,
|
||||
chpw.newpasswd.length,
|
||||
(void **)&password.data,
|
||||
&password.data,
|
||||
&password.length);
|
||||
if (!ok) {
|
||||
free_ChangePasswdDataMS(&chpw);
|
||||
@ -288,9 +288,9 @@ krb5_error_code kpasswd_handle_request(struct kdc_server *kdc,
|
||||
lpcfg_iconv_handle(kdc->task->lp_ctx),
|
||||
CH_UTF8,
|
||||
CH_UTF16,
|
||||
(const char *)decoded_data->data,
|
||||
decoded_data->data,
|
||||
decoded_data->length,
|
||||
(void **)&password.data,
|
||||
&password.data,
|
||||
&password.length);
|
||||
if (!ok) {
|
||||
*error_string = "String conversion failed!";
|
||||
|
@ -211,7 +211,7 @@ static krb5_error_code kpasswd_set_password(struct kdc_server *kdc,
|
||||
CH_UTF16,
|
||||
clear_data.data,
|
||||
clear_data.length,
|
||||
(void **)&password.data,
|
||||
&password.data,
|
||||
&password.length);
|
||||
if (k_clear_data != NULL) {
|
||||
krb5_free_data(context, k_clear_data);
|
||||
@ -367,9 +367,9 @@ krb5_error_code kpasswd_handle_request(struct kdc_server *kdc,
|
||||
lpcfg_iconv_handle(kdc->task->lp_ctx),
|
||||
CH_UTF8,
|
||||
CH_UTF16,
|
||||
(const char *)decoded_data->data,
|
||||
decoded_data->data,
|
||||
decoded_data->length,
|
||||
(void **)&password.data,
|
||||
&password.data,
|
||||
&password.length);
|
||||
if (!ok) {
|
||||
*error_string = "String conversion failed!";
|
||||
|
Loading…
Reference in New Issue
Block a user