some compilers dont like unnamed unions and structs
[obnox/wireshark/wip.git] / epan / dissectors / packet-gssapi.h
1 /* packet-gssapi.h
2  * Dissector for GSS-API tokens as described in rfc2078, section 3.1
3  * Copyright 2002, Tim Potter <tpot@samba.org>
4  *
5  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifndef __PACKET_GSSAPI_H
27 #define __PACKET_GSSAPI_H
28
29 /* Structures needed outside */
30
31 typedef struct _gssapi_oid_value {
32         protocol_t *proto;
33         int ett;
34         dissector_handle_t handle;
35         dissector_handle_t wrap_handle;
36         const gchar *comment;  /* For the comment */
37 } gssapi_oid_value;
38
39 /* Function prototypes */
40
41 void
42 gssapi_init_oid(const char *oid, int proto, int ett, dissector_handle_t handle,
43                 dissector_handle_t wrap_handle, const gchar *comment);
44
45 gssapi_oid_value *
46 gssapi_lookup_oid_str(const gchar *oid_key);
47
48 int wrap_dissect_gssapi_verf(tvbuff_t *tvb, int offset, 
49                              packet_info *pinfo, 
50                              proto_tree *tree, guint8 *drep);
51
52 tvbuff_t *wrap_dissect_gssapi_payload(tvbuff_t *data_tvb, 
53                                         tvbuff_t *auth_tvb,
54                                         int offset,
55                                         packet_info *pinfo, 
56                                         dcerpc_auth_info *auth_info);
57
58 #endif /* __PACKET_GSSAPI_H */