*pexpected_response_sequence_number = ses->sequence_number++; ses->sequence_number++; 
*pexpected_response_sequence_number = server->sequence_number++; server->sequence_number++; 
int cifs_sign_smb(struct smb_hdr * cifs_pdu, struct cifsSesInfo * ses,	__u32 * pexpected_response_sequence_number){	int rc = 0;	char smb_signature[20];	/* BB remember to initialize sequence number elsewhere and initialize mac_signing key elsewhere BB */	/* BB remember to add code to save expected sequence number in midQ entry BB */	if((cifs_pdu == NULL) || (ses == NULL))		return -EINVAL;	if((cifs_pdu->Flags2 & SMBFLG2_SECURITY_SIGNATURE) == 0) 		return rc;	spin_lock(&GlobalMid_Lock);	cifs_pdu->Signature.Sequence.SequenceNumber = cpu_to_le32(ses->sequence_number);	cifs_pdu->Signature.Sequence.Reserved = 0;		*pexpected_response_sequence_number = ses->sequence_number++;	ses->sequence_number++;	spin_unlock(&GlobalMid_Lock);	rc = cifs_calculate_signature(cifs_pdu, ses->mac_signing_key,smb_signature);	if(rc)		memset(cifs_pdu->Signature.SecuritySignature, 0, 8);	else		memcpy(cifs_pdu->Signature.SecuritySignature, smb_signature, 8);	return rc;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ad009ac96509e005d9978d0ae9e9ec4d63ad2990/cifsencrypt.c/buggy/fs/cifs/cifsencrypt.c