smbd: Move ipc.c -> smb1_ipc.c Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
smbd: Move nt_status_np_pipe to smb2_ipc.c Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
libsmb: Remove "trans_oob()" macro It was just a 1:1 substitution for smb_buffer_oob() Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
source3: move lib/substitute.c functions out of proto.h BUG: https://bugzilla.samba.org/show_bug.cgi?id=14897 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" This reverts commit 894e5001c747ce765dad5517778dda55d7d1f4d9. See the discussion in https://lists.samba.org/archive/samba-technical/2018-December/131731.html for the reasoning behind this revert. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing In future this will an impersonation wrapper tevent_context based on the user session. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Convert all uses of uint8/16/32 to _t in source3/smbd. Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
s3:smbd: pass smbXsrv_connection to srv_send_smb() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
s3:smbd: use req->xconn in send_trans_reply() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
s3:smbd: move sconn->smb1.sessions.* to xconn->smb1.sessions.* This prepares the structures for multi-channel support. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
s3:smbd: take less than SMB_BUFFER_SIZE_MIN ('500') as header overhead in ipc.c We're now sure that sconn->smb1.sessions.max_send is >= SMB_BUFFER_SIZE_MIN. in order to garantee some progress we need to make sure our assumed header overhead is less than SMB_BUFFER_SIZE_MIN. Assuming 372 bytes for the SMBtrans headers should still be more than enough. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10422 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
s3:smbd: make use of smbXsrv_tcon for smb1 Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
s3:smbd: pass down vuid as uint64_t in ipc.c metze
s3:include: change files_struct->vuid to uint64_t metze
s3:smbd: use nt_status_np_pipe for smb1 metze
s3:smbd: add nt_status_np_pipe() This mapps between NT_STATUS_CONNECTION_* to NT_STATUS_PIPE_* metze
s3:smbd/pipes: avoid passing server_event_context() as event context to np_{read,write}_send metze
s3:smbd/ipc: pass 'state' as mem_ctx to np_read_send() metze
s3-talloc Change TALLOC_P() to talloc() Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
s3-talloc Change TALLOC_ARRAY() to talloc_array() Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.