Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
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  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 
12 #ifndef __PACKET_GSSAPI_H
13 #define __PACKET_GSSAPI_H
14 
15 /* Structures needed outside */
16 
17 typedef struct _gssapi_oid_value {
18  protocol_t *proto;
19  int ett;
20  dissector_handle_t handle;
21  dissector_handle_t wrap_handle;
22  const gchar *comment; /* For the comment */
24 
25 #define DECRYPT_GSSAPI_NORMAL 1
26 #define DECRYPT_GSSAPI_DCE 2
27 
38 typedef struct _gssapi_encrypt_info
39 {
40  guint16 decrypt_gssapi_tvb;
41  tvbuff_t *gssapi_wrap_tvb;
42  tvbuff_t *gssapi_encrypted_tvb;
43  tvbuff_t *gssapi_decrypted_tvb;
44  gboolean gssapi_data_encrypted;
46 
47 /* Function prototypes */
48 
49 void
50 gssapi_init_oid(const char *oid, int proto, int ett, dissector_handle_t handle,
51  dissector_handle_t wrap_handle, const gchar *comment);
52 
54 gssapi_lookup_oid_str(const gchar *oid_key);
55 
56 int wrap_dissect_gssapi_verf(tvbuff_t *tvb, int offset,
57  packet_info *pinfo,
58  proto_tree *tree, dcerpc_info *di, guint8 *drep);
59 
60 tvbuff_t *wrap_dissect_gssapi_payload(tvbuff_t *data_tvb,
61  tvbuff_t *auth_tvb,
62  int offset,
63  packet_info *pinfo,
64  dcerpc_auth_info *auth_info);
65 
66 #endif /* __PACKET_GSSAPI_H */
Definition: packet_info.h:44
Definition: packet-gssapi.h:17
Definition: tvbuff-int.h:35
Definition: packet.c:659
Definition: packet-dcerpc.h:93
Definition: proto.h:759
Definition: packet-dcerpc.h:151
Definition: packet-gssapi.h:38
Definition: proto.c:312