void reply_smb2002(struct smb_request *req, uint16_t choice);
void reply_smb20ff(struct smb_request *req, uint16_t choice);
-void smbd_smb2_first_negprot(struct smbd_server_connection *sconn,
+void smbd_smb2_first_negprot(struct smbXsrv_connection *xconn,
uint8_t *inbuf, size_t size);
DATA_BLOB smbd_smb2_generate_outbody(struct smbd_smb2_request *req, size_t size);
/* At this point we're not really using smb2,
* we make the decision here.. */
if (smbd_is_smb2_header(inbuf, nread)) {
- smbd_smb2_first_negprot(sconn, inbuf, nread);
+ smbd_smb2_first_negprot(xconn, inbuf, nread);
return;
} else if (nread >= smb_size && valid_smb_header(sconn, inbuf)
&& CVAL(inbuf, smb_com) != 0x72) {
req->outbuf = NULL;
- smbd_smb2_first_negprot(req->sconn, smb2_inbuf, len);
+ smbd_smb2_first_negprot(req->xconn, smb2_inbuf, len);
return;
}
return NT_STATUS_OK;
}
-void smbd_smb2_first_negprot(struct smbd_server_connection *sconn,
+void smbd_smb2_first_negprot(struct smbXsrv_connection *xconn,
uint8_t *inbuf, size_t size)
{
+ struct smbd_server_connection *sconn = xconn->sconn;
NTSTATUS status;
struct smbd_smb2_request *req = NULL;