Lines Matching refs:pSMB

35 static __u32 cifs_ssetup_hdr(struct cifs_ses *ses, SESSION_SETUP_ANDX *pSMB)  in cifs_ssetup_hdr()  argument
44 pSMB->req.AndXCommand = 0xFF; in cifs_ssetup_hdr()
45 pSMB->req.MaxBufferSize = cpu_to_le16(min_t(u32, in cifs_ssetup_hdr()
48 pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq); in cifs_ssetup_hdr()
49 pSMB->req.VcNumber = cpu_to_le16(1); in cifs_ssetup_hdr()
60 pSMB->req.hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; in cifs_ssetup_hdr()
63 pSMB->req.hdr.Flags2 |= SMBFLG2_UNICODE; in cifs_ssetup_hdr()
67 pSMB->req.hdr.Flags2 |= SMBFLG2_ERR_STATUS; in cifs_ssetup_hdr()
71 pSMB->req.hdr.Flags2 |= SMBFLG2_DFS; in cifs_ssetup_hdr()
689 SESSION_SETUP_ANDX *pSMB; in sess_auth_lanman() local
702 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_lanman()
704 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_lanman()
706 pSMB->req.hdr.Flags2 &= ~SMBFLG2_UNICODE; in sess_auth_lanman()
710 pSMB->old_req.PasswordLength = cpu_to_le16(CIFS_AUTH_RESP_SIZE); in sess_auth_lanman()
726 pSMB->old_req.PasswordLength = 0; in sess_auth_lanman()
747 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_lanman()
757 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_lanman()
796 SESSION_SETUP_ANDX *pSMB; in sess_auth_ntlm() local
808 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
810 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_ntlm()
812 pSMB->req_no_secext.Capabilities = cpu_to_le32(capabilities); in sess_auth_ntlm()
814 pSMB->req_no_secext.CaseInsensitivePasswordLength = in sess_auth_ntlm()
816 pSMB->req_no_secext.CaseSensitivePasswordLength = in sess_auth_ntlm()
835 pSMB->req_no_secext.CaseInsensitivePasswordLength = 0; in sess_auth_ntlm()
836 pSMB->req_no_secext.CaseSensitivePasswordLength = 0; in sess_auth_ntlm()
858 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
867 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_ntlm()
906 SESSION_SETUP_ANDX *pSMB; in sess_auth_ntlmv2() local
918 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
920 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_ntlmv2()
922 pSMB->req_no_secext.Capabilities = cpu_to_le32(capabilities); in sess_auth_ntlmv2()
925 pSMB->req_no_secext.CaseInsensitivePasswordLength = 0; in sess_auth_ntlmv2()
942 pSMB->req_no_secext.CaseSensitivePasswordLength = in sess_auth_ntlmv2()
945 pSMB->req_no_secext.CaseSensitivePasswordLength = 0; in sess_auth_ntlmv2()
966 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
975 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_ntlmv2()
1015 SESSION_SETUP_ANDX *pSMB; in sess_auth_kerberos() local
1030 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1032 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_kerberos()
1064 pSMB->req.hdr.Flags2 |= SMBFLG2_EXT_SEC; in sess_auth_kerberos()
1066 pSMB->req.Capabilities = cpu_to_le32(capabilities); in sess_auth_kerberos()
1069 pSMB->req.SecurityBlobLength = cpu_to_le16(sess_data->iov[1].iov_len); in sess_auth_kerberos()
1092 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1101 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_kerberos()
1110 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_kerberos()
1158 SESSION_SETUP_ANDX *pSMB; in _sess_auth_rawntlmssp_assemble_req() local
1163 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1164 smb_buf = (struct smb_hdr *)pSMB; in _sess_auth_rawntlmssp_assemble_req()
1166 capabilities = cifs_ssetup_hdr(ses, pSMB); in _sess_auth_rawntlmssp_assemble_req()
1167 if ((pSMB->req.hdr.Flags2 & SMBFLG2_UNICODE) == 0) { in _sess_auth_rawntlmssp_assemble_req()
1172 pSMB->req.hdr.Flags2 |= SMBFLG2_EXT_SEC; in _sess_auth_rawntlmssp_assemble_req()
1174 pSMB->req.Capabilities |= cpu_to_le32(capabilities); in _sess_auth_rawntlmssp_assemble_req()
1198 SESSION_SETUP_ANDX *pSMB; in sess_auth_rawntlmssp_negotiate() local
1222 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1225 build_ntlmssp_negotiate_blob(pSMB->req.SecurityBlob, ses); in sess_auth_rawntlmssp_negotiate()
1227 sess_data->iov[1].iov_base = pSMB->req.SecurityBlob; in sess_auth_rawntlmssp_negotiate()
1228 pSMB->req.SecurityBlobLength = cpu_to_le16(sizeof(NEGOTIATE_MESSAGE)); in sess_auth_rawntlmssp_negotiate()
1236 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1262 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_rawntlmssp_negotiate()
1294 SESSION_SETUP_ANDX *pSMB; in sess_auth_rawntlmssp_authenticate() local
1309 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1310 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
1317 pSMB->req.SecurityBlobLength = cpu_to_le16(blob_len); in sess_auth_rawntlmssp_authenticate()
1333 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1341 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_rawntlmssp_authenticate()
1351 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_rawntlmssp_authenticate()