2004-10-05 09:18:55 +00:00
|
|
|
# x509.cnf
|
|
|
|
# X509 conformation file
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
2007-10-16 13:59:40 +00:00
|
|
|
#.IMPORT ../x509ce/x509ce-exp.cnf
|
|
|
|
#.IMPORT ../x509if/x509if-exp.cnf
|
|
|
|
#.IMPORT ../x509sat/x509sat-exp.cnf
|
2004-10-05 09:18:55 +00:00
|
|
|
|
2008-11-10 13:36:24 +00:00
|
|
|
#.MODULE_EXPORTS
|
|
|
|
EXTENSION
|
2004-11-21 10:16:06 +00:00
|
|
|
ACPathData
|
2004-10-30 02:18:44 +00:00
|
|
|
AlgorithmIdentifier
|
2004-11-21 10:16:06 +00:00
|
|
|
AttCertValidityPeriod
|
2004-10-05 09:18:55 +00:00
|
|
|
AttributeCertificate
|
|
|
|
AttributeCertificateAssertion
|
2004-11-21 10:16:06 +00:00
|
|
|
AttributeCertificateInfo
|
2004-10-05 09:18:55 +00:00
|
|
|
AttributeCertificationPath
|
|
|
|
Certificate
|
2010-04-21 10:14:04 +00:00
|
|
|
Certificate_PDU
|
2004-10-05 09:18:55 +00:00
|
|
|
Certificates
|
|
|
|
CertificateList
|
2004-11-21 10:16:06 +00:00
|
|
|
CertificatePair
|
2004-10-05 09:18:55 +00:00
|
|
|
CertificateSerialNumber
|
|
|
|
CertificationPath
|
2004-11-21 10:16:06 +00:00
|
|
|
CrossCertificates
|
|
|
|
Extension
|
|
|
|
Extensions
|
|
|
|
ForwardCertificationPath
|
|
|
|
IssuerSerial
|
2004-10-05 09:18:55 +00:00
|
|
|
SubjectPublicKeyInfo
|
2004-11-21 10:16:06 +00:00
|
|
|
Time
|
|
|
|
Validity
|
|
|
|
Version
|
2004-10-05 09:18:55 +00:00
|
|
|
|
|
|
|
#.PDU
|
2004-10-26 13:04:09 +00:00
|
|
|
|
|
|
|
#.REGISTER
|
2007-05-13 20:58:29 +00:00
|
|
|
Certificate B "2.5.4.36" "id-at-userCertificate"
|
|
|
|
Certificate B "2.5.4.37" "id-at-cAcertificate"
|
|
|
|
CertificateList B "2.5.4.38" "id-at-authorityRevocationList"
|
|
|
|
CertificateList B "2.5.4.39" "id-at-certificateRevocationList"
|
|
|
|
CertificatePair B "2.5.4.40" "id-at-crossCertificatePair"
|
2012-12-07 11:40:29 +00:00
|
|
|
CertificateList B "2.5.4.53" "id-at-deltaRevocationList"
|
2007-05-13 20:58:29 +00:00
|
|
|
AttributeCertificate B "2.5.4.58" "id-at-attributeCertificate"
|
|
|
|
CertificateList B "2.5.4.59" "id-at-attributeCertificateRevocationList"
|
|
|
|
|
|
|
|
DSS-Params B "1.2.840.10040.4.1" "id-dsa"
|
2004-10-05 09:18:55 +00:00
|
|
|
|
|
|
|
#.TYPE_RENAME
|
|
|
|
AttributeCertificateInfo/subject InfoSubject
|
|
|
|
AttributeCertificateAssertion/subject AssertionSubject
|
|
|
|
|
|
|
|
#.FIELD_RENAME
|
2004-10-13 00:16:42 +00:00
|
|
|
AttributeCertificateInfo/issuer issuerName
|
2004-10-05 09:18:55 +00:00
|
|
|
AttributeCertificateInfo/subject info_subject
|
|
|
|
AttributeCertificateAssertion/subject assertion_subject
|
|
|
|
|
|
|
|
AttributeCertificateAssertion/issuer assertionIssuer
|
|
|
|
|
|
|
|
AttributeCertificateInfo/subject/subjectName infoSubjectName
|
|
|
|
AttributeCertificateAssertion/subject/subjectName assertionSubjectName
|
2004-10-13 00:16:42 +00:00
|
|
|
IssuerSerial/issuer issuerName
|
|
|
|
CertificateList/signedCertificateList/revokedCertificates/_item/userCertificate revokedUserCertificate
|
2004-10-05 09:18:55 +00:00
|
|
|
#.END
|
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS AlgorithmIdentifier/algorithmId
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_x509af_algorithm_id VAL_PTR = &algorithm_id
|
|
|
|
|
2005-11-16 07:13:12 +00:00
|
|
|
#.FN_BODY AlgorithmIdentifier/algorithmId
|
2005-12-06 22:59:30 +00:00
|
|
|
const char *name;
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if(algorithm_id) {
|
2007-11-01 19:36:39 +00:00
|
|
|
name = oid_resolved_from_string(algorithm_id);
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
proto_item_append_text(tree, " (%%s)", name ? name : algorithm_id);
|
|
|
|
}
|
2004-10-30 02:18:44 +00:00
|
|
|
|
|
|
|
#.FN_BODY AlgorithmIdentifier/parameters
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(algorithm_id, tvb, offset, actx->pinfo, tree);
|
2004-10-05 09:18:55 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS Extension/extnId
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_x509af_extension_id VAL_PTR = &extension_id
|
2004-10-30 02:36:58 +00:00
|
|
|
|
2005-11-16 07:13:12 +00:00
|
|
|
#.FN_BODY Extension/extnId
|
2005-12-06 22:59:30 +00:00
|
|
|
const char *name;
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if(extension_id) {
|
2007-11-01 19:36:39 +00:00
|
|
|
name = oid_resolved_from_string(extension_id);
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
proto_item_append_text(tree, " (%%s)", name ? name : extension_id);
|
|
|
|
}
|
|
|
|
|
2004-10-30 02:36:58 +00:00
|
|
|
#.FN_BODY Extension/extnValue
|
2005-07-09 02:58:07 +00:00
|
|
|
gint8 class;
|
2004-10-30 02:36:58 +00:00
|
|
|
gboolean pc, ind;
|
2005-07-09 02:58:07 +00:00
|
|
|
gint32 tag;
|
2004-10-30 02:36:58 +00:00
|
|
|
guint32 len;
|
|
|
|
/* skip past the T and L */
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &class, &pc, &tag);
|
|
|
|
offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind);
|
|
|
|
offset=call_ber_oid_callback(extension_id, tvb, offset, actx->pinfo, tree);
|
2004-10-30 02:36:58 +00:00
|
|
|
|
2005-11-16 07:13:12 +00:00
|
|
|
#.FN_BODY SubjectName
|
|
|
|
|
2006-02-16 11:47:16 +00:00
|
|
|
const char* str;
|
2005-11-16 07:13:12 +00:00
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
2006-02-16 11:47:16 +00:00
|
|
|
str = x509if_get_last_dn();
|
|
|
|
proto_item_append_text(proto_item_get_parent(tree), " (%%s)", str?str:"");
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
#.END
|