1
0
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:
Joseph Sutton 2023-08-09 16:54:38 +12:00 committed by Andrew Bartlett
parent 0a202264d3
commit 9fd501dfec
3 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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!";

View File

@ -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!";