summaryrefslogtreecommitdiff
path: root/source3/lsaparse.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-27 17:04:15 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-27 17:04:15 +0000
commit13291ce01db2469db7c3f80f7e59ce3702170e7c (patch)
treec7872b408417186644b37a6169d5ff11b1c39fb6 /source3/lsaparse.c
parentf868196c1db2e4559960a1ded81afad7dd873beb (diff)
downloadsamba-13291ce01db2469db7c3f80f7e59ce3702170e7c.tar.gz
samba-13291ce01db2469db7c3f80f7e59ce3702170e7c.tar.bz2
samba-13291ce01db2469db7c3f80f7e59ce3702170e7c.zip
added LSA Query Info Policy.
fixed a problem with byte ordering (doing an SIVAL of the setup parameters which was _also_ being done in the creation of the SMB header. oops). (This used to be commit 541fb82895008cc30477019cdcafed9fdbbeac43)
Diffstat (limited to 'source3/lsaparse.c')
-rw-r--r--source3/lsaparse.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/lsaparse.c b/source3/lsaparse.c
index 37cc51bbf8..39ef6c596b 100644
--- a/source3/lsaparse.c
+++ b/source3/lsaparse.c
@@ -77,6 +77,20 @@ char* lsa_io_r_open_pol(BOOL io, LSA_R_OPEN_POL *r_p, char *q, char *base, int a
}
/*******************************************************************
+makes an LSA_Q_QUERY_INFO structure.
+********************************************************************/
+void make_q_query(LSA_Q_QUERY_INFO *q_q, LSA_POL_HND *hnd, uint16 info_class)
+{
+ if (q_q == NULL || hnd == NULL) return;
+
+ DEBUG(5,("make_q_query\n"));
+
+ memcpy(&(q_q->pol), hnd, sizeof(q_q->pol));
+
+ q_q->info_class = info_class;
+}
+
+/*******************************************************************
reads or writes an LSA_Q_QUERY_INFO structure.
********************************************************************/
char* lsa_io_q_query(BOOL io, LSA_Q_QUERY_INFO *q_q, char *q, char *base, int align, int depth)