summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_pipe.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-23s3-dcerpc: remove auth_data_free_funcSimo Sorce1-11/+2
Everything is using a talloc pointer now, no need to have an accessor function to free data anymore. Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcerpc: make auth context opaqueSimo Sorce1-53/+57
This way we always double check in advance that the context is of the right type with talloc_get_type_abort instead of potentially accessing random memory by addressing the wrong structure in the union. Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23srv_pipe: reorganize code so that related functions are close to each otherSimo Sorce1-253/+252
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcerpc: finally remove the legaqcy spnego_type variable from pipe_auth_dataSimo Sorce1-4/+2
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcerpc: use new spnego server codeSimo Sorce1-200/+122
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcesrv: use gssapi helper in srv_pipe.cSimo Sorce1-223/+46
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcesrv: use ntlmssp helper in srv_pipe.cSimo Sorce1-204/+173
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23gssapi: remove unused function argumentSimo Sorce1-4/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23gssapi: avoid explicit dependency on dcerpc specific structuresSimo Sorce1-2/+4
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcerpc: move crypto stuff in /librpc/cryptoSimo Sorce1-1/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30s3-dcerpc: Implement DCERPC_AUTH_TYPE_KRB5 server sideSimo Sorce1-29/+364
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-26s3-dcerpc: only include rpc_dce.h where needed.Günther Deschner1-0/+1
Guenther
2010-08-17s3-dcerpc: Remove unused functionSimo Sorce1-18/+0
2010-08-17s3-dcerpc: make a few local functions as staticSimo Sorce1-4/+7
2010-08-08s3:rpc_server: fix valgrind warningStefan Metzmacher1-0/+1
metze
2010-08-03s3-dcerpc: fix some uninitialized variables build warnings.Günther Deschner1-1/+1
Guenther
2010-07-30s3-dcerpc: Use dcerpc_guess_sizes in the server code too.Simo Sorce1-95/+38
2010-07-30s3-dcerpc: rationalize packet creation in the server codeSimo Sorce1-86/+80
Move all related functions into create_next_packet, but make it transport neutral (not pass in pipse_struct)
2010-07-28s3-dcerpc: Use dcerpc_AuthType in pipe_auth_dataSimo Sorce1-22/+25
2010-07-28s3-dcerpc: Set flags directly instead of calling unimplemented functions.Simo Sorce1-4/+19
2010-07-28s3-dcerpc: Make dcerpc_check_auth() common codeSimo Sorce1-160/+0
2010-07-28s3-dcerpc: Add the same paranoia checks we have in the client codeSimo Sorce1-0/+12
2010-07-28s3-dcerpc: Split auth checking into a generic function.Simo Sorce1-26/+55
2010-07-28s3-dcerpc do not pass pipes_struct to dcesrv_auth_request()Simo Sorce1-26/+28
2010-07-28s3-dcerpc: Make dcesrv_auth_request() return NTSTATUS codesSimo Sorce1-18/+24
2010-07-28s3-dcerpc: Use the common dcerpc_add_auth_footer() in the server codeSimo Sorce1-192/+37
2010-07-28s3-rpc_pipe: Use struct pipes_struct.Andreas Schneider1-24/+25
2010-07-21s3-rpc_server: Cleanup the way we free pipe auth dataSimo Sorce1-10/+13
2010-07-21s3-dcerpc: Fix potential memleakSimo Sorce1-1/+6
Use a free function for schannel data too for now.
2010-07-21s3-dcerpc: Properly initialize output buffers on nak/faultSimo Sorce1-2/+4
2010-07-20Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL ↵Jeremy Allison1-10/+4
contexts. Jeremy.
2010-07-20Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduceJeremy Allison1-1/+2
use of malloc, and data_blob(). Jeremy.
2010-07-20s3-auth: Move auth_ntlmssp wrappers in their own fileSimo Sorce1-0/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20s3-auth: Refactor and rename auth_ntlmssp_server_info()Simo Sorce1-1/+1
Rename it to auth_ntlmssp_steal_server_info() to make it clear that the server_info struct is stolen from the auth_ntlmssp_state structure. Use talloc_move instead of manual steal&clear Add comments to explain what is going on. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19Remove parse_negTokenTarg(), as it's actually incorrect. We're processingJeremy Allison1-1/+1
negTokenInit's here. Use common code in spnego_parse_negTokenInit(). Jeremy.
2010-07-19s3-auth: Use talloc hierarchies to properly free auth_ntlmssp_state contextsSimo Sorce1-6/+1
Turn auth_ntlmssp_end into a destructor and attach it to auth_ntlmssp_state. Remote auth_ntlmssp_end and use TALLOC_FREE in the callers. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-17s3-dcerpc: Move mere processing functions from srv_pipe_hnd.c to srv_pipe.cSimo Sorce1-0/+465
2010-07-16s3-dcerpc: rename SCHANNEL_SIG_SIZE to NL_AUTH_SIGNATURE_SIZE and move to IDL.Günther Deschner1-1/+1
Guenther
2010-07-16s3-dcerpc: Fix ability to receive Big Endian PDUsSimo Sorce1-3/+3
2010-07-16s3-dcerpc: Use a local function to dump pdu regionsSimo Sorce1-5/+49
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Use DATA_BLOB for pipes_struct input dataSimo Sorce1-12/+7
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dceprc: Use IDL defined constants for length calculationsSimo Sorce1-9/+9
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Padding is never done on a DCERPC_PKT_BIND_ACK packet.Simo Sorce1-24/+2
Empirically verified against Windows. It never pads the auth credentials on this packet type. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: consolidate respones packet creation codeSimo Sorce1-448/+231
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Convert frag from prs_struct to a simple DATA_BLOBSimo Sorce1-199/+123
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Convert rdata from prs_struct to a simple DATA_BLOBSimo Sorce1-19/+19
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Stop using hand marshalling in create_next_pdu_noauth()Simo Sorce1-24/+14
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Stop using hand marshalling in create_next_pdu_schannel()Simo Sorce1-87/+81
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Stop using hand marshalling in create_next_pdu_ntlmssp()Simo Sorce1-38/+38
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-14s3:auth Change auth_ntlmssp_server_info API to return NTSTATUSAndrew Bartlett1-3/+4
This fixes a bug where register_existing_vuid() could be called with a NULL server_info if the alloction failed. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>