diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2005-11-14 10:02:31 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2005-11-14 10:02:31 +0000 |
commit | 3b770d5c7c9aa12a455d6307b762b3fca875fbf7 (patch) | |
tree | e8f6231cfc7a837d8fc9901a7a676180dce93bd1 /asn1/acse | |
parent | 0496eb5dcabb32c36084b2efb620fe6fe9a50b12 (diff) | |
download | wireshark-3b770d5c7c9aa12a455d6307b762b3fca875fbf7.tar.gz wireshark-3b770d5c7c9aa12a455d6307b762b3fca875fbf7.tar.bz2 wireshark-3b770d5c7c9aa12a455d6307b762b3fca875fbf7.zip |
- dissect_ber_object_identifier() returns value as tvb
- new dissect_ber_object_identifier_str() function
- BER dissectors adapted and regenerated
svn path=/trunk/; revision=16501
Diffstat (limited to 'asn1/acse')
-rw-r--r-- | asn1/acse/acse.cnf | 34 | ||||
-rw-r--r-- | asn1/acse/packet-acse-template.c | 2 |
2 files changed, 19 insertions, 17 deletions
diff --git a/asn1/acse/acse.cnf b/asn1/acse/acse.cnf index c80e625366..5a72fa3690 100644 --- a/asn1/acse/acse.cnf +++ b/asn1/acse/acse.cnf @@ -1,3 +1,8 @@ +# asce.cnf +# ACSE conformation file + +# $Id$ + #.MODULE_IMPORT InformationFramework x509if @@ -52,9 +57,8 @@ ACRQ-apdu/aSO-context-name aCRQ_aSO_context_name offset = dissect_ber_sequence(TRUE, pinfo, tree, tvb, offset, EXTERNAL_sequence, hf_index, ett_acse_EXTERNAL); -#.FN_BODY Authentication-value-other/other-mechanism-name - offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset, - hf_index, object_identifier_id); +#.FN_PARS Authentication-value-other/other-mechanism-name + FN_VARIANT = _str VAL_PTR = &object_identifier_id #.FN_BODY Authentication-value-other/other-mechanism-value offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, top_tree); @@ -63,20 +67,20 @@ ACRQ-apdu/aSO-context-name aCRQ_aSO_context_name /*XXX not implemented yet */ #.FN_BODY AARQ-apdu/aSO-context-name - offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset, - hf_index, object_identifier_id); + offset = dissect_ber_object_identifier_str(FALSE, pinfo, tree, tvb, offset, + hf_index, &object_identifier_id); #.FN_BODY AARE-apdu/aSO-context-name - offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset, - hf_index, object_identifier_id); + offset = dissect_ber_object_identifier_str(FALSE, pinfo, tree, tvb, offset, + hf_index, &object_identifier_id); #.FN_BODY ACRQ-apdu/aSO-context-name - offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset, - hf_index, object_identifier_id); + offset = dissect_ber_object_identifier_str(FALSE, pinfo, tree, tvb, offset, + hf_index, &object_identifier_id); #.FN_BODY ACRP-apdu/aSO-context-name - offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset, - hf_index, object_identifier_id); + offset = dissect_ber_object_identifier_str(FALSE, pinfo, tree, tvb, offset, + hf_index, &object_identifier_id); #.FN_BODY EXTERNAL/indirect-reference char *oid; @@ -86,16 +90,14 @@ ACRQ-apdu/aSO-context-name aCRQ_aSO_context_name /* look up the indirect reference */ if((oid = find_oid_by_pres_ctx_id(pinfo, indir_ref)) != NULL) { - g_snprintf(object_identifier_id, MAX_OID_STR_LEN, "%%s", oid); + object_identifier_id = ep_strdup(oid); } if(session) session->pres_ctx_id = indir_ref; -#.FN_BODY EXTERNAL/direct-reference - - offset = dissect_ber_object_identifier(implicit_tag, pinfo, tree, tvb, offset, hf_index, object_identifier_id); - +#.FN_PARS EXTERNAL/direct-reference + FN_VARIANT = _str VAL_PTR = &object_identifier_id #.FN_BODY EXTERNAL/encoding/single-ASN1-type offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, top_tree ? top_tree : tree); diff --git a/asn1/acse/packet-acse-template.c b/asn1/acse/packet-acse-template.c index 67d86ed5f3..0e32bcaa57 100644 --- a/asn1/acse/packet-acse-template.c +++ b/asn1/acse/packet-acse-template.c @@ -68,7 +68,7 @@ static gint ett_acse = -1; static struct SESSION_DATA_STRUCTURE* session = NULL; -static char object_identifier_id[MAX_OID_STR_LEN]; +static const char *object_identifier_id; /* indirect_reference, used to pick up the signalling so we know what kind of data is transferred in SES_DATA_TRANSFER_PDUs */ static guint32 indir_ref=0; |