From 3b770d5c7c9aa12a455d6307b762b3fca875fbf7 Mon Sep 17 00:00:00 2001 From: Tomas Kukosa Date: Mon, 14 Nov 2005 10:02:31 +0000 Subject: - 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 --- asn1/ocsp/ocsp.cnf | 5 ++--- asn1/ocsp/packet-ocsp-template.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'asn1/ocsp') diff --git a/asn1/ocsp/ocsp.cnf b/asn1/ocsp/ocsp.cnf index 567ef511bd..1f61c4372d 100644 --- a/asn1/ocsp/ocsp.cnf +++ b/asn1/ocsp/ocsp.cnf @@ -31,9 +31,8 @@ ServiceLocator B "1.3.6.1.5.5.7.48.1.7" "id-pkix-ocsp-service-locator" #.FIELD_RENAME -#.FN_BODY ResponseBytes/responseType - offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset, - hf_ocsp_responseType_id, responseType_id); +#.FN_PARS ResponseBytes/responseType + FN_VARIANT = _str HF_INDEX = hf_ocsp_responseType_id VAL_PTR = &responseType_id #.FN_BODY ResponseBytes/response gint8 class; diff --git a/asn1/ocsp/packet-ocsp-template.c b/asn1/ocsp/packet-ocsp-template.c index 888a52943b..45b513c329 100644 --- a/asn1/ocsp/packet-ocsp-template.c +++ b/asn1/ocsp/packet-ocsp-template.c @@ -53,7 +53,7 @@ static int hf_ocsp_responseType_id = -1; static gint ett_ocsp = -1; #include "packet-ocsp-ett.c" -static char responseType_id[BER_MAX_OID_STR_LEN]; +static const char *responseType_id; #include "packet-ocsp-fn.c" -- cgit v1.2.3