{
*ds = (struct smb2_signing_derivations) { .signing = NULL, };
- if (protocol >= PROTOCOL_SMB3_10) {
+ if (protocol >= PROTOCOL_SMB3_11) {
struct smb2_signing_derivation *d = NULL;
SMB_ASSERT(preauth_hash.length != 0);
fixed = state->fixed;
SSVAL(fixed, 0, 9);
- if (smbXcli_conn_protocol(conn) >= PROTOCOL_SMB3_10) {
+ if (smbXcli_conn_protocol(conn) >= PROTOCOL_SMB3_11) {
SSVAL(fixed, 2, flags);
} else {
SSVAL(fixed, 2, 0); /* Reserved */
return;
}
- if (smbXcli_conn_protocol(state->conn) >= PROTOCOL_SMB3_10) {
+ if (smbXcli_conn_protocol(state->conn) >= PROTOCOL_SMB3_11) {
tevent_req_done(req);
return;
}
memset(buf+12, 0, 16); /* ClientGuid */
}
- if (state->conn->max_protocol >= PROTOCOL_SMB3_10) {
+ if (state->conn->max_protocol >= PROTOCOL_SMB3_11) {
const struct smb3_encryption_capabilities *client_ciphers =
&state->conn->smb2.client.smb3_capabilities.encryption;
NTSTATUS status;
}
conn->smb2.server.security_mode = SVAL(body, 2);
- if (conn->protocol >= PROTOCOL_SMB3_10) {
+ if (conn->protocol >= PROTOCOL_SMB3_11) {
negotiate_context_count = SVAL(body, 6);
}
conn->smb2.server.sign_algo = SMB2_SIGNING_HMAC_SHA256;
}
- if (conn->protocol < PROTOCOL_SMB3_10) {
+ if (conn->protocol < PROTOCOL_SMB3_11) {
TALLOC_FREE(subreq);
if (conn->smb2.server.capabilities & SMB2_CAP_ENCRYPTION) {
return NT_STATUS_INTERNAL_ERROR;
}
- if (session->conn->protocol < PROTOCOL_SMB3_10) {
+ if (session->conn->protocol < PROTOCOL_SMB3_11) {
return NT_STATUS_OK;
}
return NT_STATUS_INVALID_PARAMETER_MIX;
}
- if (conn->protocol >= PROTOCOL_SMB3_10) {
+ if (conn->protocol >= PROTOCOL_SMB3_11) {
preauth_hash = data_blob_const(session->smb2_channel.preauth_sha512,
sizeof(session->smb2_channel.preauth_sha512));
}
check_signature = true;
}
- if (conn->protocol >= PROTOCOL_SMB3_10) {
+ if (conn->protocol >= PROTOCOL_SMB3_11) {
check_signature = true;
}
return NT_STATUS_INVALID_PARAMETER_MIX;
}
- if (conn->protocol >= PROTOCOL_SMB3_10) {
+ if (conn->protocol >= PROTOCOL_SMB3_11) {
struct _derivation *d;
DATA_BLOB p;