Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / asn1 / acse / acse.cnf
blob924f0ae4609abd95f21b878d9221f47dc856b274
1 # asce.cnf
2 # ACSE conformation file
4 #.IMPORT ../x509if/x509if-exp.cnf
6 #.OMIT_ASSIGNMENT
7 Application-context-name
8 #.END
10 #.NO_EMIT ONLY_VALS
11 ACSE-apdu
13 #.EXPORTS
14 EXTERNALt
15 AE-title
16 AP-title
17 AP-invocation-identifier
18 AE-qualifier
19 ASO-qualifier
20 AE-invocation-identifier
22 #.TYPE_RENAME
23 AARQ-apdu/_untag/protocol-version       T_AARQ_protocol_version
24 AARE-apdu/_untag/protocol-version       T_AARE_protocol_version
25 AARQ-apdu/_untag/aSO-context-name       T_AARQ_aSO_context_name
26 AARE-apdu/_untag/aSO-context-name       T_AARE_aSO_context_name
27 ACRQ-apdu/_untag/aSO-context-name       T_ACRQ_aSO_context_name
28 ACRP-apdu/_untag/aSO-context-name       T_ACRP_aSO_context_name
30 #.FIELD_RENAME
31 AARQ-apdu/_untag/user-information       aARQ_user_information
32 AARE-apdu/_untag/user-information       aARE_user_information
33 ABRT-apdu/_untag/user-information       aBRT_user_information
34 RLRE-apdu/_untag/user-information       rLRE_user_information
35 RLRQ-apdu/_untag/user-information       rLRQ_user_information
36 P-context-result-list/_item/result      pcontext_result
37 RLRE-apdu/_untag/reason         rLRE_reason
38 RLRQ-apdu/_untag/reason         rLRQ_reason
39 AARQ-apdu/_untag/protocol-version       aARQ_protocol_version
40 AARE-apdu/_untag/protocol-version       aARE_protocol_version
41 AARQ-apdu/_untag/aSO-context-name       aARQ_aSO_context_name
42 AARE-apdu/_untag/aSO-context-name       aARE_aSO_context_name
43 ACRQ-apdu/_untag/aSO-context-name       aCRQ_aSO_context_name
44 PDV-list/presentation-data-values/octet-aligned         pDVList_octet_aligned
46 #.FN_PARS Authentication-value-other/other-mechanism-name
47   FN_VARIANT = _str VAL_PTR = &actx->external.direct_reference
49 #.FN_BODY Authentication-value-other/other-mechanism-name
50 %(DEFAULT_BODY)s
51   actx->external.direct_ref_present = (actx->external.direct_reference != NULL) ? true : false;
53 #.FN_BODY Authentication-value-other/other-mechanism-value
54   if (actx->external.direct_ref_present) {
55     offset=call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, actx->subtree.top_tree, actx->private_data);
56   }
58 #.FN_BODY PDV-list/presentation-data-values/simple-ASN1-type
59 /*XXX not implemented yet */
61 #.FN_BODY AARQ-apdu/_untag/aSO-context-name
62   offset = dissect_ber_object_identifier_str(false, actx, tree, tvb, offset,
63                                          hf_index, &actx->external.direct_reference);
64   actx->external.direct_ref_present = (actx->external.direct_reference != NULL) ? true : false;
66 #.FN_BODY AARE-apdu/_untag/aSO-context-name
67   offset = dissect_ber_object_identifier_str(false, actx, tree, tvb, offset,
68                                          hf_index, &actx->external.direct_reference);
69   actx->external.direct_ref_present = (actx->external.direct_reference != NULL) ? true : false;
71 #.FN_BODY ACRQ-apdu/_untag/aSO-context-name
72   offset = dissect_ber_object_identifier_str(false, actx, tree, tvb, offset,
73                                          hf_index, &actx->external.direct_reference);
74   actx->external.direct_ref_present = (actx->external.direct_reference != NULL) ? true : false;
76 #.FN_BODY ACRP-apdu/_untag/aSO-context-name
77   offset = dissect_ber_object_identifier_str(false, actx, tree, tvb, offset,
78                                          hf_index, &actx->external.direct_reference);
79   actx->external.direct_ref_present = (actx->external.direct_reference != NULL) ? true : false;
81 #.FN_BODY EXTERNALt/_untag/indirect-reference
82   char *oid;
83   struct SESSION_DATA_STRUCTURE* session = (struct SESSION_DATA_STRUCTURE*) actx->private_data;
85   offset = dissect_ber_integer(false, actx, tree, tvb, offset,
86                 hf_acse_indirect_reference,
87                 &indir_ref);
89   /* look up the indirect reference */
90   if((oid = find_oid_by_pres_ctx_id(actx->pinfo, indir_ref)) != NULL) {
91     actx->external.direct_reference = wmem_strdup(actx->pinfo->pool, oid);
92     actx->external.direct_ref_present = true;
93   }
95   if(session)
96         session->pres_ctx_id = indir_ref;
98 #.FN_PARS EXTERNALt/_untag/direct-reference
99   FN_VARIANT = _str VAL_PTR = &actx->external.direct_reference
101 #.FN_BODY EXTERNALt/_untag/direct-reference
102 %(DEFAULT_BODY)s
103   actx->external.direct_ref_present = (actx->external.direct_reference != NULL) ? true : false;
105 #.FN_BODY EXTERNALt/_untag/encoding/single-ASN1-type
106   if (actx->external.direct_ref_present) {
107     offset=call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, actx->subtree.top_tree ? actx->subtree.top_tree : tree, actx->private_data);
108   }
110 #.FN_BODY EXTERNALt/_untag/encoding/octet-aligned
111   if (actx->external.direct_ref_present) {
112     offset=call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, actx->subtree.top_tree ? actx->subtree.top_tree : tree, actx->private_data);
113   }
115 #.FN_BODY AARQ-apdu
116   col_append_str(actx->pinfo->cinfo, COL_INFO, "A-Associate-Request");
118   %(DEFAULT_BODY)s
120 #.FN_BODY AARE-apdu
121   col_append_str(actx->pinfo->cinfo, COL_INFO, "A-Associate-Response");
123   %(DEFAULT_BODY)s
125 #.FN_BODY RLRQ-apdu
126   col_append_str(actx->pinfo->cinfo, COL_INFO, "Release-Request");
128   %(DEFAULT_BODY)s
130 #.FN_PARS Release-request-reason
131   VAL_PTR=&reason
133 #.FN_BODY Release-request-reason
134   int reason = -1;
136   %(DEFAULT_BODY)s
138   if(reason != -1)
139    col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%%s)", val_to_str(reason, acse_Release_request_reason_vals, "reason(%%d)"));
141 #.FN_BODY RLRE-apdu
142   col_append_str(actx->pinfo->cinfo, COL_INFO, "Release-Response");
144   %(DEFAULT_BODY)s
146 #.FN_PARS Release-response-reason
147   VAL_PTR=&reason
149 #.FN_BODY Release-response-reason
150   int reason = -1;
152   %(DEFAULT_BODY)s
154   if(reason != -1)
155    col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%%s)", val_to_str(reason, acse_Release_response_reason_vals, "reason(%%d)"));
157 #.FN_BODY ABRT-apdu
158   col_append_str(actx->pinfo->cinfo, COL_INFO, "Abort");
160   %(DEFAULT_BODY)s
162 #.FN_BODY ABRT-source  VAL_PTR=&source
163   int source = -1;
165   %(DEFAULT_BODY)s
167   if(source != -1)
168    col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%%s)", val_to_str(source, acse_ABRT_source_vals, "source(%%d)"));
170 #.FIELD_ATTR
171 Association-data/_item NAME = "Association-data"
172 P-context-result-list/_item/result ABBREV=pcontext.result
173 #.END