mirror of
https://github.com/samba-team/samba.git
synced 2025-09-12 13:44:19 +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:
committed by
Andrew Bartlett
parent
0a202264d3
commit
9fd501dfec
@@ -2009,7 +2009,7 @@ static krb5_error_code samba_kdc_trust_message2entry(krb5_context context,
|
|||||||
CH_UTF16MUNGED, CH_UTF8,
|
CH_UTF16MUNGED, CH_UTF8,
|
||||||
password_utf16.data,
|
password_utf16.data,
|
||||||
password_utf16.length,
|
password_utf16.length,
|
||||||
(void *)&password_utf8.data,
|
&password_utf8.data,
|
||||||
&password_utf8.length);
|
&password_utf8.length);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
krb5_clear_error_message(context);
|
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),
|
lpcfg_iconv_handle(kdc->task->lp_ctx),
|
||||||
CH_UTF8,
|
CH_UTF8,
|
||||||
CH_UTF16,
|
CH_UTF16,
|
||||||
(const char *)chpw.newpasswd.data,
|
chpw.newpasswd.data,
|
||||||
chpw.newpasswd.length,
|
chpw.newpasswd.length,
|
||||||
(void **)&password.data,
|
&password.data,
|
||||||
&password.length);
|
&password.length);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
free_ChangePasswdDataMS(&chpw);
|
free_ChangePasswdDataMS(&chpw);
|
||||||
@@ -288,9 +288,9 @@ krb5_error_code kpasswd_handle_request(struct kdc_server *kdc,
|
|||||||
lpcfg_iconv_handle(kdc->task->lp_ctx),
|
lpcfg_iconv_handle(kdc->task->lp_ctx),
|
||||||
CH_UTF8,
|
CH_UTF8,
|
||||||
CH_UTF16,
|
CH_UTF16,
|
||||||
(const char *)decoded_data->data,
|
decoded_data->data,
|
||||||
decoded_data->length,
|
decoded_data->length,
|
||||||
(void **)&password.data,
|
&password.data,
|
||||||
&password.length);
|
&password.length);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
*error_string = "String conversion failed!";
|
*error_string = "String conversion failed!";
|
||||||
|
@@ -211,7 +211,7 @@ static krb5_error_code kpasswd_set_password(struct kdc_server *kdc,
|
|||||||
CH_UTF16,
|
CH_UTF16,
|
||||||
clear_data.data,
|
clear_data.data,
|
||||||
clear_data.length,
|
clear_data.length,
|
||||||
(void **)&password.data,
|
&password.data,
|
||||||
&password.length);
|
&password.length);
|
||||||
if (k_clear_data != NULL) {
|
if (k_clear_data != NULL) {
|
||||||
krb5_free_data(context, k_clear_data);
|
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),
|
lpcfg_iconv_handle(kdc->task->lp_ctx),
|
||||||
CH_UTF8,
|
CH_UTF8,
|
||||||
CH_UTF16,
|
CH_UTF16,
|
||||||
(const char *)decoded_data->data,
|
decoded_data->data,
|
||||||
decoded_data->length,
|
decoded_data->length,
|
||||||
(void **)&password.data,
|
&password.data,
|
||||||
&password.length);
|
&password.length);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
*error_string = "String conversion failed!";
|
*error_string = "String conversion failed!";
|
||||||
|
Reference in New Issue
Block a user