56 lines
1.7 KiB
INI
56 lines
1.7 KiB
INI
# ocsp.cnf
|
|
# OCSP conformation file
|
|
|
|
#.TYPE_ATTR
|
|
# pkix1explicit also exports the type CertificateSerialNumber. This makes sure asn2wrs uses the locally defined version.
|
|
CertificateSerialNumber TYPE = FT_BYTES DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0
|
|
#.END
|
|
|
|
#.MODULE_IMPORT
|
|
PKIX1Implicit88 pkix1implicit
|
|
PKIX1Explicit88 pkix1explicit
|
|
|
|
#.IMPORT ../x509af/x509af-exp.cnf
|
|
#.IMPORT ../x509ce/x509ce-exp.cnf
|
|
#.INCLUDE ../pkix1implicit/pkix1implicit_exp.cnf
|
|
#.INCLUDE ../pkix1explicit/pkix1explicit_exp.cnf
|
|
|
|
#.EXPORTS
|
|
OCSPResponse
|
|
|
|
#.PDU
|
|
|
|
#.REGISTER
|
|
BasicOCSPResponse B "1.3.6.1.5.5.7.48.1.1" "id-pkix-ocsp-basic"
|
|
ReOcspNonce B "1.3.6.1.5.5.7.48.1.2" "id-pkix-ocsp-nonce"
|
|
CrlID B "1.3.6.1.5.5.7.48.1.3" "id-pkix-ocsp-crl"
|
|
AcceptableResponses B "1.3.6.1.5.5.7.48.1.4" "id-pkix-ocsp-response"
|
|
NULL B "1.3.6.1.5.5.7.48.1.5" "id-pkix-ocsp-nocheck"
|
|
ArchiveCutoff B "1.3.6.1.5.5.7.48.1.6" "id-pkix-ocsp-archive-cutoff"
|
|
ServiceLocator B "1.3.6.1.5.5.7.48.1.7" "id-pkix-ocsp-service-locator"
|
|
|
|
#.NO_EMIT ONLY_VALS
|
|
Version
|
|
|
|
#.TYPE_RENAME
|
|
|
|
#.FIELD_RENAME
|
|
|
|
#.FN_BODY ResponseBytes/responseType FN_VARIANT = _str HF_INDEX = hf_ocsp_responseType_id VAL_PTR = &actx->external.direct_reference
|
|
%(DEFAULT_BODY)s
|
|
actx->external.direct_ref_present = (actx->external.direct_reference != NULL) ? TRUE : FALSE;
|
|
|
|
#.FN_BODY ResponseBytes/response
|
|
gint8 appclass;
|
|
gboolean pc, ind;
|
|
gint32 tag;
|
|
guint32 len;
|
|
/* skip past the T and L */
|
|
offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &appclass, &pc, &tag);
|
|
offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind);
|
|
if (actx->external.direct_ref_present) {
|
|
offset = call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);
|
|
}
|
|
|
|
#.END
|