aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/ocsp
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2005-11-14 10:02:31 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2005-11-14 10:02:31 +0000
commit3b770d5c7c9aa12a455d6307b762b3fca875fbf7 (patch)
treee8f6231cfc7a837d8fc9901a7a676180dce93bd1 /asn1/ocsp
parent0496eb5dcabb32c36084b2efb620fe6fe9a50b12 (diff)
- 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/ocsp')
-rw-r--r--asn1/ocsp/ocsp.cnf5
-rw-r--r--asn1/ocsp/packet-ocsp-template.c2
2 files changed, 3 insertions, 4 deletions
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"