mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
libcli/smb: add smb2cli_session_require_signed_response()
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13661 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
b86c94f0b9
commit
d407201d9b
@ -161,6 +161,7 @@ struct smb2cli_session {
|
||||
uint64_t nonce_low;
|
||||
uint16_t channel_sequence;
|
||||
bool replay_active;
|
||||
bool require_signed_response;
|
||||
};
|
||||
|
||||
struct smbXcli_session {
|
||||
@ -5719,6 +5720,12 @@ void smb2cli_session_stop_replay(struct smbXcli_session *session)
|
||||
session->smb2->replay_active = false;
|
||||
}
|
||||
|
||||
void smb2cli_session_require_signed_response(struct smbXcli_session *session,
|
||||
bool require_signed_response)
|
||||
{
|
||||
session->smb2->require_signed_response = require_signed_response;
|
||||
}
|
||||
|
||||
NTSTATUS smb2cli_session_update_preauth(struct smbXcli_session *session,
|
||||
const struct iovec *iov)
|
||||
{
|
||||
|
@ -492,6 +492,8 @@ uint16_t smb2cli_session_reset_channel_sequence(struct smbXcli_session *session,
|
||||
uint16_t smb2cli_session_current_channel_sequence(struct smbXcli_session *session);
|
||||
void smb2cli_session_start_replay(struct smbXcli_session *session);
|
||||
void smb2cli_session_stop_replay(struct smbXcli_session *session);
|
||||
void smb2cli_session_require_signed_response(struct smbXcli_session *session,
|
||||
bool require_signed_response);
|
||||
NTSTATUS smb2cli_session_update_preauth(struct smbXcli_session *session,
|
||||
const struct iovec *iov);
|
||||
NTSTATUS smb2cli_session_set_session_key(struct smbXcli_session *session,
|
||||
|
Loading…
Reference in New Issue
Block a user