diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-10 12:42:45 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-10 12:42:45 +0000 |
commit | 657dc577b614f388b55bd52a16e8e014c72bf2db (patch) | |
tree | 50268c1c8a416538ac422e0f9fec8df63ea6b4e0 /source4/librpc/ndr/ndr_lsa.c | |
parent | 4659d4f9e2bfdbd253ff14e9181dd65023ff6c6a (diff) | |
download | samba-657dc577b614f388b55bd52a16e8e014c72bf2db.tar.gz samba-657dc577b614f388b55bd52a16e8e014c72bf2db.tar.bz2 samba-657dc577b614f388b55bd52a16e8e014c72bf2db.zip |
added idl and test code for lsa_LookupPrivName()
(This used to be commit c742227ec31cbf9b0093b5259095c9812b341d8d)
Diffstat (limited to 'source4/librpc/ndr/ndr_lsa.c')
-rw-r--r-- | source4/librpc/ndr/ndr_lsa.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/source4/librpc/ndr/ndr_lsa.c b/source4/librpc/ndr/ndr_lsa.c index 1b73482e9c..33596bf659 100644 --- a/source4/librpc/ndr/ndr_lsa.c +++ b/source4/librpc/ndr/ndr_lsa.c @@ -1127,14 +1127,27 @@ NTSTATUS ndr_pull_LOOKUPPRIVVALUE(struct ndr_pull *ndr, struct LOOKUPPRIVVALUE * return NT_STATUS_OK; } -NTSTATUS ndr_push_LOOKUPPRIVNAME(struct ndr_push *ndr, struct LOOKUPPRIVNAME *r) +NTSTATUS ndr_push_lsa_LookupPrivName(struct ndr_push *ndr, struct lsa_LookupPrivName *r) { + NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle)); + NDR_CHECK(ndr_push_uint32(ndr, r->in.luid_high)); + NDR_CHECK(ndr_push_uint32(ndr, r->in.luid_low)); return NT_STATUS_OK; } -NTSTATUS ndr_pull_LOOKUPPRIVNAME(struct ndr_pull *ndr, struct LOOKUPPRIVNAME *r) +NTSTATUS ndr_pull_lsa_LookupPrivName(struct ndr_pull *ndr, struct lsa_LookupPrivName *r) { + uint32 _ptr_name; + NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_name)); + if (_ptr_name) { + NDR_ALLOC(ndr, r->out.name); + } else { + r->out.name = NULL; + } + if (r->out.name) { + NDR_CHECK(ndr_pull_lsa_Name(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.name)); + } NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; |