2005-11-14 10:02:31 +00:00
|
|
|
# asce.cnf
|
|
|
|
# ACSE conformation file
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
2005-06-19 11:51:23 +00:00
|
|
|
#.MODULE_IMPORT
|
|
|
|
InformationFramework x509if
|
|
|
|
|
|
|
|
#.INCLUDE ../x509if/x509if-exp.cnf
|
|
|
|
|
2005-06-25 07:46:14 +00:00
|
|
|
#.EXPORTS
|
|
|
|
EXTERNAL
|
2005-07-03 05:28:12 +00:00
|
|
|
AP-title
|
|
|
|
AP-invocation-identifier
|
|
|
|
AE-qualifier
|
2005-10-24 21:42:19 +00:00
|
|
|
ASO-qualifier
|
2005-07-03 05:28:12 +00:00
|
|
|
AE-invocation-identifier
|
2005-06-25 07:46:14 +00:00
|
|
|
|
2005-06-19 11:51:23 +00:00
|
|
|
#.TYPE_RENAME
|
|
|
|
AARQ-apdu/protocol-version T_AARQ_protocol_version
|
|
|
|
AARE-apdu/protocol-version T_AARE_protocol_version
|
2005-08-31 20:20:56 +00:00
|
|
|
AARQ-apdu/aSO-context-name T_AARQ_aSO_context_name
|
|
|
|
AARE-apdu/aSO-context-name T_AARE_aSO_context_name
|
|
|
|
ACRQ-apdu/aSO-context-name T_ACRQ_aSO_context_name
|
|
|
|
ACRP-apdu/aSO-context-name T_ACRP_aSO_context_name
|
2005-06-19 11:51:23 +00:00
|
|
|
|
|
|
|
#.FIELD_RENAME
|
2005-08-31 20:20:56 +00:00
|
|
|
AARQ-apdu/user-information aARQ_user_information
|
|
|
|
AARE-apdu/user-information aARE_user_information
|
|
|
|
ABRT-apdu/user-information aBRT_user_information
|
|
|
|
RLRE-apdu/user-information rLRE_user_information
|
|
|
|
RLRQ-apdu/user-information rLRQ_user_information
|
|
|
|
AARE-apdu/result aARE_result
|
|
|
|
P-context-result-list/_item/result pcontext_result
|
|
|
|
RLRE-apdu/reason rLRE_reason
|
|
|
|
RLRQ-apdu/reason rLRQ_reason
|
|
|
|
AARQ-apdu/protocol-version aARQ_protocol_version
|
|
|
|
AARE-apdu/protocol-version aARE_protocol_version
|
|
|
|
AARQ-apdu/aSO-context-name aARQ_aSO_context_name
|
|
|
|
AARE-apdu/aSO-context-name aARE_aSO_context_name
|
|
|
|
ACRQ-apdu/aSO-context-name aCRQ_aSO_context_name
|
2005-06-19 11:51:23 +00:00
|
|
|
|
2005-06-22 08:15:18 +00:00
|
|
|
#.FN_BODY EXTERNAL
|
|
|
|
gint8 class;
|
|
|
|
gboolean pc, ind_field;
|
|
|
|
gint32 tag;
|
2005-07-09 02:58:07 +00:00
|
|
|
guint32 len1;
|
2005-06-22 08:15:18 +00:00
|
|
|
|
2005-10-03 05:14:39 +00:00
|
|
|
if(!implicit_tag) {
|
|
|
|
/* XXX asn2eth can not yet handle tagged assignment so for the
|
|
|
|
* time being just remove this tag manually inside the EXTERNAL
|
|
|
|
* dissector.
|
|
|
|
*/
|
|
|
|
offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
|
|
|
|
offset = get_ber_length(tree, tvb, offset, &len1, &ind_field);
|
|
|
|
}
|
2005-06-22 08:15:18 +00:00
|
|
|
offset = dissect_ber_sequence(TRUE, pinfo, tree, tvb, offset,
|
|
|
|
EXTERNAL_sequence, hf_index, ett_acse_EXTERNAL);
|
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS Authentication-value-other/other-mechanism-name
|
|
|
|
FN_VARIANT = _str VAL_PTR = &object_identifier_id
|
2005-06-19 11:51:23 +00:00
|
|
|
|
|
|
|
#.FN_BODY Authentication-value-other/other-mechanism-value
|
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, top_tree);
|
|
|
|
|
|
|
|
#.FN_BODY PDV-list/presentation-data-values/simple-ASN1-type
|
|
|
|
/*XXX not implemented yet */
|
|
|
|
|
|
|
|
#.FN_BODY AARQ-apdu/aSO-context-name
|
2005-11-14 10:02:31 +00:00
|
|
|
offset = dissect_ber_object_identifier_str(FALSE, pinfo, tree, tvb, offset,
|
|
|
|
hf_index, &object_identifier_id);
|
2005-06-19 11:51:23 +00:00
|
|
|
|
|
|
|
#.FN_BODY AARE-apdu/aSO-context-name
|
2005-11-14 10:02:31 +00:00
|
|
|
offset = dissect_ber_object_identifier_str(FALSE, pinfo, tree, tvb, offset,
|
|
|
|
hf_index, &object_identifier_id);
|
2005-06-19 11:51:23 +00:00
|
|
|
|
|
|
|
#.FN_BODY ACRQ-apdu/aSO-context-name
|
2005-11-14 10:02:31 +00:00
|
|
|
offset = dissect_ber_object_identifier_str(FALSE, pinfo, tree, tvb, offset,
|
|
|
|
hf_index, &object_identifier_id);
|
2005-06-19 11:51:23 +00:00
|
|
|
|
|
|
|
#.FN_BODY ACRP-apdu/aSO-context-name
|
2005-11-14 10:02:31 +00:00
|
|
|
offset = dissect_ber_object_identifier_str(FALSE, pinfo, tree, tvb, offset,
|
|
|
|
hf_index, &object_identifier_id);
|
2005-06-19 11:51:23 +00:00
|
|
|
|
|
|
|
#.FN_BODY EXTERNAL/indirect-reference
|
2005-09-04 09:00:01 +00:00
|
|
|
char *oid;
|
2005-06-19 11:51:23 +00:00
|
|
|
offset = dissect_ber_integer(FALSE, pinfo, tree, tvb, offset,
|
|
|
|
hf_acse_indirect_reference,
|
|
|
|
&indir_ref);
|
|
|
|
|
2005-09-04 09:00:01 +00:00
|
|
|
/* look up the indirect reference */
|
2005-09-05 22:36:52 +00:00
|
|
|
if((oid = find_oid_by_pres_ctx_id(pinfo, indir_ref)) != NULL) {
|
2005-11-14 10:02:31 +00:00
|
|
|
object_identifier_id = ep_strdup(oid);
|
2005-09-04 09:00:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if(session)
|
|
|
|
session->pres_ctx_id = indir_ref;
|
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS EXTERNAL/direct-reference
|
|
|
|
FN_VARIANT = _str VAL_PTR = &object_identifier_id
|
2005-10-03 05:14:39 +00:00
|
|
|
|
2005-06-19 11:51:23 +00:00
|
|
|
#.FN_BODY EXTERNAL/encoding/single-ASN1-type
|
2005-10-24 21:42:19 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, top_tree ? top_tree : tree);
|
2005-06-19 11:51:23 +00:00
|
|
|
|
2005-11-16 07:13:12 +00:00
|
|
|
#.FN_PARS Release-request-reason
|
|
|
|
VAL_PTR=&reason
|
|
|
|
|
|
|
|
#.FN_BODY Release-request-reason
|
|
|
|
int reason = -1;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if((reason != -1) && check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, "Release-Request (%%s)", val_to_str(reason, acse_Release_request_reason_vals, "reason(%%d)"));
|
|
|
|
|
|
|
|
|
|
|
|
#.FN_PARS Release-response-reason
|
|
|
|
VAL_PTR=&reason
|
|
|
|
|
|
|
|
#.FN_BODY Release-response-reason
|
|
|
|
int reason = -1;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if((reason != -1) && check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, "Release-Response (%%s)", val_to_str(reason, acse_Release_request_reason_vals, "reason(%%d)"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-06-19 11:51:23 +00:00
|
|
|
#.END
|