17#ifndef __PACKET_KERBEROS_H
18#define __PACKET_KERBEROS_H
20#include "ws_symbol_export.h"
30#define KERBEROS_APPLICATIONS_TICKET 1
31#define KERBEROS_APPLICATIONS_AUTHENTICATOR 2
32#define KERBEROS_APPLICATIONS_ENCTICKETPART 3
33#define KERBEROS_APPLICATIONS_AS_REQ 10
34#define KERBEROS_APPLICATIONS_AS_REP 11
35#define KERBEROS_APPLICATIONS_TGS_REQ 12
36#define KERBEROS_APPLICATIONS_TGS_REP 13
37#define KERBEROS_APPLICATIONS_AP_REQ 14
38#define KERBEROS_APPLICATIONS_AP_REP 15
39#define KERBEROS_APPLICATIONS_KRB_SAFE 20
40#define KERBEROS_APPLICATIONS_KRB_PRIV 21
41#define KERBEROS_APPLICATIONS_KRB_CRED 22
42#define KERBEROS_APPLICATIONS_ENCASREPPART 25
43#define KERBEROS_APPLICATIONS_ENCTGSREPPART 26
44#define KERBEROS_APPLICATIONS_ENCAPREPPART 27
45#define KERBEROS_APPLICATIONS_ENCKRBPRIVPART 28
46#define KERBEROS_APPLICATIONS_ENCKRBCREDPART 29
47#define KERBEROS_APPLICATIONS_KRB_ERROR 30
48unsigned dissect_kerberos_TGT_REQ(
bool implicit_tag _U_, tvbuff_t *tvb _U_,
unsigned offset _U_,
asn1_ctx_t *actx _U_, proto_tree *tree _U_,
int hf_index _U_);
49unsigned dissect_kerberos_TGT_REP(
bool implicit_tag _U_, tvbuff_t *tvb _U_,
unsigned offset _U_,
asn1_ctx_t *actx _U_, proto_tree *tree _U_,
int hf_index _U_);
50unsigned dissect_kerberos_ChangePasswdData(
bool implicit_tag _U_, tvbuff_t *tvb _U_,
unsigned offset _U_,
asn1_ctx_t *actx _U_, proto_tree *tree _U_,
int hf_index _U_);
52#ifndef KRB5_KU_USAGE_ACCEPTOR_SEAL
53#define KRB5_KU_USAGE_ACCEPTOR_SEAL 22
55#ifndef KRB5_KU_USAGE_ACCEPTOR_SIGN
56#define KRB5_KU_USAGE_ACCEPTOR_SIGN 23
58#ifndef KRB5_KU_USAGE_INITIATOR_SEAL
59#define KRB5_KU_USAGE_INITIATOR_SEAL 24
61#ifndef KRB5_KU_USAGE_INITIATOR_SIGN
62#define KRB5_KU_USAGE_INITIATOR_SIGN 25
73#define KRB_CBTAG_SAFE_USER_DATA 1
74#define KRB_CBTAG_PRIV_USER_DATA 2
77 int (*callback)(
packet_info *pinfo, tvbuff_t *tvb, proto_tree *tree);
86dissect_kerberos_main(tvbuff_t *tvb,
packet_info *pinfo, proto_tree *tree,
bool do_col_info, kerberos_callbacks *cb);
89dissect_krb5_Checksum(proto_tree *tree, tvbuff_t *tvb,
int offset,
asn1_ctx_t *actx _U_);
92dissect_krb5_ctime(proto_tree *tree, tvbuff_t *tvb,
int offset,
asn1_ctx_t *actx _U_);
94int dissect_krb5_cname(proto_tree *tree, tvbuff_t *tvb,
int offset,
asn1_ctx_t *actx _U_);
95int dissect_krb5_realm(proto_tree *tree, tvbuff_t *tvb,
int offset,
asn1_ctx_t *actx _U_);
96uint32_t kerberos_output_keytype(
void);
98unsigned get_krb_pdu_len(
packet_info *, tvbuff_t *tvb,
int offset,
void *data _U_);
100int kerberos_rm_to_reclen(
unsigned krb_rm);
103show_krb_recordmark(proto_tree *tree, tvbuff_t *tvb,
int start, uint32_t krb_rm);
106dissect_kerberos_KERB_TICKET_LOGON(tvbuff_t *tvb,
int offset,
asn1_ctx_t *actx, proto_tree *tree);
110#if defined(HAVE_HEIMDAL_KERBEROS) || defined(HAVE_MIT_KERBEROS)
113decrypt_krb5_data(proto_tree *tree,
packet_info *pinfo,
115 tvbuff_t *crypototvb,
120decrypt_krb5_krb_cfx_dce(proto_tree *tree,
124 tvbuff_t *gssapi_header_tvb,
125 tvbuff_t *gssapi_encrypted_tvb,
126 tvbuff_t *gssapi_trailer_tvb,
127 tvbuff_t *checksum_tvb);
131extern bool krb_decrypt;
134void read_keytab_file_from_preferences(
void);
struct _asn1_ctx_t asn1_ctx_t
Central context object threaded through all ASN.1 dissection calls.
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
Definition packet-kerberos.h:75