Simo Sorce
f0626d14f0
s3-dcerpc: Stop using hand marshalling in rpc_finish_auth3_bind_send()
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:16 +02:00
Simo Sorce
7d9c62c646
s3-dcerpc: Do not parse the packet twice.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:16 +02:00
Simo Sorce
282db1f5d2
s3-dcerpc: Remove unused function
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:16 +02:00
Simo Sorce
137743fac2
s3-dcerpc: Do not reparse the header
...
Instead pass back and use the packet we have already parsed.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:15 +02:00
Simo Sorce
459c8e32fd
s3-dcerpc: Pull the whole packet at once instead of fetching just the header
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:15 +02:00
Simo Sorce
602e10f3fd
s3-dcerpc: Delay parsing rpc header in client code
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:15 +02:00
Simo Sorce
87605e2030
s3-dcerpc: fix dcerpc_push_ncacn_packet, pass arg by address
...
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-13 14:44:11 +02:00
Simo Sorce
77699c777e
sr-dcerpc: add dcerpc_push_ncacn_packet_header()
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:10 +02:00
Simo Sorce
cf664b73a4
s3-dcerpc: Use dcerpc_set_frag_length()
...
Automatically calculate the fragment length where possible.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:09 +02:00
Simo Sorce
25d487bebf
s3-dcerpc: Fix ntlmssp sign/seal.
...
Header calculation was misplaced.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 01:35:16 +02:00
Simo Sorce
6555307aa1
s3-dceprc: Fix auth_length in auth3 response
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 01:35:05 +02:00
Simo Sorce
1b51ddd370
s3-dcerpc: Fix miscalculation of buffer start address
...
This was breaking schannel
2010-07-12 15:10:45 -04:00
Simo Sorce
1796767a36
s3-dcerpc: make dcerpc_pull_dcerpc_auth() public
2010-07-08 18:38:56 -04:00
Simo Sorce
a054832f4f
s3-dcerpc: make dceprc_push_dcerpc_auth public
2010-07-08 18:38:56 -04:00
Simo Sorce
aca60c29e7
s3-dcerpc: use dcerpc_pull_dcerpc_auth() in rpc_finish_spnego_ntlmssp_bind_send()
2010-07-08 18:38:55 -04:00
Simo Sorce
5591135964
s3-dcerpc: use dcerpc_push_dcerpc_auth in add_schannel_auth_footer()
2010-07-08 18:38:55 -04:00
Simo Sorce
1febe9de6b
s3-dcerpc: use dcerpc_push_dcerpc_auth() in add_ntlmssp_auth_footer()
2010-07-08 18:38:55 -04:00
Simo Sorce
c609e84170
s3-dcerpc: use dcerpc_pull_dcerpc_auth() in cli_pipe_verify_schannel()
2010-07-08 18:38:55 -04:00
Simo Sorce
91cb2aed54
s3-dcerpc: use dcerpc_push_ncacn_packet() in create_rpc_bind_auth3()
2010-07-08 18:38:55 -04:00
Jeremy Allison
7e134f179f
Change one more use of "struct rpc_hdr_info" -> "struct ncacn_packet_header"
...
Jeremy
2010-07-08 15:18:30 -07:00
Günther Deschner
d57ecf920c
s3-dcerpc: use dcerpc_pull_ncacn_packet() for rpc_pipe_bind_step_one_done().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08 00:56:16 -04:00
Günther Deschner
5351a8919d
s3-dcerpc: use dcerpc_push_ncacn_packet() in push_next_frag().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08 00:53:10 -04:00
Günther Deschner
e8e2fa586b
s3-dcerpc: use dcerpc_pull_ncacn_packet() in cli_pipe_validate_current_pdu().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08 00:53:01 -04:00
Günther Deschner
dbeaa5efc7
s3-dcerpc: use dcerpc_pull_dcerpc_auth() in cli_pipe_verify_ntlmssp().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08 00:52:38 -04:00
Günther Deschner
49c5293492
s3-dcerpc: add dcerpc_pull_dcerpc_auth().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08 00:52:34 -04:00
Günther Deschner
fe9ce4b60c
s3-dcerpc: use struct ncacn_packet_header instead of struct rpc_hdr_info.
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08 00:47:53 -04:00
Günther Deschner
77e3fffd09
s3-dcerpc: add dcerpc_pull_ncacn_packet_header().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08 00:29:33 -04:00
Günther Deschner
eeb034e72a
s3-dcerpc: use dcerpc_push_dcerpc_auth() for all authenticated binds.
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:51 -04:00
Günther Deschner
4b56e6e95b
s3-dcerpc: add dcerpc_push_schannel_bind().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:51 -04:00
Günther Deschner
0f02dda915
s3-dcerpc: add dcerpc_push_dcerpc_auth().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:51 -04:00
Günther Deschner
5aabd9af8e
s3-dcerpc: use dcerpc_push_ncacn_packet() for create_bind_or_alt_ctx_internal().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:51 -04:00
Günther Deschner
d6de820480
s3-dcerpc: use dcerpc_pull_ncacn_packet() for pulling a RPC fault pdu.
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:50 -04:00
Günther Deschner
cb9eddb312
s3-dcerpc: add dcerpc_pull_ncacn_packet().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:50 -04:00
Günther Deschner
3d9a12dca7
s3-dcerpc: add dcerpc_push_ncacn_packet().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:50 -04:00
Andreas Schneider
30d25210a9
s3-rpc_client: Use the right memory context for array elements.
2010-07-05 15:59:05 +02:00
Volker Lendecke
dee72d807f
s3: Remove an unreachable line of code
2010-06-21 15:03:59 +02:00
Jeremy Allison
2e8c563961
Second part of fix converting prs_XX struct and functions to talloc. Remove unneeded prs_mem_free calls.
...
Jeremy.
Signed-off-by: Simo Sorce <idra@samba.org>
2010-06-18 07:42:05 -04:00
Jeremy Allison
f4e7d9d38e
Convert the prs_XXX struct and functions to use talloc instead of malloc. Passes valgrind and make tests for client and server. Second version of this patch after splitting up at Simo's request. Patch to follow will delete extraneous prs_mem_free() calls.
...
Jeremy.
Signed-off-by: Simo Sorce <idra@samba.org>
2010-06-18 07:41:47 -04:00
Günther Deschner
30a9ddccff
s3-spoolss: add and use spoolss_printerinfo2_to_setprinterinfo2().
...
This fixes some invalid typecasts.
Guenther
2010-06-03 16:32:49 +02:00
Günther Deschner
84a8f0451d
s3-build: only include generated spoolss headers (not ndr headers).
...
Guenther
2010-06-03 11:00:27 +02:00
Andrew Bartlett
d6fa371b92
s3:ntlmssp Use a TALLOC_CTX for ntlmssp_sign_packet() and ntlmssp_seal_packet()
...
This ensures the results can't be easily left to leak.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-31 15:11:27 +02:00
Andrew Bartlett
ebae21f023
ntlmssp: Make the ntlmssp.h from source3/ a common header
...
The code is not yet in common, but I hope to fix that soon.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-31 15:10:56 +02:00
Günther Deschner
30eeb1e3d9
s3-rpc_client: move protos to init_netlogon.h
...
Guenther
2010-05-28 02:49:36 +02:00
Andrew Bartlett
cba7f8b827
s3:dom_sid Global replace of DOM_SID with struct dom_sid
...
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Günther Deschner
8478770c35
s3-rpc_client: move protos to init_samr.h
...
Guenther
2010-05-18 21:42:57 +02:00
Günther Deschner
5a6f3a0666
s3-rpc_client: move protos to init_spoolss.h
...
Guenther
2010-05-18 21:42:48 +02:00
Günther Deschner
cc06133b0a
s3-rpc_client: move protos to cli_spoolss.h
...
Guenther
2010-05-18 21:42:45 +02:00
Günther Deschner
230b880d14
s3-rpc_client: move protos to cli_lsarpc.h
...
Guenther
2010-05-18 21:42:41 +02:00
Günther Deschner
5ed3654112
s3-rpc_client: move protos to cli_netlogon.h
...
Guenther
2010-05-18 21:42:37 +02:00
Günther Deschner
3f2719c202
s3-rpc_client: move protos to cli_samr.h
...
Guenther
2010-05-18 21:42:32 +02:00