1# ocsp.cnf
2# OCSP conformation file
3
4#.TYPE_ATTR
5# pkix1explicit also exports the type CertificateSerialNumber. This makes sure asn2wrs uses the locally defined version.
6CertificateSerialNumber  TYPE = FT_BYTES  DISPLAY = BASE_NONE  STRINGS = NULL  BITMASK = 0
7#.END
8
9#.MODULE_IMPORT
10PKIX1Implicit88 pkix1implicit
11PKIX1Explicit88 pkix1explicit
12
13#.IMPORT ../x509af/x509af-exp.cnf
14#.IMPORT ../x509ce/x509ce-exp.cnf
15#.INCLUDE ../pkix1implicit/pkix1implicit_exp.cnf
16#.INCLUDE ../pkix1explicit/pkix1explicit_exp.cnf
17
18#.EXPORTS
19OCSPResponse
20
21#.PDU
22
23#.REGISTER
24BasicOCSPResponse	B	"1.3.6.1.5.5.7.48.1.1"	"id-pkix-ocsp-basic"
25ReOcspNonce		B	"1.3.6.1.5.5.7.48.1.2"	"id-pkix-ocsp-nonce"
26CrlID				B	"1.3.6.1.5.5.7.48.1.3"	"id-pkix-ocsp-crl"
27AcceptableResponses	B	"1.3.6.1.5.5.7.48.1.4"	"id-pkix-ocsp-response"
28NULL				B	"1.3.6.1.5.5.7.48.1.5"	"id-pkix-ocsp-nocheck"
29ArchiveCutoff		B	"1.3.6.1.5.5.7.48.1.6"	"id-pkix-ocsp-archive-cutoff"
30ServiceLocator		B	"1.3.6.1.5.5.7.48.1.7"	"id-pkix-ocsp-service-locator"
31
32#.NO_EMIT ONLY_VALS
33Version
34
35#.TYPE_RENAME
36
37#.FIELD_RENAME
38
39#.FN_BODY ResponseBytes/responseType FN_VARIANT = _str HF_INDEX = hf_ocsp_responseType_id VAL_PTR = &actx->external.direct_reference
40%(DEFAULT_BODY)s
41  actx->external.direct_ref_present = (actx->external.direct_reference != NULL) ? TRUE : FALSE;
42
43#.FN_BODY ResponseBytes/response
44  gint8 appclass;
45  gboolean pc, ind;
46  gint32 tag;
47  guint32 len;
48  /* skip past the T and L  */
49  offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &appclass, &pc, &tag);
50  offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind);
51  if (actx->external.direct_ref_present) {
52    offset = call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
53  }
54
55#.END
56