rpc: Add tstream_u32_read
authorVolker Lendecke <vl@samba.org>
Thu, 21 Mar 2019 18:41:28 +0000 (19:41 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 5 Apr 2019 00:00:10 +0000 (00:00 +0000)
commit05c358759ca86a585c98edec4b80ee6589525a28
tree41c9adff37fe20fb5c0b354c6fa1934023915510
parent15afc4fb18f937bf4f7008b161a29256cd8660ea
rpc: Add tstream_u32_read

In npa_tstream.c we have two next_vector functions reading a big
endian uin32_t length and then the blob described by the length. This
factors that next_vector out into a central routine.

Why? I'll add another NPA protocol in the future, and this would add
yet another two copies of that next_vector code

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/named_pipe_auth/tstream_u32_read.c [new file with mode: 0644]
libcli/named_pipe_auth/tstream_u32_read.h [new file with mode: 0644]
libcli/named_pipe_auth/wscript_build