mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
libcli:auth: Rename encode_or_decode_arc4_passwd_buffer()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14031 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
dea160820a
commit
89f8b028e2
@ -184,8 +184,8 @@ bool decode_pw_buffer(TALLOC_CTX *ctx,
|
||||
/***********************************************************
|
||||
Decode an arc4 encrypted password change buffer.
|
||||
************************************************************/
|
||||
NTSTATUS encode_or_decode_arc4_passwd_buffer(unsigned char pw_buf[532],
|
||||
const DATA_BLOB *psession_key);
|
||||
NTSTATUS decode_rc4_passwd_buffer(unsigned char pw_buf[532],
|
||||
const DATA_BLOB *psession_key);
|
||||
|
||||
/***********************************************************
|
||||
encode a password buffer with an already unicode password. The
|
||||
|
@ -843,8 +843,8 @@ bool decode_pw_buffer(TALLOC_CTX *ctx,
|
||||
Decode an arc4 encrypted password change buffer.
|
||||
************************************************************/
|
||||
|
||||
NTSTATUS encode_or_decode_arc4_passwd_buffer(unsigned char pw_buf[532],
|
||||
const DATA_BLOB *psession_key)
|
||||
NTSTATUS decode_rc4_passwd_buffer(unsigned char pw_buf[532],
|
||||
const DATA_BLOB *psession_key)
|
||||
{
|
||||
/* Confounder is last 16 bytes. */
|
||||
DATA_BLOB confounder = data_blob_const(&pw_buf[516], 16);
|
||||
|
@ -114,8 +114,7 @@ static void torture_decode_rc4_passwd_buffer(void **state)
|
||||
encrypted_test_blob,
|
||||
sizeof(out_pwd_buf.data));
|
||||
|
||||
status = encode_or_decode_arc4_passwd_buffer(out_pwd_buf.data,
|
||||
&session_key);
|
||||
status = decode_rc4_passwd_buffer(out_pwd_buf.data, &session_key);
|
||||
assert_true(NT_STATUS_IS_OK(status));
|
||||
|
||||
ok = decode_pw_buffer(NULL,
|
||||
@ -144,8 +143,7 @@ static void torture_rc4_passwd_buffer(void **state)
|
||||
&out_pwd_buf);
|
||||
assert_true(NT_STATUS_IS_OK(status));
|
||||
|
||||
status = encode_or_decode_arc4_passwd_buffer(out_pwd_buf.data,
|
||||
&session_key);
|
||||
status = decode_rc4_passwd_buffer(out_pwd_buf.data, &session_key);
|
||||
assert_true(NT_STATUS_IS_OK(status));
|
||||
|
||||
ok = decode_pw_buffer(NULL,
|
||||
|
@ -5185,7 +5185,7 @@ NTSTATUS _samr_SetUserInfo(struct pipes_struct *p,
|
||||
if(!NT_STATUS_IS_OK(status)) {
|
||||
break;
|
||||
}
|
||||
status = encode_or_decode_arc4_passwd_buffer(
|
||||
status = decode_rc4_passwd_buffer(
|
||||
info->info25.password.data,
|
||||
&session_key);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
@ -5204,7 +5204,7 @@ NTSTATUS _samr_SetUserInfo(struct pipes_struct *p,
|
||||
if(!NT_STATUS_IS_OK(status)) {
|
||||
break;
|
||||
}
|
||||
status = encode_or_decode_arc4_passwd_buffer(
|
||||
status = decode_rc4_passwd_buffer(
|
||||
info->info26.password.data,
|
||||
&session_key);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
|
Loading…
Reference in New Issue
Block a user