a fairly major upgrade to the dcerpc system
authorAndrew Tridgell <tridge@samba.org>
Sat, 22 Nov 2003 08:11:32 +0000 (08:11 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 22 Nov 2003 08:11:32 +0000 (08:11 +0000)
commit8ecf720206a2eef3f8ea7cbdb1f460664a5dba9a
treea100b0090fc5d9243e38fd28b1ced224499e5b2b
parent4e174564ae4e8f84053d23ac2d40a59926f7e9e3
a fairly major upgrade to the dcerpc system

 * added a NDR validator. The way it works is that when the
   DCERPC_DEBUG_VALIDATE_* flags are set the dcerpc system will
   perform NDR buffer validation. On sending a request the packet is
   first marshalled, then unmarahslled, then marshalled again, and it is
   confirmed that the two marshalling results are idential. This
   ensures that our pull and push routines are absolutely in sync, so
   that we can be very confident that if a routine works in the client
   then the corresponding routine must work on the server side. A
   similar validation is performed on all replies.

 * a result of this change is that pidl is fussier about the [ref]
   tag. You can only use it on pointers (which is the only place it
   makes sense)

 * fixed a basic alignment bug in the push side of the NDR code

 * added server side pull/push support. Our dcerpc system is now fully
   ready to be used on the server side.

 * fixed the relative offset pointer list. It must be traversed in
   reverse order on push

 * added automatic value setting for the size parameter in outgoing
   SdBuf structures.

 * expanded the ndr debugging code to always give a message on any
   failure

 * fixed the subcontext push code

 * fixed some memory leaks in smbtorture RPC tests
20 files changed:
source/build/pidl/client.pm
source/build/pidl/parser.pm
source/librpc/idl/samr.idl
source/librpc/ndr/libndr.h
source/librpc/ndr/ndr.c
source/librpc/ndr/ndr_basic.c
source/librpc/ndr/ndr_sec.c
source/librpc/rpc/dcerpc.c
source/librpc/rpc/dcerpc.h
source/torture/rpc/atsvc.c
source/torture/rpc/dfs.c
source/torture/rpc/echo.c
source/torture/rpc/epmapper.c
source/torture/rpc/eventlog.c
source/torture/rpc/lsa.c
source/torture/rpc/samr.c
source/torture/rpc/spoolss.c
source/torture/rpc/srvsvc.c
source/torture/rpc/winreg.c
source/torture/rpc/wkssvc.c