bugfix to a bug reported by Ian Schorr:
[obnox/wireshark/wip.git] / packet-kerberos.h
1 /* packet-kerberos.h
2  *
3  * $Id: packet-kerberos.h,v 1.8 2004/06/04 01:56:25 sahlberg Exp $
4  *
5  * Ethereal - Network traffic analyzer
6  * By Gerald Combs <gerald@ethereal.com>
7  * Copyright 1998 Gerald Combs
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22  */
23
24 #ifndef __PACKET_KERBEROS_H
25 #define __PACKET_KERBEROS_H
26
27 /* This is a list of callback functions a caller can use to specify that
28    octet strings in kerberos to be passed back to application specific
29    dissectors, outside of kerberos.
30    This is used for dissection of application specific data for PacketCable
31    KRB_SAFE user data and eventually to pass kerberos session keys
32    to future DCERPC decryption and other uses.
33    The list is terminated by {0, NULL }
34 */
35 #define KRB_CBTAG_SAFE_USER_DATA        1
36 typedef struct _kerberos_callbacks {
37         int tag;
38         int (*callback)(packet_info *pinfo, tvbuff_t *tvb, proto_tree *tree);
39 } kerberos_callbacks;
40
41 /* Function prototypes */
42
43 gint
44 dissect_kerberos_main(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int do_col_info, kerberos_callbacks *cb);
45
46 #endif /* __PACKET_KERBEROS_H */