2004-07-20 09:11:40 +00:00
|
|
|
/* Do not modify this file. */
|
2006-05-24 12:24:54 +00:00
|
|
|
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
2007-11-01 19:36:39 +00:00
|
|
|
/* packet-x509af.c */
|
2009-05-16 22:07:03 +00:00
|
|
|
/* ../../tools/asn2wrs.py -b -e -p x509af -c ./x509af.cnf -s ./packet-x509af-template -D . AuthenticationFramework.asn */
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
/* Input file: packet-x509af-template.c */
|
|
|
|
|
2005-12-06 22:59:30 +00:00
|
|
|
#line 1 "packet-x509af-template.c"
|
2004-07-20 09:11:40 +00:00
|
|
|
/* packet-x509af.c
|
|
|
|
* Routines for X.509 Authentication Framework packet dissection
|
2004-11-30 04:08:16 +00:00
|
|
|
* Ronnie Sahlberg 2004
|
2004-07-20 09:11:40 +00:00
|
|
|
*
|
2005-07-09 02:58:07 +00:00
|
|
|
* $Id$
|
2004-07-20 09:11:40 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-07-20 09:11:40 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <epan/packet.h>
|
2007-08-25 01:14:24 +00:00
|
|
|
#include <epan/oids.h>
|
2007-05-13 20:58:29 +00:00
|
|
|
#include <epan/asn1.h>
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
#include "packet-ber.h"
|
|
|
|
#include "packet-x509af.h"
|
|
|
|
#include "packet-x509ce.h"
|
|
|
|
#include "packet-x509if.h"
|
2004-07-22 07:51:47 +00:00
|
|
|
#include "packet-x509sat.h"
|
2006-05-08 17:52:42 +00:00
|
|
|
#include "packet-ldap.h"
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
#define PNAME "X.509 Authentication Framework"
|
|
|
|
#define PSNAME "X509AF"
|
|
|
|
#define PFNAME "x509af"
|
|
|
|
|
|
|
|
/* Initialize the protocol and registered fields */
|
2004-07-24 22:16:41 +00:00
|
|
|
static int proto_x509af = -1;
|
|
|
|
static int hf_x509af_algorithm_id = -1;
|
|
|
|
static int hf_x509af_extension_id = -1;
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-x509af-hf.c ---*/
|
2005-12-06 22:59:30 +00:00
|
|
|
#line 1 "packet-x509af-hf.c"
|
2004-09-13 12:03:36 +00:00
|
|
|
static int hf_x509af_Certificate_PDU = -1; /* Certificate */
|
|
|
|
static int hf_x509af_CertificatePair_PDU = -1; /* CertificatePair */
|
|
|
|
static int hf_x509af_CertificateList_PDU = -1; /* CertificateList */
|
|
|
|
static int hf_x509af_AttributeCertificate_PDU = -1; /* AttributeCertificate */
|
2005-11-16 07:13:12 +00:00
|
|
|
static int hf_x509af_DSS_Params_PDU = -1; /* DSS_Params */
|
2004-07-20 09:11:40 +00:00
|
|
|
static int hf_x509af_signedCertificate = -1; /* T_signedCertificate */
|
|
|
|
static int hf_x509af_version = -1; /* Version */
|
|
|
|
static int hf_x509af_serialNumber = -1; /* CertificateSerialNumber */
|
|
|
|
static int hf_x509af_signature = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_x509af_issuer = -1; /* Name */
|
|
|
|
static int hf_x509af_validity = -1; /* Validity */
|
2005-11-16 07:13:12 +00:00
|
|
|
static int hf_x509af_subject = -1; /* SubjectName */
|
2004-07-20 09:11:40 +00:00
|
|
|
static int hf_x509af_subjectPublicKeyInfo = -1; /* SubjectPublicKeyInfo */
|
|
|
|
static int hf_x509af_issuerUniqueIdentifier = -1; /* UniqueIdentifier */
|
|
|
|
static int hf_x509af_subjectUniqueIdentifier = -1; /* UniqueIdentifier */
|
|
|
|
static int hf_x509af_extensions = -1; /* Extensions */
|
|
|
|
static int hf_x509af_algorithmIdentifier = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_x509af_encrypted = -1; /* BIT_STRING */
|
2005-11-16 07:13:12 +00:00
|
|
|
static int hf_x509af_rdnSequence = -1; /* RDNSequence */
|
2004-10-30 02:18:44 +00:00
|
|
|
static int hf_x509af_algorithmId = -1; /* T_algorithmId */
|
|
|
|
static int hf_x509af_parameters = -1; /* T_parameters */
|
2004-07-20 09:11:40 +00:00
|
|
|
static int hf_x509af_notBefore = -1; /* Time */
|
|
|
|
static int hf_x509af_notAfter = -1; /* Time */
|
|
|
|
static int hf_x509af_algorithm = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_x509af_subjectPublicKey = -1; /* BIT_STRING */
|
|
|
|
static int hf_x509af_utcTime = -1; /* UTCTime */
|
|
|
|
static int hf_x509af_generalizedTime = -1; /* GeneralizedTime */
|
|
|
|
static int hf_x509af_Extensions_item = -1; /* Extension */
|
2004-10-30 02:36:58 +00:00
|
|
|
static int hf_x509af_extnId = -1; /* T_extnId */
|
|
|
|
static int hf_x509af_critical = -1; /* BOOLEAN */
|
|
|
|
static int hf_x509af_extnValue = -1; /* T_extnValue */
|
2004-07-20 09:11:40 +00:00
|
|
|
static int hf_x509af_userCertificate = -1; /* Certificate */
|
|
|
|
static int hf_x509af_certificationPath = -1; /* ForwardCertificationPath */
|
|
|
|
static int hf_x509af_ForwardCertificationPath_item = -1; /* CrossCertificates */
|
|
|
|
static int hf_x509af_CrossCertificates_item = -1; /* Certificate */
|
2005-02-23 08:57:47 +00:00
|
|
|
static int hf_x509af_theCACertificates = -1; /* SEQUENCE_OF_CertificatePair */
|
2004-07-20 09:11:40 +00:00
|
|
|
static int hf_x509af_theCACertificates_item = -1; /* CertificatePair */
|
|
|
|
static int hf_x509af_issuedByThisCA = -1; /* Certificate */
|
|
|
|
static int hf_x509af_issuedToThisCA = -1; /* Certificate */
|
|
|
|
static int hf_x509af_signedCertificateList = -1; /* T_signedCertificateList */
|
|
|
|
static int hf_x509af_thisUpdate = -1; /* Time */
|
|
|
|
static int hf_x509af_nextUpdate = -1; /* Time */
|
|
|
|
static int hf_x509af_revokedCertificates = -1; /* T_revokedCertificates */
|
|
|
|
static int hf_x509af_revokedCertificates_item = -1; /* T_revokedCertificates_item */
|
2004-10-13 00:16:42 +00:00
|
|
|
static int hf_x509af_revokedUserCertificate = -1; /* CertificateSerialNumber */
|
2004-07-20 09:11:40 +00:00
|
|
|
static int hf_x509af_revocationDate = -1; /* Time */
|
|
|
|
static int hf_x509af_crlEntryExtensions = -1; /* Extensions */
|
|
|
|
static int hf_x509af_crlExtensions = -1; /* Extensions */
|
|
|
|
static int hf_x509af_attributeCertificate = -1; /* AttributeCertificate */
|
2005-02-23 08:57:47 +00:00
|
|
|
static int hf_x509af_acPath = -1; /* SEQUENCE_OF_ACPathData */
|
2004-07-20 09:11:40 +00:00
|
|
|
static int hf_x509af_acPath_item = -1; /* ACPathData */
|
|
|
|
static int hf_x509af_certificate = -1; /* Certificate */
|
|
|
|
static int hf_x509af_signedAttributeCertificateInfo = -1; /* AttributeCertificateInfo */
|
|
|
|
static int hf_x509af_info_subject = -1; /* InfoSubject */
|
|
|
|
static int hf_x509af_baseCertificateID = -1; /* IssuerSerial */
|
|
|
|
static int hf_x509af_infoSubjectName = -1; /* GeneralNames */
|
2004-10-13 00:16:42 +00:00
|
|
|
static int hf_x509af_issuerName = -1; /* GeneralNames */
|
2004-07-20 09:11:40 +00:00
|
|
|
static int hf_x509af_attCertValidityPeriod = -1; /* AttCertValidityPeriod */
|
2005-02-23 08:57:47 +00:00
|
|
|
static int hf_x509af_attributes = -1; /* SEQUENCE_OF_Attribute */
|
2004-07-20 09:11:40 +00:00
|
|
|
static int hf_x509af_attributes_item = -1; /* Attribute */
|
|
|
|
static int hf_x509af_issuerUniqueID = -1; /* UniqueIdentifier */
|
|
|
|
static int hf_x509af_serial = -1; /* CertificateSerialNumber */
|
|
|
|
static int hf_x509af_issuerUID = -1; /* UniqueIdentifier */
|
|
|
|
static int hf_x509af_notBeforeTime = -1; /* GeneralizedTime */
|
|
|
|
static int hf_x509af_notAfterTime = -1; /* GeneralizedTime */
|
|
|
|
static int hf_x509af_assertion_subject = -1; /* AssertionSubject */
|
2005-11-16 07:13:12 +00:00
|
|
|
static int hf_x509af_assertionSubjectName = -1; /* SubjectName */
|
2004-07-20 09:11:40 +00:00
|
|
|
static int hf_x509af_assertionIssuer = -1; /* Name */
|
|
|
|
static int hf_x509af_attCertValidity = -1; /* GeneralizedTime */
|
|
|
|
static int hf_x509af_attType = -1; /* SET_OF_AttributeType */
|
|
|
|
static int hf_x509af_attType_item = -1; /* AttributeType */
|
2005-11-16 07:13:12 +00:00
|
|
|
static int hf_x509af_p = -1; /* INTEGER */
|
|
|
|
static int hf_x509af_q = -1; /* INTEGER */
|
|
|
|
static int hf_x509af_g = -1; /* INTEGER */
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-x509af-hf.c ---*/
|
2010-04-07 16:54:29 +00:00
|
|
|
#line 51 "packet-x509af-template.c"
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
/* Initialize the subtree pointers */
|
2004-11-30 04:08:16 +00:00
|
|
|
static gint ett_pkix_crl = -1;
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-x509af-ett.c ---*/
|
2005-12-06 22:59:30 +00:00
|
|
|
#line 1 "packet-x509af-ett.c"
|
2004-07-20 09:11:40 +00:00
|
|
|
static gint ett_x509af_Certificate = -1;
|
|
|
|
static gint ett_x509af_T_signedCertificate = -1;
|
2005-11-16 07:13:12 +00:00
|
|
|
static gint ett_x509af_SubjectName = -1;
|
2004-07-20 09:11:40 +00:00
|
|
|
static gint ett_x509af_AlgorithmIdentifier = -1;
|
|
|
|
static gint ett_x509af_Validity = -1;
|
|
|
|
static gint ett_x509af_SubjectPublicKeyInfo = -1;
|
|
|
|
static gint ett_x509af_Time = -1;
|
|
|
|
static gint ett_x509af_Extensions = -1;
|
|
|
|
static gint ett_x509af_Extension = -1;
|
|
|
|
static gint ett_x509af_Certificates = -1;
|
|
|
|
static gint ett_x509af_ForwardCertificationPath = -1;
|
|
|
|
static gint ett_x509af_CrossCertificates = -1;
|
|
|
|
static gint ett_x509af_CertificationPath = -1;
|
2005-02-23 08:57:47 +00:00
|
|
|
static gint ett_x509af_SEQUENCE_OF_CertificatePair = -1;
|
2004-07-20 09:11:40 +00:00
|
|
|
static gint ett_x509af_CertificatePair = -1;
|
|
|
|
static gint ett_x509af_CertificateList = -1;
|
|
|
|
static gint ett_x509af_T_signedCertificateList = -1;
|
|
|
|
static gint ett_x509af_T_revokedCertificates = -1;
|
|
|
|
static gint ett_x509af_T_revokedCertificates_item = -1;
|
|
|
|
static gint ett_x509af_AttributeCertificationPath = -1;
|
2005-02-23 08:57:47 +00:00
|
|
|
static gint ett_x509af_SEQUENCE_OF_ACPathData = -1;
|
2004-07-20 09:11:40 +00:00
|
|
|
static gint ett_x509af_ACPathData = -1;
|
|
|
|
static gint ett_x509af_AttributeCertificate = -1;
|
|
|
|
static gint ett_x509af_AttributeCertificateInfo = -1;
|
|
|
|
static gint ett_x509af_InfoSubject = -1;
|
2005-02-23 08:57:47 +00:00
|
|
|
static gint ett_x509af_SEQUENCE_OF_Attribute = -1;
|
2004-07-20 09:11:40 +00:00
|
|
|
static gint ett_x509af_IssuerSerial = -1;
|
|
|
|
static gint ett_x509af_AttCertValidityPeriod = -1;
|
|
|
|
static gint ett_x509af_AttributeCertificateAssertion = -1;
|
|
|
|
static gint ett_x509af_AssertionSubject = -1;
|
|
|
|
static gint ett_x509af_SET_OF_AttributeType = -1;
|
2005-11-16 07:13:12 +00:00
|
|
|
static gint ett_x509af_DSS_Params = -1;
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-x509af-ett.c ---*/
|
2010-04-07 16:54:29 +00:00
|
|
|
#line 55 "packet-x509af-template.c"
|
2004-07-20 09:11:40 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
static const char *algorithm_id;
|
|
|
|
static const char *extension_id;
|
2004-07-24 22:16:41 +00:00
|
|
|
|
|
|
|
|
2004-07-20 09:11:40 +00:00
|
|
|
/*--- Included file: packet-x509af-fn.c ---*/
|
2005-12-06 22:59:30 +00:00
|
|
|
#line 1 "packet-x509af-fn.c"
|
2004-07-29 09:52:14 +00:00
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
const value_string x509af_Version_vals[] = {
|
2004-07-20 09:11:40 +00:00
|
|
|
{ 0, "v1" },
|
|
|
|
{ 1, "v2" },
|
|
|
|
{ 2, "v3" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_Version(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-08-01 16:45:30 +00:00
|
|
|
NULL);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_CertificateSerialNumber(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-08-01 16:45:30 +00:00
|
|
|
NULL);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2004-10-30 02:18:44 +00:00
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
|
2004-10-30 02:18:44 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_T_algorithmId(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2006-05-24 12:24:54 +00:00
|
|
|
#line 69 "x509af.cnf"
|
2005-12-06 22:59:30 +00:00
|
|
|
const char *name;
|
2005-11-16 07:13:12 +00:00
|
|
|
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_x509af_algorithm_id, &algorithm_id);
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2005-12-06 22:59:30 +00:00
|
|
|
|
2004-10-30 02:18:44 +00:00
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-06 02:03:14 +00:00
|
|
|
|
2004-10-30 02:18:44 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_T_parameters(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2006-05-24 12:24:54 +00:00
|
|
|
#line 80 "x509af.cnf"
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(algorithm_id, tvb, offset, actx->pinfo, tree);
|
2004-10-30 02:18:44 +00:00
|
|
|
|
|
|
|
|
2005-12-06 22:59:30 +00:00
|
|
|
|
2004-10-30 02:18:44 +00:00
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t AlgorithmIdentifier_sequence[] = {
|
|
|
|
{ &hf_x509af_algorithmId , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_x509af_T_algorithmId },
|
|
|
|
{ &hf_x509af_parameters , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_T_parameters },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-10-30 02:18:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_AlgorithmIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
AlgorithmIdentifier_sequence, hf_index, ett_x509af_AlgorithmIdentifier);
|
2004-10-30 02:18:44 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-07-20 09:11:40 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_UTCTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2008-08-01 16:45:30 +00:00
|
|
|
offset = dissect_ber_UTCTime(implicit_tag, actx, tree, tvb, offset, hf_index);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-07-20 09:11:40 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_GeneralizedTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_GeneralizedTime(implicit_tag, actx, tree, tvb, offset, hf_index);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
const value_string x509af_Time_vals[] = {
|
2004-07-20 09:11:40 +00:00
|
|
|
{ 0, "utcTime" },
|
|
|
|
{ 1, "generalizedTime" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_choice_t Time_choice[] = {
|
|
|
|
{ 0, &hf_x509af_utcTime , BER_CLASS_UNI, BER_UNI_TAG_UTCTime, BER_FLAGS_NOOWNTAG, dissect_x509af_UTCTime },
|
|
|
|
{ 1, &hf_x509af_generalizedTime, BER_CLASS_UNI, BER_UNI_TAG_GeneralizedTime, BER_FLAGS_NOOWNTAG, dissect_x509af_GeneralizedTime },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_Time(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
Time_choice, hf_index, ett_x509af_Time,
|
|
|
|
NULL);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t Validity_sequence[] = {
|
|
|
|
{ &hf_x509af_notBefore , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509af_Time },
|
|
|
|
{ &hf_x509af_notAfter , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509af_Time },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_Validity(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Validity_sequence, hf_index, ett_x509af_Validity);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-11-16 07:13:12 +00:00
|
|
|
static const value_string x509af_SubjectName_vals[] = {
|
|
|
|
{ 0, "rdnSequence" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_choice_t SubjectName_choice[] = {
|
|
|
|
{ 0, &hf_x509af_rdnSequence , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509if_RDNSequence },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2005-11-16 07:13:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_SubjectName(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2006-05-24 12:24:54 +00:00
|
|
|
#line 107 "x509af.cnf"
|
2005-11-16 07:13:12 +00:00
|
|
|
|
2006-02-16 11:47:16 +00:00
|
|
|
const char* str;
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
SubjectName_choice, hf_index, ett_x509af_SubjectName,
|
|
|
|
NULL);
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
2005-12-06 22:59:30 +00:00
|
|
|
|
2005-11-16 07:13:12 +00:00
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-07-20 09:11:40 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_BIT_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
NULL, hf_index, -1,
|
|
|
|
NULL);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t SubjectPublicKeyInfo_sequence[] = {
|
|
|
|
{ &hf_x509af_algorithm , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AlgorithmIdentifier },
|
|
|
|
{ &hf_x509af_subjectPublicKey, BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_x509af_BIT_STRING },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_SubjectPublicKeyInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
SubjectPublicKeyInfo_sequence, hf_index, ett_x509af_SubjectPublicKeyInfo);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2004-10-30 02:36:58 +00:00
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
|
2004-10-30 02:36:58 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_T_extnId(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2006-05-24 12:24:54 +00:00
|
|
|
#line 86 "x509af.cnf"
|
2005-12-06 22:59:30 +00:00
|
|
|
const char *name;
|
2005-11-16 07:13:12 +00:00
|
|
|
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_x509af_extension_id, &extension_id);
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2005-12-06 22:59:30 +00:00
|
|
|
|
2004-10-30 02:36:58 +00:00
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-07-09 02:58:07 +00:00
|
|
|
|
2004-10-30 02:36:58 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_BOOLEAN(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2008-01-04 16:21:07 +00:00
|
|
|
offset = dissect_ber_boolean(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
|
2004-10-30 02:36:58 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-07-09 02:58:07 +00:00
|
|
|
|
2004-10-30 02:36:58 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_T_extnValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2006-05-24 12:24:54 +00:00
|
|
|
#line 97 "x509af.cnf"
|
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-12-06 22:59:30 +00:00
|
|
|
|
2004-10-30 02:36:58 +00:00
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t Extension_sequence[] = {
|
|
|
|
{ &hf_x509af_extnId , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_x509af_T_extnId },
|
|
|
|
{ &hf_x509af_critical , BER_CLASS_UNI, BER_UNI_TAG_BOOLEAN, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_BOOLEAN },
|
|
|
|
{ &hf_x509af_extnValue , BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_x509af_T_extnValue },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-10-30 02:36:58 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_Extension(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Extension_sequence, hf_index, ett_x509af_Extension);
|
2004-10-30 02:36:58 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2004-07-20 09:11:40 +00:00
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t Extensions_sequence_of[1] = {
|
|
|
|
{ &hf_x509af_Extensions_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_Extension },
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_Extensions(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Extensions_sequence_of, hf_index, ett_x509af_Extensions);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t T_signedCertificate_sequence[] = {
|
|
|
|
{ &hf_x509af_version , BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_x509af_Version },
|
|
|
|
{ &hf_x509af_serialNumber , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_x509af_CertificateSerialNumber },
|
|
|
|
{ &hf_x509af_signature , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AlgorithmIdentifier },
|
|
|
|
{ &hf_x509af_issuer , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG, dissect_x509if_Name },
|
|
|
|
{ &hf_x509af_validity , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_Validity },
|
|
|
|
{ &hf_x509af_subject , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509af_SubjectName },
|
|
|
|
{ &hf_x509af_subjectPublicKeyInfo, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_SubjectPublicKeyInfo },
|
|
|
|
{ &hf_x509af_issuerUniqueIdentifier, BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_x509sat_UniqueIdentifier },
|
|
|
|
{ &hf_x509af_subjectUniqueIdentifier, BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_x509sat_UniqueIdentifier },
|
|
|
|
{ &hf_x509af_extensions , BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL, dissect_x509af_Extensions },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_T_signedCertificate(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
T_signedCertificate_sequence, hf_index, ett_x509af_T_signedCertificate);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t Certificate_sequence[] = {
|
|
|
|
{ &hf_x509af_signedCertificate, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_T_signedCertificate },
|
|
|
|
{ &hf_x509af_algorithmIdentifier, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AlgorithmIdentifier },
|
|
|
|
{ &hf_x509af_encrypted , BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_x509af_BIT_STRING },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_Certificate(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Certificate_sequence, hf_index, ett_x509af_Certificate);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t CrossCertificates_set_of[1] = {
|
|
|
|
{ &hf_x509af_CrossCertificates_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_Certificate },
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_CrossCertificates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_set_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
CrossCertificates_set_of, hf_index, ett_x509af_CrossCertificates);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t ForwardCertificationPath_sequence_of[1] = {
|
|
|
|
{ &hf_x509af_ForwardCertificationPath_item, BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_x509af_CrossCertificates },
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_ForwardCertificationPath(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
ForwardCertificationPath_sequence_of, hf_index, ett_x509af_ForwardCertificationPath);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t Certificates_sequence[] = {
|
|
|
|
{ &hf_x509af_userCertificate, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_Certificate },
|
|
|
|
{ &hf_x509af_certificationPath, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_ForwardCertificationPath },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-07-24 22:53:27 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_Certificates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Certificates_sequence, hf_index, ett_x509af_Certificates);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t CertificatePair_sequence[] = {
|
|
|
|
{ &hf_x509af_issuedByThisCA, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_x509af_Certificate },
|
|
|
|
{ &hf_x509af_issuedToThisCA, BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_x509af_Certificate },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_CertificatePair(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
CertificatePair_sequence, hf_index, ett_x509af_CertificatePair);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t SEQUENCE_OF_CertificatePair_sequence_of[1] = {
|
|
|
|
{ &hf_x509af_theCACertificates_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_CertificatePair },
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_SEQUENCE_OF_CertificatePair(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
SEQUENCE_OF_CertificatePair_sequence_of, hf_index, ett_x509af_SEQUENCE_OF_CertificatePair);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t CertificationPath_sequence[] = {
|
|
|
|
{ &hf_x509af_userCertificate, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_Certificate },
|
|
|
|
{ &hf_x509af_theCACertificates, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_SEQUENCE_OF_CertificatePair },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-07-24 22:59:02 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_CertificationPath(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
CertificationPath_sequence, hf_index, ett_x509af_CertificationPath);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t T_revokedCertificates_item_sequence[] = {
|
|
|
|
{ &hf_x509af_revokedUserCertificate, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_x509af_CertificateSerialNumber },
|
|
|
|
{ &hf_x509af_revocationDate, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509af_Time },
|
|
|
|
{ &hf_x509af_crlEntryExtensions, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_Extensions },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_T_revokedCertificates_item(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
T_revokedCertificates_item_sequence, hf_index, ett_x509af_T_revokedCertificates_item);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t T_revokedCertificates_sequence_of[1] = {
|
|
|
|
{ &hf_x509af_revokedCertificates_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_T_revokedCertificates_item },
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_T_revokedCertificates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
T_revokedCertificates_sequence_of, hf_index, ett_x509af_T_revokedCertificates);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t T_signedCertificateList_sequence[] = {
|
|
|
|
{ &hf_x509af_version , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_Version },
|
|
|
|
{ &hf_x509af_signature , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AlgorithmIdentifier },
|
|
|
|
{ &hf_x509af_issuer , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG, dissect_x509if_Name },
|
|
|
|
{ &hf_x509af_thisUpdate , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509af_Time },
|
|
|
|
{ &hf_x509af_nextUpdate , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509af_Time },
|
|
|
|
{ &hf_x509af_revokedCertificates, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_T_revokedCertificates },
|
|
|
|
{ &hf_x509af_crlExtensions, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_x509af_Extensions },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_T_signedCertificateList(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
T_signedCertificateList_sequence, hf_index, ett_x509af_T_signedCertificateList);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t CertificateList_sequence[] = {
|
|
|
|
{ &hf_x509af_signedCertificateList, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_T_signedCertificateList },
|
|
|
|
{ &hf_x509af_algorithmIdentifier, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AlgorithmIdentifier },
|
|
|
|
{ &hf_x509af_encrypted , BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_x509af_BIT_STRING },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_CertificateList(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
CertificateList_sequence, hf_index, ett_x509af_CertificateList);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t IssuerSerial_sequence[] = {
|
|
|
|
{ &hf_x509af_issuerName , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509ce_GeneralNames },
|
|
|
|
{ &hf_x509af_serial , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_x509af_CertificateSerialNumber },
|
|
|
|
{ &hf_x509af_issuerUID , BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509sat_UniqueIdentifier },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_IssuerSerial(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
IssuerSerial_sequence, hf_index, ett_x509af_IssuerSerial);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
static const value_string x509af_InfoSubject_vals[] = {
|
2004-07-20 09:11:40 +00:00
|
|
|
{ 0, "baseCertificateID" },
|
|
|
|
{ 1, "subjectName" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_choice_t InfoSubject_choice[] = {
|
|
|
|
{ 0, &hf_x509af_baseCertificateID, BER_CLASS_CON, 0, 0, dissect_x509af_IssuerSerial },
|
|
|
|
{ 1, &hf_x509af_infoSubjectName, BER_CLASS_CON, 1, 0, dissect_x509ce_GeneralNames },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_InfoSubject(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
InfoSubject_choice, hf_index, ett_x509af_InfoSubject,
|
|
|
|
NULL);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t AttCertValidityPeriod_sequence[] = {
|
|
|
|
{ &hf_x509af_notBeforeTime, BER_CLASS_UNI, BER_UNI_TAG_GeneralizedTime, BER_FLAGS_NOOWNTAG, dissect_x509af_GeneralizedTime },
|
|
|
|
{ &hf_x509af_notAfterTime , BER_CLASS_UNI, BER_UNI_TAG_GeneralizedTime, BER_FLAGS_NOOWNTAG, dissect_x509af_GeneralizedTime },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_AttCertValidityPeriod(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
AttCertValidityPeriod_sequence, hf_index, ett_x509af_AttCertValidityPeriod);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t SEQUENCE_OF_Attribute_sequence_of[1] = {
|
|
|
|
{ &hf_x509af_attributes_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509if_Attribute },
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_SEQUENCE_OF_Attribute(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
SEQUENCE_OF_Attribute_sequence_of, hf_index, ett_x509af_SEQUENCE_OF_Attribute);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t AttributeCertificateInfo_sequence[] = {
|
|
|
|
{ &hf_x509af_version , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_Version },
|
|
|
|
{ &hf_x509af_info_subject , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509af_InfoSubject },
|
|
|
|
{ &hf_x509af_issuerName , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509ce_GeneralNames },
|
|
|
|
{ &hf_x509af_signature , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AlgorithmIdentifier },
|
|
|
|
{ &hf_x509af_serialNumber , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_x509af_CertificateSerialNumber },
|
|
|
|
{ &hf_x509af_attCertValidityPeriod, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AttCertValidityPeriod },
|
|
|
|
{ &hf_x509af_attributes , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_SEQUENCE_OF_Attribute },
|
|
|
|
{ &hf_x509af_issuerUniqueID, BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509sat_UniqueIdentifier },
|
|
|
|
{ &hf_x509af_extensions , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_Extensions },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_AttributeCertificateInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
AttributeCertificateInfo_sequence, hf_index, ett_x509af_AttributeCertificateInfo);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t AttributeCertificate_sequence[] = {
|
|
|
|
{ &hf_x509af_signedAttributeCertificateInfo, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AttributeCertificateInfo },
|
|
|
|
{ &hf_x509af_algorithmIdentifier, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AlgorithmIdentifier },
|
|
|
|
{ &hf_x509af_encrypted , BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_x509af_BIT_STRING },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_AttributeCertificate(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
AttributeCertificate_sequence, hf_index, ett_x509af_AttributeCertificate);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t ACPathData_sequence[] = {
|
|
|
|
{ &hf_x509af_certificate , BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_x509af_Certificate },
|
|
|
|
{ &hf_x509af_attributeCertificate, BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_x509af_AttributeCertificate },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-11-21 10:16:06 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_ACPathData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
ACPathData_sequence, hf_index, ett_x509af_ACPathData);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t SEQUENCE_OF_ACPathData_sequence_of[1] = {
|
|
|
|
{ &hf_x509af_acPath_item , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_ACPathData },
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_SEQUENCE_OF_ACPathData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
SEQUENCE_OF_ACPathData_sequence_of, hf_index, ett_x509af_SEQUENCE_OF_ACPathData);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t AttributeCertificationPath_sequence[] = {
|
|
|
|
{ &hf_x509af_attributeCertificate, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AttributeCertificate },
|
|
|
|
{ &hf_x509af_acPath , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_SEQUENCE_OF_ACPathData },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-07-24 22:59:02 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_AttributeCertificationPath(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
AttributeCertificationPath_sequence, hf_index, ett_x509af_AttributeCertificationPath);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
static const value_string x509af_AssertionSubject_vals[] = {
|
2004-07-20 09:11:40 +00:00
|
|
|
{ 0, "baseCertificateID" },
|
|
|
|
{ 1, "subjectName" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_choice_t AssertionSubject_choice[] = {
|
|
|
|
{ 0, &hf_x509af_baseCertificateID, BER_CLASS_CON, 0, 0, dissect_x509af_IssuerSerial },
|
|
|
|
{ 1, &hf_x509af_assertionSubjectName, BER_CLASS_CON, 1, 0, dissect_x509af_SubjectName },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_AssertionSubject(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
AssertionSubject_choice, hf_index, ett_x509af_AssertionSubject,
|
|
|
|
NULL);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t SET_OF_AttributeType_set_of[1] = {
|
|
|
|
{ &hf_x509af_attType_item , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_x509if_AttributeType },
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_SET_OF_AttributeType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_set_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
SET_OF_AttributeType_set_of, hf_index, ett_x509af_SET_OF_AttributeType);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t AttributeCertificateAssertion_sequence[] = {
|
|
|
|
{ &hf_x509af_assertion_subject, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_x509af_AssertionSubject },
|
|
|
|
{ &hf_x509af_assertionIssuer, BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_x509if_Name },
|
|
|
|
{ &hf_x509af_attCertValidity, BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_x509af_GeneralizedTime },
|
|
|
|
{ &hf_x509af_attType , BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL, dissect_x509af_SET_OF_AttributeType },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
2004-07-24 22:59:02 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_AttributeCertificateAssertion(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
AttributeCertificateAssertion_sequence, hf_index, ett_x509af_AttributeCertificateAssertion);
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-08-01 16:45:30 +00:00
|
|
|
NULL);
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-11-05 20:41:44 +00:00
|
|
|
static const ber_sequence_t DSS_Params_sequence[] = {
|
|
|
|
{ &hf_x509af_p , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_x509af_INTEGER },
|
|
|
|
{ &hf_x509af_q , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_x509af_INTEGER },
|
|
|
|
{ &hf_x509af_g , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_x509af_INTEGER },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-11-16 07:13:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_x509af_DSS_Params(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-05 20:41:44 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
DSS_Params_sequence, hf_index, ett_x509af_DSS_Params);
|
2005-11-16 07:13:12 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2004-09-13 12:03:36 +00:00
|
|
|
/*--- PDUs ---*/
|
2004-07-20 09:11:40 +00:00
|
|
|
|
2007-03-21 10:22:22 +00:00
|
|
|
static void dissect_Certificate_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2007-05-13 20:58:29 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
|
|
|
dissect_x509af_Certificate(FALSE, tvb, 0, &asn1_ctx, tree, hf_x509af_Certificate_PDU);
|
2004-07-24 22:30:49 +00:00
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static void dissect_CertificatePair_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2007-05-13 20:58:29 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
|
|
|
dissect_x509af_CertificatePair(FALSE, tvb, 0, &asn1_ctx, tree, hf_x509af_CertificatePair_PDU);
|
2004-07-24 22:30:49 +00:00
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static void dissect_CertificateList_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2007-05-13 20:58:29 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
|
|
|
dissect_x509af_CertificateList(FALSE, tvb, 0, &asn1_ctx, tree, hf_x509af_CertificateList_PDU);
|
2004-07-24 22:53:27 +00:00
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static void dissect_AttributeCertificate_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2007-05-13 20:58:29 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
|
|
|
dissect_x509af_AttributeCertificate(FALSE, tvb, 0, &asn1_ctx, tree, hf_x509af_AttributeCertificate_PDU);
|
2004-07-24 22:53:27 +00:00
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static void dissect_DSS_Params_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2007-05-13 20:58:29 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
|
|
|
dissect_x509af_DSS_Params(FALSE, tvb, 0, &asn1_ctx, tree, hf_x509af_DSS_Params_PDU);
|
2005-11-16 07:13:12 +00:00
|
|
|
}
|
2004-07-24 22:53:27 +00:00
|
|
|
|
|
|
|
|
2004-09-13 12:03:36 +00:00
|
|
|
/*--- End of included file: packet-x509af-fn.c ---*/
|
2010-04-07 16:54:29 +00:00
|
|
|
#line 60 "packet-x509af-template.c"
|
2004-07-24 22:53:27 +00:00
|
|
|
|
2005-11-17 11:16:37 +00:00
|
|
|
const char *x509af_get_last_algorithm_id(void) {
|
2005-11-16 07:13:12 +00:00
|
|
|
return algorithm_id;
|
|
|
|
}
|
|
|
|
|
2004-07-24 22:53:27 +00:00
|
|
|
|
2004-11-30 04:08:16 +00:00
|
|
|
static int
|
|
|
|
dissect_pkix_crl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
|
|
|
|
{
|
|
|
|
proto_item *item=NULL;
|
|
|
|
proto_tree *tree=NULL;
|
2007-05-13 20:58:29 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
2004-11-30 04:08:16 +00:00
|
|
|
|
2009-08-09 06:26:46 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKIX-CRL");
|
2004-11-30 04:08:16 +00:00
|
|
|
|
2009-09-24 19:50:43 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_INFO, "Certificate Revocation List");
|
2004-11-30 04:08:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
if(parent_tree){
|
|
|
|
item=proto_tree_add_text(parent_tree, tvb, 0, -1, "Certificate Revocation List");
|
|
|
|
tree = proto_item_add_subtree(item, ett_pkix_crl);
|
|
|
|
}
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
return dissect_x509af_CertificateList(FALSE, tvb, 0, &asn1_ctx, tree, -1);
|
2004-11-30 04:08:16 +00:00
|
|
|
}
|
|
|
|
|
2004-07-20 09:11:40 +00:00
|
|
|
/*--- proto_register_x509af ----------------------------------------------*/
|
|
|
|
void proto_register_x509af(void) {
|
|
|
|
|
|
|
|
/* List of fields */
|
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_x509af_algorithm_id,
|
|
|
|
{ "Algorithm Id", "x509af.algorithm.id",
|
2006-05-08 17:52:42 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }},
|
2004-07-24 22:16:41 +00:00
|
|
|
{ &hf_x509af_extension_id,
|
|
|
|
{ "Extension Id", "x509af.extension.id",
|
2006-05-08 17:52:42 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-x509af-hfarr.c ---*/
|
2005-12-06 22:59:30 +00:00
|
|
|
#line 1 "packet-x509af-hfarr.c"
|
2004-09-13 12:03:36 +00:00
|
|
|
{ &hf_x509af_Certificate_PDU,
|
|
|
|
{ "Certificate", "x509af.Certificate",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Certificate", HFILL }},
|
2004-09-13 12:03:36 +00:00
|
|
|
{ &hf_x509af_CertificatePair_PDU,
|
|
|
|
{ "CertificatePair", "x509af.CertificatePair",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.CertificatePair", HFILL }},
|
2004-09-13 12:03:36 +00:00
|
|
|
{ &hf_x509af_CertificateList_PDU,
|
|
|
|
{ "CertificateList", "x509af.CertificateList",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.CertificateList", HFILL }},
|
2004-09-13 12:03:36 +00:00
|
|
|
{ &hf_x509af_AttributeCertificate_PDU,
|
|
|
|
{ "AttributeCertificate", "x509af.AttributeCertificate",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.AttributeCertificate", HFILL }},
|
2005-11-16 07:13:12 +00:00
|
|
|
{ &hf_x509af_DSS_Params_PDU,
|
|
|
|
{ "DSS-Params", "x509af.DSS_Params",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.DSS_Params", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_signedCertificate,
|
|
|
|
{ "signedCertificate", "x509af.signedCertificate",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.T_signedCertificate", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_version,
|
|
|
|
{ "version", "x509af.version",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_INT32, BASE_DEC, VALS(x509af_Version_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Version", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_serialNumber,
|
|
|
|
{ "serialNumber", "x509af.serialNumber",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.CertificateSerialNumber", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_signature,
|
|
|
|
{ "signature", "x509af.signature",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.AlgorithmIdentifier", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_issuer,
|
|
|
|
{ "issuer", "x509af.issuer",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509if_Name_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509if.Name", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_validity,
|
|
|
|
{ "validity", "x509af.validity",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Validity", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_subject,
|
|
|
|
{ "subject", "x509af.subject",
|
2005-11-16 07:13:12 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509af_SubjectName_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.SubjectName", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_subjectPublicKeyInfo,
|
|
|
|
{ "subjectPublicKeyInfo", "x509af.subjectPublicKeyInfo",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.SubjectPublicKeyInfo", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_issuerUniqueIdentifier,
|
|
|
|
{ "issuerUniqueIdentifier", "x509af.issuerUniqueIdentifier",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509sat.UniqueIdentifier", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_subjectUniqueIdentifier,
|
|
|
|
{ "subjectUniqueIdentifier", "x509af.subjectUniqueIdentifier",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509sat.UniqueIdentifier", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_extensions,
|
|
|
|
{ "extensions", "x509af.extensions",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Extensions", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_algorithmIdentifier,
|
|
|
|
{ "algorithmIdentifier", "x509af.algorithmIdentifier",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.AlgorithmIdentifier", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_encrypted,
|
|
|
|
{ "encrypted", "x509af.encrypted",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.BIT_STRING", HFILL }},
|
2005-11-16 07:13:12 +00:00
|
|
|
{ &hf_x509af_rdnSequence,
|
|
|
|
{ "rdnSequence", "x509af.rdnSequence",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509if.RDNSequence", HFILL }},
|
2004-10-30 02:18:44 +00:00
|
|
|
{ &hf_x509af_algorithmId,
|
|
|
|
{ "algorithmId", "x509af.algorithmId",
|
2005-12-06 22:59:30 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.T_algorithmId", HFILL }},
|
2004-10-30 02:18:44 +00:00
|
|
|
{ &hf_x509af_parameters,
|
|
|
|
{ "parameters", "x509af.parameters",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.T_parameters", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_notBefore,
|
|
|
|
{ "notBefore", "x509af.notBefore",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Time", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_notAfter,
|
|
|
|
{ "notAfter", "x509af.notAfter",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Time", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_algorithm,
|
|
|
|
{ "algorithm", "x509af.algorithm",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.AlgorithmIdentifier", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_subjectPublicKey,
|
|
|
|
{ "subjectPublicKey", "x509af.subjectPublicKey",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.BIT_STRING", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_utcTime,
|
|
|
|
{ "utcTime", "x509af.utcTime",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.UTCTime", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_generalizedTime,
|
|
|
|
{ "generalizedTime", "x509af.generalizedTime",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.GeneralizedTime", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_Extensions_item,
|
2009-05-16 22:07:03 +00:00
|
|
|
{ "Extension", "x509af.Extension",
|
2004-07-20 09:11:40 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Extension", HFILL }},
|
2004-10-30 02:36:58 +00:00
|
|
|
{ &hf_x509af_extnId,
|
|
|
|
{ "extnId", "x509af.extnId",
|
2005-12-06 22:59:30 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.T_extnId", HFILL }},
|
2004-10-30 02:36:58 +00:00
|
|
|
{ &hf_x509af_critical,
|
|
|
|
{ "critical", "x509af.critical",
|
2009-06-26 03:59:01 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.BOOLEAN", HFILL }},
|
2004-10-30 02:36:58 +00:00
|
|
|
{ &hf_x509af_extnValue,
|
|
|
|
{ "extnValue", "x509af.extnValue",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.T_extnValue", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_userCertificate,
|
|
|
|
{ "userCertificate", "x509af.userCertificate",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Certificate", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_certificationPath,
|
|
|
|
{ "certificationPath", "x509af.certificationPath",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.ForwardCertificationPath", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_ForwardCertificationPath_item,
|
2009-05-16 22:07:03 +00:00
|
|
|
{ "CrossCertificates", "x509af.CrossCertificates",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.CrossCertificates", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_CrossCertificates_item,
|
2009-05-16 22:07:03 +00:00
|
|
|
{ "Certificate", "x509af.Certificate",
|
2004-07-20 09:11:40 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Certificate", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_theCACertificates,
|
|
|
|
{ "theCACertificates", "x509af.theCACertificates",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.SEQUENCE_OF_CertificatePair", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_theCACertificates_item,
|
2009-05-16 22:07:03 +00:00
|
|
|
{ "CertificatePair", "x509af.CertificatePair",
|
2004-07-20 09:11:40 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.CertificatePair", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_issuedByThisCA,
|
|
|
|
{ "issuedByThisCA", "x509af.issuedByThisCA",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Certificate", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_issuedToThisCA,
|
|
|
|
{ "issuedToThisCA", "x509af.issuedToThisCA",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Certificate", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_signedCertificateList,
|
|
|
|
{ "signedCertificateList", "x509af.signedCertificateList",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.T_signedCertificateList", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_thisUpdate,
|
|
|
|
{ "thisUpdate", "x509af.thisUpdate",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Time", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_nextUpdate,
|
|
|
|
{ "nextUpdate", "x509af.nextUpdate",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Time", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_revokedCertificates,
|
|
|
|
{ "revokedCertificates", "x509af.revokedCertificates",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.T_revokedCertificates", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_revokedCertificates_item,
|
2009-05-16 22:07:03 +00:00
|
|
|
{ "revokedCertificates item", "x509af.revokedCertificates_item",
|
2004-07-20 09:11:40 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.T_revokedCertificates_item", HFILL }},
|
2004-10-13 00:16:42 +00:00
|
|
|
{ &hf_x509af_revokedUserCertificate,
|
2004-07-20 09:11:40 +00:00
|
|
|
{ "userCertificate", "x509af.userCertificate",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.CertificateSerialNumber", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_revocationDate,
|
|
|
|
{ "revocationDate", "x509af.revocationDate",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Time", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_crlEntryExtensions,
|
|
|
|
{ "crlEntryExtensions", "x509af.crlEntryExtensions",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Extensions", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_crlExtensions,
|
|
|
|
{ "crlExtensions", "x509af.crlExtensions",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Extensions", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_attributeCertificate,
|
|
|
|
{ "attributeCertificate", "x509af.attributeCertificate",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.AttributeCertificate", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_acPath,
|
|
|
|
{ "acPath", "x509af.acPath",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.SEQUENCE_OF_ACPathData", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_acPath_item,
|
2009-05-16 22:07:03 +00:00
|
|
|
{ "ACPathData", "x509af.ACPathData",
|
2004-07-20 09:11:40 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.ACPathData", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_certificate,
|
|
|
|
{ "certificate", "x509af.certificate",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.Certificate", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_signedAttributeCertificateInfo,
|
|
|
|
{ "signedAttributeCertificateInfo", "x509af.signedAttributeCertificateInfo",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.AttributeCertificateInfo", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_info_subject,
|
|
|
|
{ "subject", "x509af.subject",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509af_InfoSubject_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.InfoSubject", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_baseCertificateID,
|
|
|
|
{ "baseCertificateID", "x509af.baseCertificateID",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.IssuerSerial", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_infoSubjectName,
|
|
|
|
{ "subjectName", "x509af.subjectName",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509ce.GeneralNames", HFILL }},
|
2004-10-13 00:16:42 +00:00
|
|
|
{ &hf_x509af_issuerName,
|
2004-07-20 09:11:40 +00:00
|
|
|
{ "issuer", "x509af.issuer",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509ce.GeneralNames", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_attCertValidityPeriod,
|
|
|
|
{ "attCertValidityPeriod", "x509af.attCertValidityPeriod",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.AttCertValidityPeriod", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_attributes,
|
|
|
|
{ "attributes", "x509af.attributes",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.SEQUENCE_OF_Attribute", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_attributes_item,
|
2009-05-16 22:07:03 +00:00
|
|
|
{ "Attribute", "x509af.Attribute",
|
2004-07-20 09:11:40 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509if.Attribute", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_issuerUniqueID,
|
|
|
|
{ "issuerUniqueID", "x509af.issuerUniqueID",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509sat.UniqueIdentifier", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_serial,
|
|
|
|
{ "serial", "x509af.serial",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.CertificateSerialNumber", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_issuerUID,
|
|
|
|
{ "issuerUID", "x509af.issuerUID",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509sat.UniqueIdentifier", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_notBeforeTime,
|
|
|
|
{ "notBeforeTime", "x509af.notBeforeTime",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.GeneralizedTime", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_notAfterTime,
|
|
|
|
{ "notAfterTime", "x509af.notAfterTime",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.GeneralizedTime", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_assertion_subject,
|
|
|
|
{ "subject", "x509af.subject",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509af_AssertionSubject_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.AssertionSubject", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_assertionSubjectName,
|
|
|
|
{ "subjectName", "x509af.subjectName",
|
2005-11-16 07:13:12 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509af_SubjectName_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.SubjectName", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_assertionIssuer,
|
|
|
|
{ "issuer", "x509af.issuer",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(x509if_Name_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509if.Name", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_attCertValidity,
|
|
|
|
{ "attCertValidity", "x509af.attCertValidity",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.GeneralizedTime", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_attType,
|
|
|
|
{ "attType", "x509af.attType",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.SET_OF_AttributeType", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
{ &hf_x509af_attType_item,
|
2009-05-16 22:07:03 +00:00
|
|
|
{ "AttributeType", "x509af.AttributeType",
|
2006-02-16 11:47:16 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509if.AttributeType", HFILL }},
|
2005-11-16 07:13:12 +00:00
|
|
|
{ &hf_x509af_p,
|
|
|
|
{ "p", "x509af.p",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.INTEGER", HFILL }},
|
2005-11-16 07:13:12 +00:00
|
|
|
{ &hf_x509af_q,
|
|
|
|
{ "q", "x509af.q",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.INTEGER", HFILL }},
|
2005-11-16 07:13:12 +00:00
|
|
|
{ &hf_x509af_g,
|
|
|
|
{ "g", "x509af.g",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"x509af.INTEGER", HFILL }},
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-x509af-hfarr.c ---*/
|
2010-04-07 16:54:29 +00:00
|
|
|
#line 101 "packet-x509af-template.c"
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* List of subtrees */
|
|
|
|
static gint *ett[] = {
|
2004-11-30 04:08:16 +00:00
|
|
|
&ett_pkix_crl,
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-x509af-ettarr.c ---*/
|
2005-12-06 22:59:30 +00:00
|
|
|
#line 1 "packet-x509af-ettarr.c"
|
2004-07-20 09:11:40 +00:00
|
|
|
&ett_x509af_Certificate,
|
|
|
|
&ett_x509af_T_signedCertificate,
|
2005-11-16 07:13:12 +00:00
|
|
|
&ett_x509af_SubjectName,
|
2004-07-20 09:11:40 +00:00
|
|
|
&ett_x509af_AlgorithmIdentifier,
|
|
|
|
&ett_x509af_Validity,
|
|
|
|
&ett_x509af_SubjectPublicKeyInfo,
|
|
|
|
&ett_x509af_Time,
|
|
|
|
&ett_x509af_Extensions,
|
|
|
|
&ett_x509af_Extension,
|
|
|
|
&ett_x509af_Certificates,
|
|
|
|
&ett_x509af_ForwardCertificationPath,
|
|
|
|
&ett_x509af_CrossCertificates,
|
|
|
|
&ett_x509af_CertificationPath,
|
2005-02-23 08:57:47 +00:00
|
|
|
&ett_x509af_SEQUENCE_OF_CertificatePair,
|
2004-07-20 09:11:40 +00:00
|
|
|
&ett_x509af_CertificatePair,
|
|
|
|
&ett_x509af_CertificateList,
|
|
|
|
&ett_x509af_T_signedCertificateList,
|
|
|
|
&ett_x509af_T_revokedCertificates,
|
|
|
|
&ett_x509af_T_revokedCertificates_item,
|
|
|
|
&ett_x509af_AttributeCertificationPath,
|
2005-02-23 08:57:47 +00:00
|
|
|
&ett_x509af_SEQUENCE_OF_ACPathData,
|
2004-07-20 09:11:40 +00:00
|
|
|
&ett_x509af_ACPathData,
|
|
|
|
&ett_x509af_AttributeCertificate,
|
|
|
|
&ett_x509af_AttributeCertificateInfo,
|
|
|
|
&ett_x509af_InfoSubject,
|
2005-02-23 08:57:47 +00:00
|
|
|
&ett_x509af_SEQUENCE_OF_Attribute,
|
2004-07-20 09:11:40 +00:00
|
|
|
&ett_x509af_IssuerSerial,
|
|
|
|
&ett_x509af_AttCertValidityPeriod,
|
|
|
|
&ett_x509af_AttributeCertificateAssertion,
|
|
|
|
&ett_x509af_AssertionSubject,
|
|
|
|
&ett_x509af_SET_OF_AttributeType,
|
2005-11-16 07:13:12 +00:00
|
|
|
&ett_x509af_DSS_Params,
|
2004-07-20 09:11:40 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-x509af-ettarr.c ---*/
|
2010-04-07 16:54:29 +00:00
|
|
|
#line 107 "packet-x509af-template.c"
|
2004-07-20 09:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Register protocol */
|
|
|
|
proto_x509af = proto_register_protocol(PNAME, PSNAME, PFNAME);
|
|
|
|
|
|
|
|
/* Register fields and subtrees */
|
|
|
|
proto_register_field_array(proto_x509af, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*--- proto_reg_handoff_x509af -------------------------------------------*/
|
|
|
|
void proto_reg_handoff_x509af(void) {
|
2004-11-30 04:08:16 +00:00
|
|
|
dissector_handle_t pkix_crl_handle;
|
|
|
|
|
|
|
|
pkix_crl_handle = new_create_dissector_handle(dissect_pkix_crl, proto_x509af);
|
|
|
|
dissector_add_string("media_type", "application/pkix-crl", pkix_crl_handle);
|
|
|
|
|
2004-10-30 02:18:44 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-x509af-dis-tab.c ---*/
|
2005-12-06 22:59:30 +00:00
|
|
|
#line 1 "packet-x509af-dis-tab.c"
|
2005-07-09 02:58:07 +00:00
|
|
|
register_ber_oid_dissector("2.5.4.36", dissect_Certificate_PDU, proto_x509af, "id-at-userCertificate");
|
|
|
|
register_ber_oid_dissector("2.5.4.37", dissect_Certificate_PDU, proto_x509af, "id-at-cAcertificate");
|
|
|
|
register_ber_oid_dissector("2.5.4.38", dissect_CertificateList_PDU, proto_x509af, "id-at-authorityRevocationList");
|
|
|
|
register_ber_oid_dissector("2.5.4.39", dissect_CertificateList_PDU, proto_x509af, "id-at-certificateRevocationList");
|
|
|
|
register_ber_oid_dissector("2.5.4.40", dissect_CertificatePair_PDU, proto_x509af, "id-at-crossCertificatePair");
|
|
|
|
register_ber_oid_dissector("2.5.4.58", dissect_AttributeCertificate_PDU, proto_x509af, "id-at-attributeCertificate");
|
|
|
|
register_ber_oid_dissector("2.5.4.59", dissect_CertificateList_PDU, proto_x509af, "id-at-attributeCertificateRevocationList");
|
2005-11-16 07:13:12 +00:00
|
|
|
register_ber_oid_dissector("1.2.840.10040.4.1", dissect_DSS_Params_PDU, proto_x509af, "id-dsa");
|
2004-10-30 02:18:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*--- End of included file: packet-x509af-dis-tab.c ---*/
|
2010-04-07 16:54:29 +00:00
|
|
|
#line 127 "packet-x509af-template.c"
|
2004-07-29 09:52:14 +00:00
|
|
|
|
|
|
|
/*XXX these should really go to a better place but since that
|
|
|
|
I have not that ITU standard, ill put it here for the time
|
|
|
|
being.
|
|
|
|
Only implemented those algorithms that take no parameters
|
|
|
|
for the time being, ronnie
|
|
|
|
*/
|
|
|
|
/* from http://www.alvestrand.no/objectid/1.3.14.3.2.html */
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.2", dissect_ber_oid_NULL_callback, proto_x509af, "md4WithRSA");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.3", dissect_ber_oid_NULL_callback, proto_x509af, "md5WithRSA");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.4", dissect_ber_oid_NULL_callback, proto_x509af, "md4WithRSAEncryption");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.6", dissect_ber_oid_NULL_callback, proto_x509af, "desECB");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.11", dissect_ber_oid_NULL_callback, proto_x509af, "rsaSignature");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.14", dissect_ber_oid_NULL_callback, proto_x509af, "mdc2WithRSASignature");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.15", dissect_ber_oid_NULL_callback, proto_x509af, "shaWithRSASignature");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.16", dissect_ber_oid_NULL_callback, proto_x509af, "dhWithCommonModulus");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.17", dissect_ber_oid_NULL_callback, proto_x509af, "desEDE");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.18", dissect_ber_oid_NULL_callback, proto_x509af, "sha");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.19", dissect_ber_oid_NULL_callback, proto_x509af, "mdc-2");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.20", dissect_ber_oid_NULL_callback, proto_x509af, "dsaCommon");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.21", dissect_ber_oid_NULL_callback, proto_x509af, "dsaCommonWithSHA");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.22", dissect_ber_oid_NULL_callback, proto_x509af, "rsaKeyTransport");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.23", dissect_ber_oid_NULL_callback, proto_x509af, "keyed-hash-seal");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.24", dissect_ber_oid_NULL_callback, proto_x509af, "md2WithRSASignature");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.25", dissect_ber_oid_NULL_callback, proto_x509af, "md5WithRSASignature");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.26", dissect_ber_oid_NULL_callback, proto_x509af, "SHA-1");
|
2008-10-01 05:23:58 +00:00
|
|
|
register_ber_oid_dissector("1.3.14.3.2.27", dissect_ber_oid_NULL_callback, proto_x509af, "dsaWithSHA1");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.28", dissect_ber_oid_NULL_callback, proto_x509af, "dsaWithCommonSHA1");
|
|
|
|
register_ber_oid_dissector("1.3.14.3.2.29", dissect_ber_oid_NULL_callback, proto_x509af, "sha-1WithRSAEncryption");
|
2006-05-08 17:52:42 +00:00
|
|
|
|
|
|
|
/* these will generally be encoded as ";binary" in LDAP */
|
|
|
|
|
|
|
|
register_ldap_name_dissector("cACertificate", dissect_Certificate_PDU, proto_x509af);
|
2009-06-02 09:20:10 +00:00
|
|
|
register_ldap_name_dissector("userCertificate", dissect_Certificate_PDU, proto_x509af);
|
2006-05-08 17:52:42 +00:00
|
|
|
|
|
|
|
register_ldap_name_dissector("certificateRevocationList", dissect_CertificateList_PDU, proto_x509af);
|
|
|
|
register_ldap_name_dissector("crl", dissect_CertificateList_PDU, proto_x509af);
|
|
|
|
|
|
|
|
register_ldap_name_dissector("authorityRevocationList", dissect_CertificateList_PDU, proto_x509af);
|
|
|
|
register_ldap_name_dissector("arl", dissect_CertificateList_PDU, proto_x509af);
|
|
|
|
|
|
|
|
register_ldap_name_dissector("crossCertificatePair", dissect_CertificatePair_PDU, proto_x509af);
|
|
|
|
|
2007-01-13 12:59:27 +00:00
|
|
|
register_ber_syntax_dissector("Certificate", proto_x509af, dissect_Certificate_PDU);
|
|
|
|
register_ber_oid_syntax(".cer", NULL, "Certificate");
|
|
|
|
register_ber_oid_syntax(".crt", NULL, "Certificate");
|
|
|
|
register_ber_syntax_dissector("CertificateList", proto_x509af, dissect_CertificateList_PDU);
|
|
|
|
register_ber_oid_syntax(".crl", NULL, "CertificateList");
|
|
|
|
register_ber_syntax_dissector("CrossCertificatePair", proto_x509af, dissect_CertificatePair_PDU);
|
|
|
|
|
2004-07-20 09:11:40 +00:00
|
|
|
}
|
|
|
|
|