summaryrefslogtreecommitdiff
path: root/source3/rpc_client
AgeCommit message (Collapse)AuthorFilesLines
2010-07-21cleaup: Reformat cli_get_session_key()Simo Sorce1-22/+21
merge cli_get_session_key
2010-07-20s3-libsmb: Use data_blob_talloc to get krb5 ticket and session keysSimo Sorce1-2/+4
2010-07-20Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL ↵Jeremy Allison1-4/+4
contexts. Jeremy.
2010-07-20Fix one more data_blob -> data_blob_talloc. Move away from implicit NULL ↵Jeremy Allison1-1/+3
context tallocs. Jeremy.
2010-07-20s3-dcerpc: Unifiy cli_pipe_auth_data and pipe_auth_dataSimo Sorce1-48/+56
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19Remove gen_negTokenInit() - change all callers to spnego_gen_negTokenInit().Jeremy Allison1-1/+2
We now have one function to do this in all calling code. More rationalization to follow. Jeremy.
2010-07-19s3-ntlmssp: Remove ntlmssp_end and let the talloc hierarchy handle it.Simo Sorce1-1/+1
All the members are children of ntlmssp_state anyway. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-18s3-rpc_client: Fixed a segfault in rpccli_samr_chng_pswd_auth_crap().Andreas Schneider1-4/+23
This fixes the WINBIND-WBCLIENT test. The test set old_lm_hash_enc_blob.length to 0 and we don't check the length here. So the memcpy segfaulted.
2010-07-17s3-dcerpc: Move common cli/srv functions into a common fileSimo Sorce1-214/+0
2010-07-17s3: Really fix the 64-bit warningsVolker Lendecke1-1/+1
Hmm. Forgot to git commit this piece, sorry :-(
2010-07-17s3: Fix some 64-bit warningsVolker Lendecke1-1/+3
2010-07-16s3-dcerpc: rename SCHANNEL_SIG_SIZE to NL_AUTH_SIGNATURE_SIZE and move to IDL.Günther Deschner1-2/+2
Guenther
2010-07-16s3-dcerpc: Fix ability to receive Big Endian PDUsSimo Sorce1-6/+6
2010-07-16s3-dcerpc: fix c++ warning.Günther Deschner1-1/+1
Guenther
2010-07-16s3-dcerpc: Use DATA_BLOB instead of prs_struct for req_dataSimo Sorce2-18/+10
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Use DATA_BLOB instead of prs_struct for rpc_outSimo Sorce1-122/+108
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Avoid unnecessary memory allocation for dcerpc_ctx_listSimo Sorce1-35/+7
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Use DATA_BLOB instead of prs_struct for reply_pduSimo Sorce2-85/+74
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Use DATA_BLOB instead of prs_struct for incoming fragmentsSimo Sorce1-169/+84
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Read a pdu in 2 steps, header first the payloadSimo Sorce1-18/+8
We can't really cope with receiving more data than expected anyway as there is code that checks if the size of the buffer is consistent with pkt->frag_length and throws an error if not. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dceprc: Use IDL defined constants for length calculationsSimo Sorce1-33/+38
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16Reformat and cleanupSimo Sorce1-75/+75
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Move common helpers into a common fileSimo Sorce1-145/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16dcerpc: remove ncacn_packet_header and related functionsSimo Sorce1-58/+0
ncacn_packet_header was an artifact and it is not necessary anymore Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Refactor code and stop using ncacn_packet_headerSimo Sorce1-202/+164
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: consolidate respones packet creation codeSimo Sorce1-3/+3
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Stop using hand marshalling in rpc_finish_auth3_bind_send()Simo Sorce1-15/+9
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Do not parse the packet twice.Simo Sorce1-17/+7
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Remove unused functionSimo Sorce1-36/+0
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Do not reparse the headerSimo Sorce1-26/+15
Instead pass back and use the packet we have already parsed. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Pull the whole packet at once instead of fetching just the headerSimo Sorce1-57/+68
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Delay parsing rpc header in client codeSimo Sorce1-19/+21
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: fix dcerpc_push_ncacn_packet, pass arg by addressSimo Sorce1-5/+5
There is no need to copy the whole structure twice by passing it in by value. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13sr-dcerpc: add dcerpc_push_ncacn_packet_header()Simo Sorce1-0/+36
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: Use dcerpc_set_frag_length()Simo Sorce1-13/+9
Automatically calculate the fragment length where possible. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: Fix ntlmssp sign/seal.Simo Sorce1-15/+29
Header calculation was misplaced. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dceprc: Fix auth_length in auth3 responseSimo Sorce1-3/+2
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-12s3-dcerpc: Fix miscalculation of buffer start addressSimo Sorce1-1/+3
This was breaking schannel
2010-07-08s3-dcerpc: make dcerpc_pull_dcerpc_auth() publicSimo Sorce1-3/+3
2010-07-08s3-dcerpc: make dceprc_push_dcerpc_auth publicSimo Sorce1-7/+8
2010-07-08s3-dcerpc: use dcerpc_pull_dcerpc_auth() in ↵Simo Sorce1-13/+12
rpc_finish_spnego_ntlmssp_bind_send()
2010-07-08s3-dcerpc: use dcerpc_push_dcerpc_auth in add_schannel_auth_footer()Simo Sorce1-17/+16
2010-07-08s3-dcerpc: use dcerpc_push_dcerpc_auth() in add_ntlmssp_auth_footer()Simo Sorce1-54/+48
2010-07-08s3-dcerpc: use dcerpc_pull_dcerpc_auth() in cli_pipe_verify_schannel()Simo Sorce1-7/+13
2010-07-08s3-dcerpc: use dcerpc_push_ncacn_packet() in create_rpc_bind_auth3()Simo Sorce1-35/+30
2010-07-08Change one more use of "struct rpc_hdr_info" -> "struct ncacn_packet_header"Jeremy Allison1-9/+7
Jeremy
2010-07-08s3-dcerpc: use dcerpc_pull_ncacn_packet() for rpc_pipe_bind_step_one_done().Günther Deschner1-39/+42
Guenther Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08s3-dcerpc: use dcerpc_push_ncacn_packet() in push_next_frag().Günther Deschner1-17/+20
Guenther Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08s3-dcerpc: use dcerpc_pull_ncacn_packet() in cli_pipe_validate_current_pdu().Günther Deschner1-6/+14
Guenther Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08s3-dcerpc: use dcerpc_pull_dcerpc_auth() in cli_pipe_verify_ntlmssp().Günther Deschner1-9/+13
Guenther Signed-off-by: Simo Sorce <idra@samba.org>