Merge commit 'release-4-0-0alpha15' into master4-tmp
[obnox/samba/samba-obnox.git] / libcli / auth / msrpc_parse.h
1 /*
2    Unix SMB/CIFS implementation.
3    simple kerberos5/SPNEGO routines
4    Copyright (C) Andrew Tridgell 2001
5    Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2002
6    Copyright (C) Andrew Bartlett 2002-2003
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #ifndef _LIBCLI_AUTH_MSRPC_PARSE_H__
23 #define _LIBCLI_AUTH_MSRPC_PARSE_H__
24
25 #undef _PRINTF_ATTRIBUTE
26 #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
27
28 /* this file contains prototypes for functions that are private 
29  * to this subsystem or library. These functions should not be 
30  * used outside this particular subsystem! */
31
32
33 /* The following definitions come from /home/jeremy/src/samba/git/master/source3/../source4/../libcli/auth/msrpc_parse.c  */
34
35 NTSTATUS msrpc_gen(TALLOC_CTX *mem_ctx, 
36                DATA_BLOB *blob,
37                const char *format, ...);
38
39 /**
40   this is a tiny msrpc packet parser. This the the partner of msrpc_gen
41
42   format specifiers are:
43
44   U = unicode string (output is unix string)
45   A = ascii string
46   B = data blob
47   b = data blob in header
48   d = word (4 bytes)
49   C = constant ascii string
50  */
51 bool msrpc_parse(TALLOC_CTX *mem_ctx, 
52                  const DATA_BLOB *blob,
53                  const char *format, ...);
54 #undef _PRINTF_ATTRIBUTE
55 #define _PRINTF_ATTRIBUTE(a1, a2)
56
57 #endif
58