• Home
  • Raw
  • Download

Lines Matching refs:cifs_pdu

148 	struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base;  in cifs_sign_rqst()  local
154 if ((cifs_pdu == NULL) || (server == NULL)) in cifs_sign_rqst()
157 if (!(cifs_pdu->Flags2 & SMBFLG2_SECURITY_SIGNATURE) || in cifs_sign_rqst()
162 memcpy(cifs_pdu->Signature.SecuritySignature, "BSRSPYL", 8); in cifs_sign_rqst()
166 cifs_pdu->Signature.Sequence.SequenceNumber = in cifs_sign_rqst()
168 cifs_pdu->Signature.Sequence.Reserved = 0; in cifs_sign_rqst()
175 memset(cifs_pdu->Signature.SecuritySignature, 0, 8); in cifs_sign_rqst()
177 memcpy(cifs_pdu->Signature.SecuritySignature, smb_signature, 8); in cifs_sign_rqst()
192 int cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, in cifs_sign_smb() argument
197 iov[0].iov_base = cifs_pdu; in cifs_sign_smb()
199 iov[1].iov_base = (char *)cifs_pdu + 4; in cifs_sign_smb()
200 iov[1].iov_len = be32_to_cpu(cifs_pdu->smb_buf_length); in cifs_sign_smb()
213 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_verify_signature() local
219 if (cifs_pdu == NULL || server == NULL) in cifs_verify_signature()
225 if (cifs_pdu->Command == SMB_COM_LOCKING_ANDX) { in cifs_verify_signature()
227 (struct smb_com_lock_req *)cifs_pdu; in cifs_verify_signature()
236 if (memcmp(cifs_pdu->Signature.SecuritySignature, "BSRSPYL ", 8) == 0) in cifs_verify_signature()
238 cifs_pdu->Command); in cifs_verify_signature()
242 memcpy(server_response_sig, cifs_pdu->Signature.SecuritySignature, 8); in cifs_verify_signature()
244 cifs_pdu->Signature.Sequence.SequenceNumber = in cifs_verify_signature()
246 cifs_pdu->Signature.Sequence.Reserved = 0; in cifs_verify_signature()