pickling / unpickling self-relative (was: Re: Quick question on IDL)
Luke Kenneth Casson Leighton
lkcl at samba-tng.org
Wed Oct 17 12:20:22 GMT 2001
On Wed, Oct 17, 2001 at 10:04:32AM -0400, Tatsukawa, Seiichi wrote:
> > what i am hoping to do is do as you suggest on a _second_ pass,
> > using rpc_ss_register_node() to record the necessary information:
> > the address of the byte offset in the output stream for every
> > referent identifier, and replace with byte offset, also recorded
> > in the node table.
>
> So, it only works for the fixed buffer encoding. I'm sure that you can
> decode the buffer which you encoded with the modified marshalling engine.
> However, I still doubt that you can decode the buffer (self-relative
> structure) generated by Microsoft without hacking the unmarshalling engine
> because the order of the actual data (the representation of the pointer
> referent) does not follow the NDR rule.
having looked at this again, i agree with you.
i believe i was getting confused by the "wrapper" buffer
that ms created to contain the security descriptor as
a (void*, size_t) opaque blob.
luke
More information about the samba-technical
mailing list