struct smb2_negotiate_context *in_preauth = NULL;
struct smb2_negotiate_context *in_cipher = NULL;
struct smb2_negotiate_context *in_sign_algo = NULL;
- struct smb2_negotiate_context *in_netname = NULL;
struct smb2_negotiate_contexts out_c = { .num_contexts = 0, };
struct smb2_negotiate_context *in_posix = NULL;
const struct smb311_capabilities default_smb3_capabilities =
SMB2_ENCRYPTION_CAPABILITIES);
in_sign_algo = smb2_negotiate_context_find(&in_c,
SMB2_SIGNING_CAPABILITIES);
- in_netname = smb2_negotiate_context_find(&in_c,
- SMB2_NETNAME_NEGOTIATE_CONTEXT_ID);
/* negprot_spnego() returns a the server guid in the first 16 bytes */
negprot_spnego_blob = negprot_spnego(req, xconn);
return smbd_smb2_request_error(req, status);
}
- if (in_netname != NULL) {
- size_t needed = 2;
-
- if (in_sign_algo->data.length < needed) {
- return smbd_smb2_request_error(req,
- NT_STATUS_INVALID_PARAMETER);
- }
-
- // TODO convert to UTF8 and call set_local_machine_name(...
- }
-
if (protocol >= PROTOCOL_SMB3_00 &&
xconn->client->server_multi_channel_enabled)
{