Lines Matching refs:pSMB

313 static __u32 cifs_ssetup_hdr(struct cifs_ses *ses, SESSION_SETUP_ANDX *pSMB)  in cifs_ssetup_hdr()  argument
322 pSMB->req.AndXCommand = 0xFF; in cifs_ssetup_hdr()
323 pSMB->req.MaxBufferSize = cpu_to_le16(min_t(u32, in cifs_ssetup_hdr()
326 pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq); in cifs_ssetup_hdr()
327 pSMB->req.VcNumber = cpu_to_le16(1); in cifs_ssetup_hdr()
338 pSMB->req.hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; in cifs_ssetup_hdr()
341 pSMB->req.hdr.Flags2 |= SMBFLG2_UNICODE; in cifs_ssetup_hdr()
345 pSMB->req.hdr.Flags2 |= SMBFLG2_ERR_STATUS; in cifs_ssetup_hdr()
349 pSMB->req.hdr.Flags2 |= SMBFLG2_DFS; in cifs_ssetup_hdr()
975 SESSION_SETUP_ANDX *pSMB; in sess_auth_lanman() local
987 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_lanman()
989 (void)cifs_ssetup_hdr(ses, pSMB); in sess_auth_lanman()
991 pSMB->req.hdr.Flags2 &= ~SMBFLG2_UNICODE; in sess_auth_lanman()
995 pSMB->old_req.PasswordLength = cpu_to_le16(CIFS_AUTH_RESP_SIZE); in sess_auth_lanman()
1011 pSMB->old_req.PasswordLength = 0; in sess_auth_lanman()
1032 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_lanman()
1042 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_lanman()
1081 SESSION_SETUP_ANDX *pSMB; in sess_auth_ntlm() local
1093 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
1095 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_ntlm()
1097 pSMB->req_no_secext.Capabilities = cpu_to_le32(capabilities); in sess_auth_ntlm()
1099 pSMB->req_no_secext.CaseInsensitivePasswordLength = in sess_auth_ntlm()
1101 pSMB->req_no_secext.CaseSensitivePasswordLength = in sess_auth_ntlm()
1120 pSMB->req_no_secext.CaseInsensitivePasswordLength = 0; in sess_auth_ntlm()
1121 pSMB->req_no_secext.CaseSensitivePasswordLength = 0; in sess_auth_ntlm()
1143 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
1152 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_ntlm()
1191 SESSION_SETUP_ANDX *pSMB; in sess_auth_ntlmv2() local
1203 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1205 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_ntlmv2()
1207 pSMB->req_no_secext.Capabilities = cpu_to_le32(capabilities); in sess_auth_ntlmv2()
1210 pSMB->req_no_secext.CaseInsensitivePasswordLength = 0; in sess_auth_ntlmv2()
1227 pSMB->req_no_secext.CaseSensitivePasswordLength = in sess_auth_ntlmv2()
1230 pSMB->req_no_secext.CaseSensitivePasswordLength = 0; in sess_auth_ntlmv2()
1251 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1260 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_ntlmv2()
1300 SESSION_SETUP_ANDX *pSMB; in sess_auth_kerberos() local
1315 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1317 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_kerberos()
1348 pSMB->req.hdr.Flags2 |= SMBFLG2_EXT_SEC; in sess_auth_kerberos()
1350 pSMB->req.Capabilities = cpu_to_le32(capabilities); in sess_auth_kerberos()
1353 pSMB->req.SecurityBlobLength = cpu_to_le16(sess_data->iov[1].iov_len); in sess_auth_kerberos()
1376 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1385 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_kerberos()
1394 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_kerberos()
1441 SESSION_SETUP_ANDX *pSMB; in _sess_auth_rawntlmssp_assemble_req() local
1446 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1448 capabilities = cifs_ssetup_hdr(ses, pSMB); in _sess_auth_rawntlmssp_assemble_req()
1449 if ((pSMB->req.hdr.Flags2 & SMBFLG2_UNICODE) == 0) { in _sess_auth_rawntlmssp_assemble_req()
1454 pSMB->req.hdr.Flags2 |= SMBFLG2_EXT_SEC; in _sess_auth_rawntlmssp_assemble_req()
1456 pSMB->req.Capabilities |= cpu_to_le32(capabilities); in _sess_auth_rawntlmssp_assemble_req()
1480 SESSION_SETUP_ANDX *pSMB; in sess_auth_rawntlmssp_negotiate() local
1504 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1507 build_ntlmssp_negotiate_blob(pSMB->req.SecurityBlob, ses); in sess_auth_rawntlmssp_negotiate()
1509 sess_data->iov[1].iov_base = pSMB->req.SecurityBlob; in sess_auth_rawntlmssp_negotiate()
1510 pSMB->req.SecurityBlobLength = cpu_to_le16(sizeof(NEGOTIATE_MESSAGE)); in sess_auth_rawntlmssp_negotiate()
1518 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1544 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_rawntlmssp_negotiate()
1576 SESSION_SETUP_ANDX *pSMB; in sess_auth_rawntlmssp_authenticate() local
1591 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1592 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
1599 pSMB->req.SecurityBlobLength = cpu_to_le16(blob_len); in sess_auth_rawntlmssp_authenticate()
1615 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1623 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_rawntlmssp_authenticate()
1633 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_rawntlmssp_authenticate()