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()
662 SESSION_SETUP_ANDX *pSMB; in sess_auth_lanman() local
675 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_lanman()
677 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_lanman()
679 pSMB->req.hdr.Flags2 &= ~SMBFLG2_UNICODE; in sess_auth_lanman()
683 pSMB->old_req.PasswordLength = cpu_to_le16(CIFS_AUTH_RESP_SIZE); in sess_auth_lanman()
697 pSMB->old_req.PasswordLength = 0; in sess_auth_lanman()
718 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_lanman()
728 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_lanman()
767 SESSION_SETUP_ANDX *pSMB; in sess_auth_ntlm() local
779 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
781 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_ntlm()
783 pSMB->req_no_secext.Capabilities = cpu_to_le32(capabilities); in sess_auth_ntlm()
785 pSMB->req_no_secext.CaseInsensitivePasswordLength = in sess_auth_ntlm()
787 pSMB->req_no_secext.CaseSensitivePasswordLength = in sess_auth_ntlm()
806 pSMB->req_no_secext.CaseInsensitivePasswordLength = 0; in sess_auth_ntlm()
807 pSMB->req_no_secext.CaseSensitivePasswordLength = 0; in sess_auth_ntlm()
829 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
838 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_ntlm()
877 SESSION_SETUP_ANDX *pSMB; in sess_auth_ntlmv2() local
889 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
891 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_ntlmv2()
893 pSMB->req_no_secext.Capabilities = cpu_to_le32(capabilities); in sess_auth_ntlmv2()
896 pSMB->req_no_secext.CaseInsensitivePasswordLength = 0; in sess_auth_ntlmv2()
913 pSMB->req_no_secext.CaseSensitivePasswordLength = in sess_auth_ntlmv2()
916 pSMB->req_no_secext.CaseSensitivePasswordLength = 0; in sess_auth_ntlmv2()
937 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
946 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_ntlmv2()
986 SESSION_SETUP_ANDX *pSMB; in sess_auth_kerberos() local
1001 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1003 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_kerberos()
1035 pSMB->req.hdr.Flags2 |= SMBFLG2_EXT_SEC; in sess_auth_kerberos()
1037 pSMB->req.Capabilities = cpu_to_le32(capabilities); in sess_auth_kerberos()
1040 pSMB->req.SecurityBlobLength = cpu_to_le16(sess_data->iov[1].iov_len); in sess_auth_kerberos()
1063 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1072 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_kerberos()
1081 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_kerberos()
1129 SESSION_SETUP_ANDX *pSMB; in _sess_auth_rawntlmssp_assemble_req() local
1134 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1135 smb_buf = (struct smb_hdr *)pSMB; in _sess_auth_rawntlmssp_assemble_req()
1137 capabilities = cifs_ssetup_hdr(ses, pSMB); in _sess_auth_rawntlmssp_assemble_req()
1138 if ((pSMB->req.hdr.Flags2 & SMBFLG2_UNICODE) == 0) { in _sess_auth_rawntlmssp_assemble_req()
1143 pSMB->req.hdr.Flags2 |= SMBFLG2_EXT_SEC; in _sess_auth_rawntlmssp_assemble_req()
1145 pSMB->req.Capabilities |= cpu_to_le32(capabilities); in _sess_auth_rawntlmssp_assemble_req()
1169 SESSION_SETUP_ANDX *pSMB; in sess_auth_rawntlmssp_negotiate() local
1193 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1196 build_ntlmssp_negotiate_blob(pSMB->req.SecurityBlob, ses); in sess_auth_rawntlmssp_negotiate()
1198 sess_data->iov[1].iov_base = pSMB->req.SecurityBlob; in sess_auth_rawntlmssp_negotiate()
1199 pSMB->req.SecurityBlobLength = cpu_to_le16(sizeof(NEGOTIATE_MESSAGE)); in sess_auth_rawntlmssp_negotiate()
1207 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1233 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_rawntlmssp_negotiate()
1265 SESSION_SETUP_ANDX *pSMB; in sess_auth_rawntlmssp_authenticate() local
1280 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1281 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
1300 pSMB->req.SecurityBlobLength = cpu_to_le16(blob_len); in sess_auth_rawntlmssp_authenticate()
1316 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1324 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_rawntlmssp_authenticate()
1334 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_rawntlmssp_authenticate()