Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / asn1 / pres / pres.cnf
blobe0fd4279c77a17c3490eb1d06f613caf2f429632
1 # pres.cnf
2 # pres conformation file
4 #.IMPORT ../rtse/rtse-exp.cnf
6 #.EXPORTS
8 #.PDU
9 UD-type
11 #.NO_EMIT
12 UDC-type
14 #.TYPE_RENAME
15 CPA-PPDU/normal-mode-parameters T_CPA_PPDU_normal_mode_parameters
16 CPR-PPDU/normal-mode-parameters T_CPR_PPDU_normal_mode_parameters
17 ARU-PPDU/normal-mode-parameters T_ARU_PPDU_normal_mode_parameters
19 #.FIELD_RENAME
20 ARU-PPDU/normal-mode-parameters aRU_PPDU_normal_mode_parameters
21 CPA-PPDU/normal-mode-parameters cPU_PPDU_normal_mode_parameters
22 CPR-PPDU/normal-mode-parameters cPR_PPDU_normal_mode_parameters
24 ARU-PPDU/x400-mode-parameters aRU_PPDU_x400_mode_parameters
25 CPR-PPDU/x400-mode-parameters cPU_PPDU_x400_mode_parameters
26 CPA-PPDU/x410-mode-parameters cPR_PPDU_x400_mode_parameters
28 ARP-PPDU/provider-reason aRU_PPDU_provider-reason
29 CPR-PPDU/normal-mode-parameters/provider-reason cPR_PPDU__provider-reason
34 #.FN_BODY PDV-list/presentation-data-values/single-ASN1-type
36  tvbuff_t       *next_tvb;
37  char *oid;
39         oid=find_oid_by_pres_ctx_id(actx->pinfo, presentation_context_identifier);
40         if(oid){
41                 next_tvb = tvb_new_subset_remaining(tvb, offset);
42                 call_ber_oid_callback(oid, next_tvb, offset, actx->pinfo, global_tree, actx->private_data);
43         } else {
44                 proto_tree_add_expert(tree, actx->pinfo, &ei_pres_dissector_not_available,
45                                                                 tvb, offset, -1);
46         }
48 #.FN_BODY PDV-list/presentation-data-values/octet-aligned
50  tvbuff_t       *next_tvb;
51  char *oid;
53         oid=find_oid_by_pres_ctx_id(actx->pinfo, presentation_context_identifier);
54         if(oid){
55                 dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &next_tvb);
56                 call_ber_oid_callback(oid, next_tvb, offset, actx->pinfo, global_tree, actx->private_data);
57         } else {
58                 proto_tree_add_expert(tree, actx->pinfo, &ei_pres_dissector_not_available,
59                                                                 tvb, offset, -1);
60                 %(DEFAULT_BODY)s
61         }
64 #.FN_PARS Abstract-syntax-name
65   FN_VARIANT = _str  VAL_PTR = &abstract_syntax_name_oid
67 #.FN_PARS Presentation-context-identifier
68  VAL_PTR = &presentation_context_identifier
70 #.FN_BODY Presentation-context-identifier
71   const char *name;
72   char *oid;
73   struct SESSION_DATA_STRUCTURE* session = (struct SESSION_DATA_STRUCTURE*)actx->private_data;
75   %(DEFAULT_BODY)s
77   if(session)
78         session->pres_ctx_id = presentation_context_identifier;
80   oid = find_oid_by_pres_ctx_id(actx->pinfo, presentation_context_identifier);
82   if(oid && (name = oid_resolved_from_string(actx->pinfo->pool, oid))) {
83         proto_item_append_text(actx->created_item, " (%%s)", name);
84   }
86 #.FN_PARS Abort-reason
87   VAL_PTR = &reason
89 #.FN_BODY Abort-reason
90   uint32_t reason;
92   %(DEFAULT_BODY)s
94   col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%%s)", val_to_str(reason, pres_Abort_reason_vals, "unknown: %%d"));
96 #.FN_HDR Context-list/_item
97         abstract_syntax_name_oid=NULL;
98 #.END
99 #.FN_FTR Context-list/_item
100         register_ctx_id_and_oid(actx->pinfo, presentation_context_identifier, abstract_syntax_name_oid);
101 #.END