Witness: enum witness_notifyResponse_type
[wireshark-wip.git] / asn1 / acse / acse.cnf
blob5485bb8f7087cbe1ce2749c30df514c7bfd8ff6a
1 # asce.cnf
2 # ACSE conformation file
4 # $Id$
6 #.IMPORT ../x509if/x509if-exp.cnf
8 #.OMIT_ASSIGNMENT
9 Application-context-name
10 #.END
12 #.EXPORTS
13 EXTERNALt
14 AE-title
15 AP-title
16 AP-invocation-identifier
17 AE-qualifier
18 ASO-qualifier
19 AE-invocation-identifier
21 #.TYPE_RENAME
22 AARQ-apdu/_untag/protocol-version       T_AARQ_protocol_version
23 AARE-apdu/_untag/protocol-version       T_AARE_protocol_version
24 AARQ-apdu/_untag/aSO-context-name       T_AARQ_aSO_context_name         
25 AARE-apdu/_untag/aSO-context-name       T_AARE_aSO_context_name
26 ACRQ-apdu/_untag/aSO-context-name       T_ACRQ_aSO_context_name
27 ACRP-apdu/_untag/aSO-context-name       T_ACRP_aSO_context_name
29 #.FIELD_RENAME
30 AARQ-apdu/_untag/user-information       aARQ_user_information
31 AARE-apdu/_untag/user-information       aARE_user_information
32 ABRT-apdu/_untag/user-information       aBRT_user_information
33 RLRE-apdu/_untag/user-information       rLRE_user_information
34 RLRQ-apdu/_untag/user-information       rLRQ_user_information
35 P-context-result-list/_item/result      pcontext_result
36 RLRE-apdu/_untag/reason         rLRE_reason
37 RLRQ-apdu/_untag/reason         rLRQ_reason
38 AARQ-apdu/_untag/protocol-version       aARQ_protocol_version
39 AARE-apdu/_untag/protocol-version       aARE_protocol_version
40 AARQ-apdu/_untag/aSO-context-name       aARQ_aSO_context_name
41 AARE-apdu/_untag/aSO-context-name       aARE_aSO_context_name
42 ACRQ-apdu/_untag/aSO-context-name       aCRQ_aSO_context_name
43 PDV-list/presentation-data-values/octet-aligned         pDVList_octet_aligned
45 #.FN_PARS Authentication-value-other/other-mechanism-name  
46   FN_VARIANT = _str VAL_PTR = &object_identifier_id
48 #.FN_BODY Authentication-value-other/other-mechanism-value
49   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, top_tree, actx->private_data);
51 #.FN_BODY PDV-list/presentation-data-values/simple-ASN1-type
52 /*XXX not implemented yet */
54 #.FN_BODY AARQ-apdu/_untag/aSO-context-name
55   offset = dissect_ber_object_identifier_str(FALSE, actx, tree, tvb, offset,
56                                          hf_index, &object_identifier_id);
58 #.FN_BODY AARE-apdu/_untag/aSO-context-name
59   offset = dissect_ber_object_identifier_str(FALSE, actx, tree, tvb, offset,
60                                          hf_index, &object_identifier_id);
62 #.FN_BODY ACRQ-apdu/_untag/aSO-context-name
63   offset = dissect_ber_object_identifier_str(FALSE, actx, tree, tvb, offset,
64                                          hf_index, &object_identifier_id);
66 #.FN_BODY ACRP-apdu/_untag/aSO-context-name
67   offset = dissect_ber_object_identifier_str(FALSE, actx, tree, tvb, offset,
68                                          hf_index, &object_identifier_id);
70 #.FN_BODY EXTERNALt/_untag/indirect-reference
71   char *oid;
72   struct SESSION_DATA_STRUCTURE* session = (struct SESSION_DATA_STRUCTURE*) actx->private_data;
74   offset = dissect_ber_integer(FALSE, actx, tree, tvb, offset,
75                 hf_acse_indirect_reference,
76                 &indir_ref);
78   /* look up the indirect reference */
79   if((oid = find_oid_by_pres_ctx_id(actx->pinfo, indir_ref)) != NULL) {
80     object_identifier_id = wmem_strdup(wmem_packet_scope(), oid);
81   }
83   if(session)
84         session->pres_ctx_id = indir_ref;
86 #.FN_PARS EXTERNALt/_untag/direct-reference
87   FN_VARIANT = _str VAL_PTR = &object_identifier_id
89 #.FN_BODY EXTERNALt/_untag/encoding/single-ASN1-type
90   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, top_tree ? top_tree : tree, actx->private_data);
92 #.FN_BODY EXTERNALt/_untag/encoding/octet-aligned
93   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, top_tree ? top_tree : tree, actx->private_data);
95 #.FN_BODY AARQ-apdu
96   col_append_str(actx->pinfo->cinfo, COL_INFO, "A-Associate-Request");
98   %(DEFAULT_BODY)s
100 #.FN_BODY AARE-apdu
101   col_append_str(actx->pinfo->cinfo, COL_INFO, "A-Associate-Response");
103   %(DEFAULT_BODY)s
105 #.FN_BODY RLRQ-apdu
106   col_append_str(actx->pinfo->cinfo, COL_INFO, "Release-Request");
108   %(DEFAULT_BODY)s
110 #.FN_PARS Release-request-reason
111   VAL_PTR=&reason
113 #.FN_BODY Release-request-reason
114   int reason = -1;
116   %(DEFAULT_BODY)s
118   if(reason != -1)
119    col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%%s)", val_to_str(reason, acse_Release_request_reason_vals, "reason(%%d)"));
121 #.FN_BODY RLRE-apdu
122   col_append_str(actx->pinfo->cinfo, COL_INFO, "Release-Response");
124   %(DEFAULT_BODY)s
126 #.FN_PARS Release-response-reason
127   VAL_PTR=&reason
129 #.FN_BODY Release-response-reason
130   int reason = -1;
132   %(DEFAULT_BODY)s
134   if(reason != -1)
135    col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%%s)", val_to_str(reason, acse_Release_response_reason_vals, "reason(%%d)"));
137 #.FN_BODY ABRT-apdu
138   col_append_str(actx->pinfo->cinfo, COL_INFO, "Abort");
140   %(DEFAULT_BODY)s
142 #.FN_BODY ABRT-source  VAL_PTR=&source
143   int source = -1;
145   %(DEFAULT_BODY)s
147   if(source != -1)
148    col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%%s)", val_to_str(source, acse_ABRT_source_vals, "source(%%d)"));
149   
150 #.FIELD_ATTR
151 Association-data/_item NAME = "Association-data"
153 #.END