1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:smbd: replace PROTOCOL_SMB2_22 with PROTOCOL_SMB3_00

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher 2020-11-11 15:14:12 +01:00
parent ea102d3b1b
commit 1cd3394d70
3 changed files with 5 additions and 5 deletions

View File

@ -524,7 +524,7 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
xconn->smb2.server.cipher = SMB2_ENCRYPTION_AES128_CCM;
}
if (protocol >= PROTOCOL_SMB2_22 &&
if (protocol >= PROTOCOL_SMB3_00 &&
xconn->client->server_multi_channel_enabled)
{
if (in_capabilities & SMB2_CAP_MULTI_CHANNEL) {

View File

@ -2811,7 +2811,7 @@ static NTSTATUS smbd_smb2_request_dispatch_update_counts(
SMB_ASSERT(!req->request_counters_updated);
if (xconn->protocol < PROTOCOL_SMB2_22) {
if (xconn->protocol < PROTOCOL_SMB3_00) {
return NT_STATUS_OK;
}
@ -3047,7 +3047,7 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
if (opcode == SMB2_OP_CANCEL) {
allowed_flags |= SMB2_HDR_FLAG_ASYNC;
}
if (xconn->protocol >= PROTOCOL_SMB2_22) {
if (xconn->protocol >= PROTOCOL_SMB3_00) {
allowed_flags |= SMB2_HDR_FLAG_REPLAY_OPERATION;
}
if ((flags & ~allowed_flags) != 0) {
@ -3455,7 +3455,7 @@ static void smbd_smb2_request_reply_update_counts(struct smbd_smb2_request *req)
req->request_counters_updated = false;
if (xconn->protocol < PROTOCOL_SMB2_22) {
if (xconn->protocol < PROTOCOL_SMB3_00) {
return;
}

View File

@ -691,7 +691,7 @@ static struct tevent_req *smbd_smb2_session_setup_send(TALLOC_CTX *mem_ctx,
state->in_security_buffer = in_security_buffer;
if (in_flags & SMB2_SESSION_FLAG_BINDING) {
if (smb2req->xconn->protocol < PROTOCOL_SMB2_22) {
if (smb2req->xconn->protocol < PROTOCOL_SMB3_00) {
tevent_req_nterror(req, NT_STATUS_REQUEST_NOT_ACCEPTED);
return tevent_req_post(req, ev);
}