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()
697 SESSION_SETUP_ANDX *pSMB; in sess_auth_lanman() local
709 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_lanman()
711 (void)cifs_ssetup_hdr(ses, pSMB); in sess_auth_lanman()
713 pSMB->req.hdr.Flags2 &= ~SMBFLG2_UNICODE; in sess_auth_lanman()
717 pSMB->old_req.PasswordLength = cpu_to_le16(CIFS_AUTH_RESP_SIZE); in sess_auth_lanman()
733 pSMB->old_req.PasswordLength = 0; in sess_auth_lanman()
754 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_lanman()
764 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_lanman()
803 SESSION_SETUP_ANDX *pSMB; in sess_auth_ntlm() local
815 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
817 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_ntlm()
819 pSMB->req_no_secext.Capabilities = cpu_to_le32(capabilities); in sess_auth_ntlm()
821 pSMB->req_no_secext.CaseInsensitivePasswordLength = in sess_auth_ntlm()
823 pSMB->req_no_secext.CaseSensitivePasswordLength = in sess_auth_ntlm()
842 pSMB->req_no_secext.CaseInsensitivePasswordLength = 0; in sess_auth_ntlm()
843 pSMB->req_no_secext.CaseSensitivePasswordLength = 0; in sess_auth_ntlm()
865 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
874 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_ntlm()
913 SESSION_SETUP_ANDX *pSMB; in sess_auth_ntlmv2() local
925 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
927 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_ntlmv2()
929 pSMB->req_no_secext.Capabilities = cpu_to_le32(capabilities); in sess_auth_ntlmv2()
932 pSMB->req_no_secext.CaseInsensitivePasswordLength = 0; in sess_auth_ntlmv2()
949 pSMB->req_no_secext.CaseSensitivePasswordLength = in sess_auth_ntlmv2()
952 pSMB->req_no_secext.CaseSensitivePasswordLength = 0; in sess_auth_ntlmv2()
973 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
982 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_ntlmv2()
1022 SESSION_SETUP_ANDX *pSMB; in sess_auth_kerberos() local
1037 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1039 capabilities = cifs_ssetup_hdr(ses, pSMB); in sess_auth_kerberos()
1071 pSMB->req.hdr.Flags2 |= SMBFLG2_EXT_SEC; in sess_auth_kerberos()
1073 pSMB->req.Capabilities = cpu_to_le32(capabilities); in sess_auth_kerberos()
1076 pSMB->req.SecurityBlobLength = cpu_to_le16(sess_data->iov[1].iov_len); in sess_auth_kerberos()
1099 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1108 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_kerberos()
1117 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_kerberos()
1164 SESSION_SETUP_ANDX *pSMB; in _sess_auth_rawntlmssp_assemble_req() local
1169 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1171 capabilities = cifs_ssetup_hdr(ses, pSMB); in _sess_auth_rawntlmssp_assemble_req()
1172 if ((pSMB->req.hdr.Flags2 & SMBFLG2_UNICODE) == 0) { in _sess_auth_rawntlmssp_assemble_req()
1177 pSMB->req.hdr.Flags2 |= SMBFLG2_EXT_SEC; in _sess_auth_rawntlmssp_assemble_req()
1179 pSMB->req.Capabilities |= cpu_to_le32(capabilities); in _sess_auth_rawntlmssp_assemble_req()
1203 SESSION_SETUP_ANDX *pSMB; in sess_auth_rawntlmssp_negotiate() local
1227 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1230 build_ntlmssp_negotiate_blob(pSMB->req.SecurityBlob, ses); in sess_auth_rawntlmssp_negotiate()
1232 sess_data->iov[1].iov_base = pSMB->req.SecurityBlob; in sess_auth_rawntlmssp_negotiate()
1233 pSMB->req.SecurityBlobLength = cpu_to_le16(sizeof(NEGOTIATE_MESSAGE)); in sess_auth_rawntlmssp_negotiate()
1241 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1267 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_rawntlmssp_negotiate()
1299 SESSION_SETUP_ANDX *pSMB; in sess_auth_rawntlmssp_authenticate() local
1314 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1315 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
1322 pSMB->req.SecurityBlobLength = cpu_to_le16(blob_len); in sess_auth_rawntlmssp_authenticate()
1338 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1346 if (le16_to_cpu(pSMB->resp.Action) & GUEST_LOGIN) in sess_auth_rawntlmssp_authenticate()
1356 blob_len = le16_to_cpu(pSMB->resp.SecurityBlobLength); in sess_auth_rawntlmssp_authenticate()