diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-04-09 09:54:26 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-04-09 09:54:26 +0000 |
commit | 42c18d52993cd7aaf3d8c0ef04e44404f72b3ce5 (patch) | |
tree | b1a1f2f8a307050239643c1fdf9df1ff06d76ebc /source3/rpc_parse | |
parent | d3b8ac6f96889c3dc9137a6b24f351e8df9c23cb (diff) | |
download | samba-42c18d52993cd7aaf3d8c0ef04e44404f72b3ce5.tar.gz samba-42c18d52993cd7aaf3d8c0ef04e44404f72b3ce5.tar.bz2 samba-42c18d52993cd7aaf3d8c0ef04e44404f72b3ce5.zip |
A little clarification in the rpc auth header struct.
Volker
(This used to be commit 36362c602ba03ae5e89956b16820d5dff580bee7)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_rpc.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/source3/rpc_parse/parse_rpc.c b/source3/rpc_parse/parse_rpc.c index baa70ae137..700ce8cfd6 100644 --- a/source3/rpc_parse/parse_rpc.c +++ b/source3/rpc_parse/parse_rpc.c @@ -607,15 +607,15 @@ BOOL rpc_hdr_auth_chk(RPC_HDR_AUTH *rai) void init_rpc_hdr_auth(RPC_HDR_AUTH *rai, uint8 auth_type, uint8 auth_level, - uint8 stub_type_len, + uint8 padding, uint32 ptr) { rai->auth_type = auth_type; /* nt lm ssp 0x0a */ rai->auth_level = auth_level; /* 0x06 */ - rai->stub_type_len = stub_type_len; /* 0x00 */ - rai->padding = 0; /* padding 0x00 */ + rai->padding = padding; + rai->reserved = 0; - rai->unknown = ptr; /* non-zero pointer to something */ + rai->auth_context = ptr; /* non-zero pointer to something */ } /******************************************************************* @@ -637,12 +637,11 @@ BOOL smb_io_rpc_hdr_auth(const char *desc, RPC_HDR_AUTH *rai, prs_struct *ps, in return False; if(!prs_uint8 ("auth_level ", ps, depth, &rai->auth_level)) /* 0x06 */ return False; - if(!prs_uint8 ("stub_type_len", ps, depth, &rai->stub_type_len)) - return False; if(!prs_uint8 ("padding ", ps, depth, &rai->padding)) return False; - - if(!prs_uint32("unknown ", ps, depth, &rai->unknown)) /* 0x0014a0c0 */ + if(!prs_uint8 ("reserved ", ps, depth, &rai->reserved)) + return False; + if(!prs_uint32("auth_context ", ps, depth, &rai->auth_context)) return False; return True; |