aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/ocsp
diff options
context:
space:
mode:
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"