mirror of
https://github.com/samba-team/samba.git
synced 2025-12-07 20:23:50 +03:00
r1487: Remove unused parameter for the client-side signing functions.
Andrew Bartlett
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
3f73d19807
commit
6d594d5bb1
@@ -675,7 +675,7 @@ static NTSTATUS cli_session_setup_ntlmssp(struct cli_state *cli, const char *use
|
||||
for checking the first reply from the server */
|
||||
cli_calculate_sign_mac(cli);
|
||||
|
||||
if (!cli_check_sign_mac(cli, True)) {
|
||||
if (!cli_check_sign_mac(cli)) {
|
||||
nt_status = NT_STATUS_ACCESS_DENIED;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ BOOL cli_receive_smb(struct cli_state *cli)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (!cli_check_sign_mac(cli, True)) {
|
||||
if (!cli_check_sign_mac(cli)) {
|
||||
DEBUG(0, ("SMB Signature verification failed on incoming packet!\n"));
|
||||
cli->smb_rw_error = READ_BAD_SIG;
|
||||
close(cli->fd);
|
||||
|
||||
@@ -627,9 +627,9 @@ void cli_calculate_sign_mac(struct cli_state *cli)
|
||||
* which had a bad checksum, True otherwise.
|
||||
*/
|
||||
|
||||
BOOL cli_check_sign_mac(struct cli_state *cli, BOOL must_be_ok)
|
||||
BOOL cli_check_sign_mac(struct cli_state *cli)
|
||||
{
|
||||
if (!cli->sign_info.check_incoming_message(cli->inbuf, &cli->sign_info, must_be_ok)) {
|
||||
if (!cli->sign_info.check_incoming_message(cli->inbuf, &cli->sign_info, True)) {
|
||||
free_signing_context(&cli->sign_info);
|
||||
return False;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user