2004-12-24 11:32:13 +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-08-24 07:12:04 +00:00
|
|
|
/* ./packet-crmf.c */
|
2006-05-24 12:24:54 +00:00
|
|
|
/* ../../tools/asn2wrs.py -b -e -p crmf -c crmf.cnf -s packet-crmf-template CRMF.asn */
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
/* Input file: packet-crmf-template.c */
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-crmf-template.c"
|
2004-12-24 11:32:13 +00:00
|
|
|
/* packet-crmf.c
|
|
|
|
* Routines for RFC2511 Certificate Request Message Format packet dissection
|
|
|
|
* Ronnie Sahlberg 2004
|
|
|
|
*
|
2005-08-02 05:39:45 +00:00
|
|
|
* $Id$
|
2004-12-24 11:32:13 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-12-24 11:32:13 +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>
|
|
|
|
#include <epan/conversation.h>
|
2007-05-13 20:58:29 +00:00
|
|
|
#include <epan/asn1.h>
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "packet-ber.h"
|
|
|
|
#include "packet-crmf.h"
|
|
|
|
#include "packet-cms.h"
|
|
|
|
#include "packet-pkix1explicit.h"
|
|
|
|
#include "packet-pkix1implicit.h"
|
|
|
|
|
|
|
|
#define PNAME "Certificate Request Message Format"
|
|
|
|
#define PSNAME "CRMF"
|
|
|
|
#define PFNAME "crmf"
|
|
|
|
|
|
|
|
/* Initialize the protocol and registered fields */
|
|
|
|
int proto_crmf = -1;
|
|
|
|
static int hf_crmf_type_oid = -1;
|
|
|
|
|
|
|
|
/*--- Included file: packet-crmf-hf.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-crmf-hf.c"
|
2005-10-27 11:54:55 +00:00
|
|
|
static int hf_crmf_PBMParameter_PDU = -1; /* PBMParameter */
|
2004-12-24 11:32:13 +00:00
|
|
|
static int hf_crmf_utcTime = -1; /* UTCTime */
|
|
|
|
static int hf_crmf_generalTime = -1; /* GeneralizedTime */
|
|
|
|
static int hf_crmf_CertReqMessages_item = -1; /* CertReqMsg */
|
|
|
|
static int hf_crmf_certReq = -1; /* CertRequest */
|
|
|
|
static int hf_crmf_pop = -1; /* ProofOfPossession */
|
2005-02-23 08:57:47 +00:00
|
|
|
static int hf_crmf_regInfo = -1; /* SEQUENCE_SIZE_1_MAX_OF_AttributeTypeAndValue */
|
2004-12-24 11:32:13 +00:00
|
|
|
static int hf_crmf_regInfo_item = -1; /* AttributeTypeAndValue */
|
|
|
|
static int hf_crmf_certReqId = -1; /* INTEGER */
|
|
|
|
static int hf_crmf_certTemplate = -1; /* CertTemplate */
|
|
|
|
static int hf_crmf_controls = -1; /* Controls */
|
|
|
|
static int hf_crmf_version = -1; /* Version */
|
|
|
|
static int hf_crmf_serialNumber = -1; /* INTEGER */
|
|
|
|
static int hf_crmf_signingAlg = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_crmf_template_issuer = -1; /* Name */
|
|
|
|
static int hf_crmf_validity = -1; /* OptionalValidity */
|
|
|
|
static int hf_crmf_subject = -1; /* Name */
|
|
|
|
static int hf_crmf_publicKey = -1; /* SubjectPublicKeyInfo */
|
|
|
|
static int hf_crmf_issuerUID = -1; /* UniqueIdentifier */
|
|
|
|
static int hf_crmf_subjectUID = -1; /* UniqueIdentifier */
|
|
|
|
static int hf_crmf_extensions = -1; /* Extensions */
|
|
|
|
static int hf_crmf_notBefore = -1; /* Time */
|
|
|
|
static int hf_crmf_notAfter = -1; /* Time */
|
|
|
|
static int hf_crmf_Controls_item = -1; /* AttributeTypeAndValue */
|
|
|
|
static int hf_crmf_type = -1; /* T_type */
|
|
|
|
static int hf_crmf_value = -1; /* T_value */
|
|
|
|
static int hf_crmf_raVerified = -1; /* NULL */
|
|
|
|
static int hf_crmf_signature = -1; /* POPOSigningKey */
|
|
|
|
static int hf_crmf_keyEncipherment = -1; /* POPOPrivKey */
|
|
|
|
static int hf_crmf_keyAgreement = -1; /* POPOPrivKey */
|
|
|
|
static int hf_crmf_poposkInput = -1; /* POPOSigningKeyInput */
|
|
|
|
static int hf_crmf_algorithmIdentifier = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_crmf_sk_signature = -1; /* BIT_STRING */
|
|
|
|
static int hf_crmf_authInfo = -1; /* T_authInfo */
|
|
|
|
static int hf_crmf_sender = -1; /* GeneralName */
|
|
|
|
static int hf_crmf_publicKeyMAC = -1; /* PKMACValue */
|
|
|
|
static int hf_crmf_algId = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_crmf_pkmac_value = -1; /* BIT_STRING */
|
|
|
|
static int hf_crmf_salt = -1; /* OCTET_STRING */
|
|
|
|
static int hf_crmf_owf = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_crmf_iterationCount = -1; /* INTEGER */
|
|
|
|
static int hf_crmf_mac = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_crmf_thisMessage = -1; /* BIT_STRING */
|
|
|
|
static int hf_crmf_subsequentMessage = -1; /* SubsequentMessage */
|
|
|
|
static int hf_crmf_dhMAC = -1; /* BIT_STRING */
|
|
|
|
static int hf_crmf_action = -1; /* T_action */
|
2005-02-23 08:57:47 +00:00
|
|
|
static int hf_crmf_pubInfos = -1; /* SEQUENCE_SIZE_1_MAX_OF_SinglePubInfo */
|
2004-12-24 11:32:13 +00:00
|
|
|
static int hf_crmf_pubInfos_item = -1; /* SinglePubInfo */
|
|
|
|
static int hf_crmf_pubMethod = -1; /* T_pubMethod */
|
|
|
|
static int hf_crmf_pubLocation = -1; /* GeneralName */
|
|
|
|
static int hf_crmf_encryptedPrivKey = -1; /* EncryptedKey */
|
|
|
|
static int hf_crmf_keyGenParameters = -1; /* KeyGenParameters */
|
|
|
|
static int hf_crmf_archiveRemGenPrivKey = -1; /* BOOLEAN */
|
|
|
|
static int hf_crmf_encryptedValue = -1; /* EncryptedValue */
|
|
|
|
static int hf_crmf_envelopedData = -1; /* EnvelopedData */
|
|
|
|
static int hf_crmf_intendedAlg = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_crmf_symmAlg = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_crmf_encSymmKey = -1; /* BIT_STRING */
|
|
|
|
static int hf_crmf_keyAlg = -1; /* AlgorithmIdentifier */
|
|
|
|
static int hf_crmf_valueHint = -1; /* OCTET_STRING */
|
|
|
|
static int hf_crmf_encValue = -1; /* BIT_STRING */
|
|
|
|
static int hf_crmf_issuer = -1; /* GeneralName */
|
|
|
|
|
|
|
|
/*--- End of included file: packet-crmf-hf.c ---*/
|
2007-05-13 20:58:29 +00:00
|
|
|
#line 52 "packet-crmf-template.c"
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
|
|
|
|
/*--- Included file: packet-crmf-ett.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-crmf-ett.c"
|
2004-12-24 11:32:13 +00:00
|
|
|
static gint ett_crmf_Time = -1;
|
|
|
|
static gint ett_crmf_CertReqMessages = -1;
|
|
|
|
static gint ett_crmf_CertReqMsg = -1;
|
2005-02-23 08:57:47 +00:00
|
|
|
static gint ett_crmf_SEQUENCE_SIZE_1_MAX_OF_AttributeTypeAndValue = -1;
|
2004-12-24 11:32:13 +00:00
|
|
|
static gint ett_crmf_CertRequest = -1;
|
|
|
|
static gint ett_crmf_CertTemplate = -1;
|
|
|
|
static gint ett_crmf_OptionalValidity = -1;
|
|
|
|
static gint ett_crmf_Controls = -1;
|
|
|
|
static gint ett_crmf_AttributeTypeAndValue = -1;
|
|
|
|
static gint ett_crmf_ProofOfPossession = -1;
|
|
|
|
static gint ett_crmf_POPOSigningKey = -1;
|
|
|
|
static gint ett_crmf_POPOSigningKeyInput = -1;
|
|
|
|
static gint ett_crmf_T_authInfo = -1;
|
|
|
|
static gint ett_crmf_PKMACValue = -1;
|
|
|
|
static gint ett_crmf_PBMParameter = -1;
|
|
|
|
static gint ett_crmf_POPOPrivKey = -1;
|
|
|
|
static gint ett_crmf_PKIPublicationInfo = -1;
|
2005-02-23 08:57:47 +00:00
|
|
|
static gint ett_crmf_SEQUENCE_SIZE_1_MAX_OF_SinglePubInfo = -1;
|
2004-12-24 11:32:13 +00:00
|
|
|
static gint ett_crmf_SinglePubInfo = -1;
|
|
|
|
static gint ett_crmf_PKIArchiveOptions = -1;
|
|
|
|
static gint ett_crmf_EncryptedKey = -1;
|
|
|
|
static gint ett_crmf_EncryptedValue = -1;
|
|
|
|
static gint ett_crmf_CertId = -1;
|
|
|
|
|
|
|
|
/*--- End of included file: packet-crmf-ett.c ---*/
|
2007-05-13 20:58:29 +00:00
|
|
|
#line 55 "packet-crmf-template.c"
|
2004-12-24 11:32:13 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
static const char *object_identifier_id;
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*--- Included file: packet-crmf-fn.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-crmf-fn.c"
|
2004-12-24 11:32:13 +00:00
|
|
|
/*--- Fields for imported types ---*/
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_signingAlg_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_AlgorithmIdentifier(TRUE, tvb, offset, actx, tree, hf_crmf_signingAlg);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_template_issuer_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_Name(TRUE, tvb, offset, actx, tree, hf_crmf_template_issuer);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_subject_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_Name(TRUE, tvb, offset, actx, tree, hf_crmf_subject);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_publicKey(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_SubjectPublicKeyInfo(FALSE, tvb, offset, actx, tree, hf_crmf_publicKey);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_publicKey_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_SubjectPublicKeyInfo(TRUE, tvb, offset, actx, tree, hf_crmf_publicKey);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_extensions_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_Extensions(TRUE, tvb, offset, actx, tree, hf_crmf_extensions);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_algorithmIdentifier(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_AlgorithmIdentifier(FALSE, tvb, offset, actx, tree, hf_crmf_algorithmIdentifier);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_sender_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1implicit_GeneralName(TRUE, tvb, offset, actx, tree, hf_crmf_sender);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_algId(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_AlgorithmIdentifier(FALSE, tvb, offset, actx, tree, hf_crmf_algId);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_owf(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_AlgorithmIdentifier(FALSE, tvb, offset, actx, tree, hf_crmf_owf);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_mac(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_AlgorithmIdentifier(FALSE, tvb, offset, actx, tree, hf_crmf_mac);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_pubLocation(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1implicit_GeneralName(FALSE, tvb, offset, actx, tree, hf_crmf_pubLocation);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_envelopedData_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_cms_EnvelopedData(TRUE, tvb, offset, actx, tree, hf_crmf_envelopedData);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_intendedAlg_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_AlgorithmIdentifier(TRUE, tvb, offset, actx, tree, hf_crmf_intendedAlg);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_symmAlg_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_AlgorithmIdentifier(TRUE, tvb, offset, actx, tree, hf_crmf_symmAlg);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_keyAlg_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1explicit_AlgorithmIdentifier(TRUE, tvb, offset, actx, tree, hf_crmf_keyAlg);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_issuer(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_pkix1implicit_GeneralName(FALSE, tvb, offset, actx, tree, hf_crmf_issuer);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
static const value_string crmf_Version_vals[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, "v1" },
|
|
|
|
{ 1, "v2" },
|
|
|
|
{ 2, "v3" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_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,
|
2005-06-26 05:48:50 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_version_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_Version(TRUE, tvb, offset, actx, tree, hf_crmf_version);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_UniqueIdentifier(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-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_issuerUID_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_UniqueIdentifier(TRUE, tvb, offset, actx, tree, hf_crmf_issuerUID);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_subjectUID_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_UniqueIdentifier(TRUE, tvb, offset, actx, tree, hf_crmf_subjectUID);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_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_) {
|
2004-12-24 11:32:13 +00:00
|
|
|
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_UTCTime,
|
2007-05-15 05:49:43 +00:00
|
|
|
actx, tree, tvb, offset, hf_index,
|
2005-09-02 05:43:49 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_utcTime(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_UTCTime(FALSE, tvb, offset, actx, tree, hf_crmf_utcTime);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_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-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_generalTime(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_GeneralizedTime(FALSE, tvb, offset, actx, tree, hf_crmf_generalTime);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
static const value_string crmf_Time_vals[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, "utcTime" },
|
|
|
|
{ 1, "generalTime" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_choice_t Time_choice[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, BER_CLASS_UNI, BER_UNI_TAG_UTCTime, BER_FLAGS_NOOWNTAG, dissect_utcTime },
|
|
|
|
{ 1, BER_CLASS_UNI, BER_UNI_TAG_GeneralizedTime, BER_FLAGS_NOOWNTAG, dissect_generalTime },
|
|
|
|
{ 0, 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_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-05-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_choice(actx, tree, tvb, offset,
|
|
|
|
Time_choice, hf_index, ett_crmf_Time,
|
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_notBefore_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_Time(TRUE, tvb, offset, actx, tree, hf_crmf_notBefore);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_notAfter_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_Time(TRUE, tvb, offset, actx, tree, hf_crmf_notAfter);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_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,
|
2005-06-26 05:48:50 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_certReqId(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_INTEGER(FALSE, tvb, offset, actx, tree, hf_crmf_certReqId);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_serialNumber(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_INTEGER(FALSE, tvb, offset, actx, tree, hf_crmf_serialNumber);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_serialNumber_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_INTEGER(TRUE, tvb, offset, actx, tree, hf_crmf_serialNumber);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_iterationCount(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_INTEGER(FALSE, tvb, offset, actx, tree, hf_crmf_iterationCount);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t OptionalValidity_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG|BER_FLAGS_NOTCHKTAG, dissect_notBefore_impl },
|
|
|
|
{ BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG|BER_FLAGS_NOTCHKTAG, dissect_notAfter_impl },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_OptionalValidity(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
OptionalValidity_sequence, hf_index, ett_crmf_OptionalValidity);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_validity_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_OptionalValidity(TRUE, tvb, offset, actx, tree, hf_crmf_validity);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t CertTemplate_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_version_impl },
|
|
|
|
{ BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_serialNumber_impl },
|
|
|
|
{ BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_signingAlg_impl },
|
|
|
|
{ BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_template_issuer_impl },
|
|
|
|
{ BER_CLASS_CON, 4, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_validity_impl },
|
|
|
|
{ BER_CLASS_CON, 5, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_subject_impl },
|
|
|
|
{ BER_CLASS_CON, 6, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_publicKey_impl },
|
|
|
|
{ BER_CLASS_CON, 7, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_issuerUID_impl },
|
|
|
|
{ BER_CLASS_CON, 8, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_subjectUID_impl },
|
|
|
|
{ BER_CLASS_CON, 9, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_extensions_impl },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_CertTemplate(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
CertTemplate_sequence, hf_index, ett_crmf_CertTemplate);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_certTemplate(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_CertTemplate(FALSE, tvb, offset, actx, tree, hf_crmf_certTemplate);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_T_type(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_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_crmf_type_oid, &object_identifier_id);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_type(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_T_type(FALSE, tvb, offset, actx, tree, hf_crmf_type);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_T_value(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 59 "crmf.cnf"
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_value(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_T_value(FALSE, tvb, offset, actx, tree, hf_crmf_value);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t AttributeTypeAndValue_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_type },
|
|
|
|
{ BER_CLASS_ANY, 0, BER_FLAGS_NOOWNTAG, dissect_value },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_AttributeTypeAndValue(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
AttributeTypeAndValue_sequence, hf_index, ett_crmf_AttributeTypeAndValue);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_regInfo_item(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_AttributeTypeAndValue(FALSE, tvb, offset, actx, tree, hf_crmf_regInfo_item);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_Controls_item(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_AttributeTypeAndValue(FALSE, tvb, offset, actx, tree, hf_crmf_Controls_item);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t Controls_sequence_of[1] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_Controls_item },
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_Controls(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Controls_sequence_of, hf_index, ett_crmf_Controls);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_controls(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_Controls(FALSE, tvb, offset, actx, tree, hf_crmf_controls);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t CertRequest_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_certReqId },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_certTemplate },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_controls },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_CertRequest(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
CertRequest_sequence, hf_index, ett_crmf_CertRequest);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_certReq(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_CertRequest(FALSE, tvb, offset, actx, tree, hf_crmf_certReq);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_NULL(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_null(implicit_tag, actx, tree, tvb, offset, hf_index);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_raVerified_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_NULL(TRUE, tvb, offset, actx, tree, hf_crmf_raVerified);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_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-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_sk_signature(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_BIT_STRING(FALSE, tvb, offset, actx, tree, hf_crmf_sk_signature);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_pkmac_value(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_BIT_STRING(FALSE, tvb, offset, actx, tree, hf_crmf_pkmac_value);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_thisMessage_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_BIT_STRING(TRUE, tvb, offset, actx, tree, hf_crmf_thisMessage);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_dhMAC_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_BIT_STRING(TRUE, tvb, offset, actx, tree, hf_crmf_dhMAC);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_encSymmKey_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_BIT_STRING(TRUE, tvb, offset, actx, tree, hf_crmf_encSymmKey);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_encValue(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_BIT_STRING(FALSE, tvb, offset, actx, tree, hf_crmf_encValue);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t PKMACValue_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_algId },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_pkmac_value },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_PKMACValue(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
PKMACValue_sequence, hf_index, ett_crmf_PKMACValue);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_publicKeyMAC(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_PKMACValue(FALSE, tvb, offset, actx, tree, hf_crmf_publicKeyMAC);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
static const value_string crmf_T_authInfo_vals[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, "sender" },
|
|
|
|
{ 1, "publicKeyMAC" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_choice_t T_authInfo_choice[] = {
|
2006-08-16 05:58:39 +00:00
|
|
|
{ 0, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_sender_impl },
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 1, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_publicKeyMAC },
|
|
|
|
{ 0, 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_T_authInfo(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_choice(actx, tree, tvb, offset,
|
|
|
|
T_authInfo_choice, hf_index, ett_crmf_T_authInfo,
|
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_authInfo(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_T_authInfo(FALSE, tvb, offset, actx, tree, hf_crmf_authInfo);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t POPOSigningKeyInput_sequence[] = {
|
2005-09-02 05:43:49 +00:00
|
|
|
{ BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_authInfo },
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_publicKey },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_POPOSigningKeyInput(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
POPOSigningKeyInput_sequence, hf_index, ett_crmf_POPOSigningKeyInput);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_poposkInput_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_POPOSigningKeyInput(TRUE, tvb, offset, actx, tree, hf_crmf_poposkInput);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t POPOSigningKey_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_poposkInput_impl },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_algorithmIdentifier },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_sk_signature },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_POPOSigningKey(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
POPOSigningKey_sequence, hf_index, ett_crmf_POPOSigningKey);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_signature_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_POPOSigningKey(TRUE, tvb, offset, actx, tree, hf_crmf_signature);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
const value_string crmf_SubsequentMessage_vals[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, "encrCert" },
|
|
|
|
{ 1, "challengeResp" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_SubsequentMessage(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,
|
2005-06-26 05:48:50 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_subsequentMessage_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_SubsequentMessage(TRUE, tvb, offset, actx, tree, hf_crmf_subsequentMessage);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
const value_string crmf_POPOPrivKey_vals[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, "thisMessage" },
|
|
|
|
{ 1, "subsequentMessage" },
|
|
|
|
{ 2, "dhMAC" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_choice_t POPOPrivKey_choice[] = {
|
2006-08-16 05:58:39 +00:00
|
|
|
{ 0, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_thisMessage_impl },
|
|
|
|
{ 1, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_subsequentMessage_impl },
|
|
|
|
{ 2, BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_dhMAC_impl },
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_POPOPrivKey(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_choice(actx, tree, tvb, offset,
|
|
|
|
POPOPrivKey_choice, hf_index, ett_crmf_POPOPrivKey,
|
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_keyEncipherment_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_POPOPrivKey(TRUE, tvb, offset, actx, tree, hf_crmf_keyEncipherment);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_keyAgreement_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_POPOPrivKey(TRUE, tvb, offset, actx, tree, hf_crmf_keyAgreement);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
const value_string crmf_ProofOfPossession_vals[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, "raVerified" },
|
|
|
|
{ 1, "signature" },
|
|
|
|
{ 2, "keyEncipherment" },
|
|
|
|
{ 3, "keyAgreement" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_choice_t ProofOfPossession_choice[] = {
|
2006-08-16 05:58:39 +00:00
|
|
|
{ 0, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_raVerified_impl },
|
|
|
|
{ 1, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_signature_impl },
|
|
|
|
{ 2, BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_keyEncipherment_impl },
|
|
|
|
{ 3, BER_CLASS_CON, 3, BER_FLAGS_IMPLTAG, dissect_keyAgreement_impl },
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_ProofOfPossession(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_choice(actx, tree, tvb, offset,
|
|
|
|
ProofOfPossession_choice, hf_index, ett_crmf_ProofOfPossession,
|
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_pop(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_ProofOfPossession(FALSE, tvb, offset, actx, tree, hf_crmf_pop);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t SEQUENCE_SIZE_1_MAX_OF_AttributeTypeAndValue_sequence_of[1] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_regInfo_item },
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_SEQUENCE_SIZE_1_MAX_OF_AttributeTypeAndValue(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
SEQUENCE_SIZE_1_MAX_OF_AttributeTypeAndValue_sequence_of, hf_index, ett_crmf_SEQUENCE_SIZE_1_MAX_OF_AttributeTypeAndValue);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_regInfo(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_SEQUENCE_SIZE_1_MAX_OF_AttributeTypeAndValue(FALSE, tvb, offset, actx, tree, hf_crmf_regInfo);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t CertReqMsg_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_certReq },
|
2005-09-02 05:43:49 +00:00
|
|
|
{ BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_pop },
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_regInfo },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_CertReqMsg(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
CertReqMsg_sequence, hf_index, ett_crmf_CertReqMsg);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_CertReqMessages_item(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_CertReqMsg(FALSE, tvb, offset, actx, tree, hf_crmf_CertReqMessages_item);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t CertReqMessages_sequence_of[1] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_CertReqMessages_item },
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_CertReqMessages(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
CertReqMessages_sequence_of, hf_index, ett_crmf_CertReqMessages);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_OCTET_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_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2005-07-21 21:12:09 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_salt(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_OCTET_STRING(FALSE, tvb, offset, actx, tree, hf_crmf_salt);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_valueHint_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_OCTET_STRING(TRUE, tvb, offset, actx, tree, hf_crmf_valueHint);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t PBMParameter_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_salt },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_owf },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_iterationCount },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_mac },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_PBMParameter(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
PBMParameter_sequence, hf_index, ett_crmf_PBMParameter);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_RegToken(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-12-24 11:32:13 +00:00
|
|
|
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_UTF8String,
|
2007-05-15 05:49:43 +00:00
|
|
|
actx, tree, tvb, offset, hf_index,
|
2005-09-02 05:43:49 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_Authenticator(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-12-24 11:32:13 +00:00
|
|
|
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_UTF8String,
|
2007-05-15 05:49:43 +00:00
|
|
|
actx, tree, tvb, offset, hf_index,
|
2005-09-02 05:43:49 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
static const value_string crmf_T_action_vals[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, "dontPublish" },
|
|
|
|
{ 1, "pleasePublish" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_T_action(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,
|
2005-06-26 05:48:50 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_action(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_T_action(FALSE, tvb, offset, actx, tree, hf_crmf_action);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
static const value_string crmf_T_pubMethod_vals[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, "dontCare" },
|
|
|
|
{ 1, "x500" },
|
|
|
|
{ 2, "web" },
|
|
|
|
{ 3, "ldap" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_T_pubMethod(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,
|
2005-06-26 05:48:50 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_pubMethod(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_T_pubMethod(FALSE, tvb, offset, actx, tree, hf_crmf_pubMethod);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t SinglePubInfo_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pubMethod },
|
|
|
|
{ BER_CLASS_CON, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_pubLocation },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_SinglePubInfo(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
SinglePubInfo_sequence, hf_index, ett_crmf_SinglePubInfo);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_pubInfos_item(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_SinglePubInfo(FALSE, tvb, offset, actx, tree, hf_crmf_pubInfos_item);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t SEQUENCE_SIZE_1_MAX_OF_SinglePubInfo_sequence_of[1] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_pubInfos_item },
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_SEQUENCE_SIZE_1_MAX_OF_SinglePubInfo(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
SEQUENCE_SIZE_1_MAX_OF_SinglePubInfo_sequence_of, hf_index, ett_crmf_SEQUENCE_SIZE_1_MAX_OF_SinglePubInfo);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_pubInfos(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_SEQUENCE_SIZE_1_MAX_OF_SinglePubInfo(FALSE, tvb, offset, actx, tree, hf_crmf_pubInfos);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t PKIPublicationInfo_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_action },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_pubInfos },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_PKIPublicationInfo(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
PKIPublicationInfo_sequence, hf_index, ett_crmf_PKIPublicationInfo);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t EncryptedValue_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_intendedAlg_impl },
|
|
|
|
{ BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_symmAlg_impl },
|
|
|
|
{ BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_encSymmKey_impl },
|
|
|
|
{ BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_keyAlg_impl },
|
|
|
|
{ BER_CLASS_CON, 4, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_valueHint_impl },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_encValue },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_EncryptedValue(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
EncryptedValue_sequence, hf_index, ett_crmf_EncryptedValue);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_encryptedValue(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_EncryptedValue(FALSE, tvb, offset, actx, tree, hf_crmf_encryptedValue);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
const value_string crmf_EncryptedKey_vals[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, "encryptedValue" },
|
|
|
|
{ 1, "envelopedData" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_choice_t EncryptedKey_choice[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_encryptedValue },
|
2006-08-16 05:58:39 +00:00
|
|
|
{ 1, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_envelopedData_impl },
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_EncryptedKey(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_choice(actx, tree, tvb, offset,
|
|
|
|
EncryptedKey_choice, hf_index, ett_crmf_EncryptedKey,
|
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_encryptedPrivKey_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_EncryptedKey(TRUE, tvb, offset, actx, tree, hf_crmf_encryptedPrivKey);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_KeyGenParameters(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_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2005-07-21 21:12:09 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_keyGenParameters_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_KeyGenParameters(TRUE, tvb, offset, actx, tree, hf_crmf_keyGenParameters);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_boolean(implicit_tag, actx, tree, tvb, offset, hf_index);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-05-13 20:58:29 +00:00
|
|
|
static int dissect_archiveRemGenPrivKey_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
|
|
|
|
return dissect_crmf_BOOLEAN(TRUE, tvb, offset, actx, tree, hf_crmf_archiveRemGenPrivKey);
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
const value_string crmf_PKIArchiveOptions_vals[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, "encryptedPrivKey" },
|
|
|
|
{ 1, "keyGenParameters" },
|
|
|
|
{ 2, "archiveRemGenPrivKey" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_choice_t PKIArchiveOptions_choice[] = {
|
2006-08-16 05:58:39 +00:00
|
|
|
{ 0, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_encryptedPrivKey_impl },
|
|
|
|
{ 1, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_keyGenParameters_impl },
|
|
|
|
{ 2, BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_archiveRemGenPrivKey_impl },
|
2004-12-24 11:32:13 +00:00
|
|
|
{ 0, 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_PKIArchiveOptions(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_choice(actx, tree, tvb, offset,
|
|
|
|
PKIArchiveOptions_choice, hf_index, ett_crmf_PKIArchiveOptions,
|
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-05-22 16:17:54 +00:00
|
|
|
static const ber_old_sequence_t CertId_sequence[] = {
|
2004-12-24 11:32:13 +00:00
|
|
|
{ BER_CLASS_CON, -1/*choice*/, BER_FLAGS_NOOWNTAG, dissect_issuer },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_serialNumber },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_CertId(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-22 16:17:54 +00:00
|
|
|
offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
CertId_sequence, hf_index, ett_crmf_CertId);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_OldCertId(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
|
|
|
offset = dissect_crmf_CertId(implicit_tag, tvb, offset, actx, tree, hf_index);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_ProtocolEncrKey(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
|
|
|
offset = dissect_pkix1explicit_SubjectPublicKeyInfo(implicit_tag, tvb, offset, actx, tree, hf_index);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_UTF8Pairs(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-12-24 11:32:13 +00:00
|
|
|
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_UTF8String,
|
2007-05-15 05:49:43 +00:00
|
|
|
actx, tree, tvb, offset, hf_index,
|
2005-09-02 05:43:49 +00:00
|
|
|
NULL);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_crmf_CertReq(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
|
|
|
offset = dissect_crmf_CertRequest(implicit_tag, tvb, offset, actx, tree, hf_index);
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-10-27 11:54:55 +00:00
|
|
|
/*--- PDUs ---*/
|
|
|
|
|
2007-03-21 10:22:22 +00:00
|
|
|
static void dissect_PBMParameter_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_crmf_PBMParameter(FALSE, tvb, 0, &asn1_ctx, tree, hf_crmf_PBMParameter_PDU);
|
2005-10-27 11:54:55 +00:00
|
|
|
}
|
|
|
|
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-crmf-fn.c ---*/
|
2007-05-13 20:58:29 +00:00
|
|
|
#line 59 "packet-crmf-template.c"
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*--- proto_register_crmf ----------------------------------------------*/
|
|
|
|
void proto_register_crmf(void) {
|
|
|
|
|
|
|
|
/* List of fields */
|
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_crmf_type_oid,
|
|
|
|
{ "Type", "crmf.type.oid",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
|
|
|
"Type of AttributeTypeAndValue", HFILL }},
|
|
|
|
|
|
|
|
/*--- Included file: packet-crmf-hfarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-crmf-hfarr.c"
|
2005-10-27 11:54:55 +00:00
|
|
|
{ &hf_crmf_PBMParameter_PDU,
|
|
|
|
{ "PBMParameter", "crmf.PBMParameter",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.PBMParameter", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_utcTime,
|
|
|
|
{ "utcTime", "crmf.utcTime",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.UTCTime", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_generalTime,
|
|
|
|
{ "generalTime", "crmf.generalTime",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.GeneralizedTime", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_CertReqMessages_item,
|
|
|
|
{ "Item", "crmf.CertReqMessages_item",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.CertReqMsg", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_certReq,
|
|
|
|
{ "certReq", "crmf.certReq",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.CertRequest", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_pop,
|
|
|
|
{ "pop", "crmf.pop",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(crmf_ProofOfPossession_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.ProofOfPossession", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_regInfo,
|
|
|
|
{ "regInfo", "crmf.regInfo",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.SEQUENCE_SIZE_1_MAX_OF_AttributeTypeAndValue", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_regInfo_item,
|
|
|
|
{ "Item", "crmf.regInfo_item",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.AttributeTypeAndValue", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_certReqId,
|
|
|
|
{ "certReqId", "crmf.certReqId",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.INTEGER", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_certTemplate,
|
|
|
|
{ "certTemplate", "crmf.certTemplate",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.CertTemplate", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_controls,
|
|
|
|
{ "controls", "crmf.controls",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.Controls", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_version,
|
|
|
|
{ "version", "crmf.version",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_INT32, BASE_DEC, VALS(crmf_Version_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.Version", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_serialNumber,
|
|
|
|
{ "serialNumber", "crmf.serialNumber",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.INTEGER", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_signingAlg,
|
|
|
|
{ "signingAlg", "crmf.signingAlg",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.AlgorithmIdentifier", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_template_issuer,
|
|
|
|
{ "issuer", "crmf.issuer",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.Name", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_validity,
|
|
|
|
{ "validity", "crmf.validity",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.OptionalValidity", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_subject,
|
|
|
|
{ "subject", "crmf.subject",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.Name", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_publicKey,
|
|
|
|
{ "publicKey", "crmf.publicKey",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.SubjectPublicKeyInfo", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_issuerUID,
|
|
|
|
{ "issuerUID", "crmf.issuerUID",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.UniqueIdentifier", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_subjectUID,
|
|
|
|
{ "subjectUID", "crmf.subjectUID",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.UniqueIdentifier", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_extensions,
|
|
|
|
{ "extensions", "crmf.extensions",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.Extensions", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_notBefore,
|
|
|
|
{ "notBefore", "crmf.notBefore",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(crmf_Time_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.Time", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_notAfter,
|
|
|
|
{ "notAfter", "crmf.notAfter",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(crmf_Time_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.Time", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_Controls_item,
|
|
|
|
{ "Item", "crmf.Controls_item",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.AttributeTypeAndValue", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_type,
|
|
|
|
{ "type", "crmf.type",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.T_type", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_value,
|
|
|
|
{ "value", "crmf.value",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.T_value", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_raVerified,
|
|
|
|
{ "raVerified", "crmf.raVerified",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.NULL", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_signature,
|
|
|
|
{ "signature", "crmf.signature",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.POPOSigningKey", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_keyEncipherment,
|
|
|
|
{ "keyEncipherment", "crmf.keyEncipherment",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(crmf_POPOPrivKey_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.POPOPrivKey", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_keyAgreement,
|
|
|
|
{ "keyAgreement", "crmf.keyAgreement",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(crmf_POPOPrivKey_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.POPOPrivKey", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_poposkInput,
|
|
|
|
{ "poposkInput", "crmf.poposkInput",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.POPOSigningKeyInput", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_algorithmIdentifier,
|
|
|
|
{ "algorithmIdentifier", "crmf.algorithmIdentifier",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.AlgorithmIdentifier", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_sk_signature,
|
|
|
|
{ "signature", "crmf.signature",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.BIT_STRING", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_authInfo,
|
|
|
|
{ "authInfo", "crmf.authInfo",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(crmf_T_authInfo_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.T_authInfo", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_sender,
|
|
|
|
{ "sender", "crmf.sender",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1implicit.GeneralName", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_publicKeyMAC,
|
|
|
|
{ "publicKeyMAC", "crmf.publicKeyMAC",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.PKMACValue", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_algId,
|
|
|
|
{ "algId", "crmf.algId",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.AlgorithmIdentifier", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_pkmac_value,
|
|
|
|
{ "value", "crmf.value",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.BIT_STRING", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_salt,
|
|
|
|
{ "salt", "crmf.salt",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.OCTET_STRING", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_owf,
|
|
|
|
{ "owf", "crmf.owf",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.AlgorithmIdentifier", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_iterationCount,
|
|
|
|
{ "iterationCount", "crmf.iterationCount",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.INTEGER", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_mac,
|
|
|
|
{ "mac", "crmf.mac",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.AlgorithmIdentifier", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_thisMessage,
|
|
|
|
{ "thisMessage", "crmf.thisMessage",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.BIT_STRING", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_subsequentMessage,
|
|
|
|
{ "subsequentMessage", "crmf.subsequentMessage",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_INT32, BASE_DEC, VALS(crmf_SubsequentMessage_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.SubsequentMessage", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_dhMAC,
|
|
|
|
{ "dhMAC", "crmf.dhMAC",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.BIT_STRING", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_action,
|
|
|
|
{ "action", "crmf.action",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_INT32, BASE_DEC, VALS(crmf_T_action_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.T_action", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_pubInfos,
|
|
|
|
{ "pubInfos", "crmf.pubInfos",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.SEQUENCE_SIZE_1_MAX_OF_SinglePubInfo", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_pubInfos_item,
|
|
|
|
{ "Item", "crmf.pubInfos_item",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.SinglePubInfo", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_pubMethod,
|
|
|
|
{ "pubMethod", "crmf.pubMethod",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_INT32, BASE_DEC, VALS(crmf_T_pubMethod_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.T_pubMethod", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_pubLocation,
|
|
|
|
{ "pubLocation", "crmf.pubLocation",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1implicit.GeneralName", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_encryptedPrivKey,
|
|
|
|
{ "encryptedPrivKey", "crmf.encryptedPrivKey",
|
2005-02-23 08:57:47 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(crmf_EncryptedKey_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.EncryptedKey", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_keyGenParameters,
|
|
|
|
{ "keyGenParameters", "crmf.keyGenParameters",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.KeyGenParameters", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_archiveRemGenPrivKey,
|
|
|
|
{ "archiveRemGenPrivKey", "crmf.archiveRemGenPrivKey",
|
|
|
|
FT_BOOLEAN, 8, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.BOOLEAN", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_encryptedValue,
|
|
|
|
{ "encryptedValue", "crmf.encryptedValue",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.EncryptedValue", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_envelopedData,
|
|
|
|
{ "envelopedData", "crmf.envelopedData",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"cms.EnvelopedData", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_intendedAlg,
|
|
|
|
{ "intendedAlg", "crmf.intendedAlg",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.AlgorithmIdentifier", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_symmAlg,
|
|
|
|
{ "symmAlg", "crmf.symmAlg",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.AlgorithmIdentifier", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_encSymmKey,
|
|
|
|
{ "encSymmKey", "crmf.encSymmKey",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.BIT_STRING", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_keyAlg,
|
|
|
|
{ "keyAlg", "crmf.keyAlg",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.AlgorithmIdentifier", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_valueHint,
|
|
|
|
{ "valueHint", "crmf.valueHint",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.OCTET_STRING", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_encValue,
|
|
|
|
{ "encValue", "crmf.encValue",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"crmf.BIT_STRING", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
{ &hf_crmf_issuer,
|
|
|
|
{ "issuer", "crmf.issuer",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1implicit.GeneralName", HFILL }},
|
2004-12-24 11:32:13 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-crmf-hfarr.c ---*/
|
2007-05-13 20:58:29 +00:00
|
|
|
#line 71 "packet-crmf-template.c"
|
2004-12-24 11:32:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* List of subtrees */
|
|
|
|
static gint *ett[] = {
|
|
|
|
|
|
|
|
/*--- Included file: packet-crmf-ettarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-crmf-ettarr.c"
|
2004-12-24 11:32:13 +00:00
|
|
|
&ett_crmf_Time,
|
|
|
|
&ett_crmf_CertReqMessages,
|
|
|
|
&ett_crmf_CertReqMsg,
|
2005-02-23 08:57:47 +00:00
|
|
|
&ett_crmf_SEQUENCE_SIZE_1_MAX_OF_AttributeTypeAndValue,
|
2004-12-24 11:32:13 +00:00
|
|
|
&ett_crmf_CertRequest,
|
|
|
|
&ett_crmf_CertTemplate,
|
|
|
|
&ett_crmf_OptionalValidity,
|
|
|
|
&ett_crmf_Controls,
|
|
|
|
&ett_crmf_AttributeTypeAndValue,
|
|
|
|
&ett_crmf_ProofOfPossession,
|
|
|
|
&ett_crmf_POPOSigningKey,
|
|
|
|
&ett_crmf_POPOSigningKeyInput,
|
|
|
|
&ett_crmf_T_authInfo,
|
|
|
|
&ett_crmf_PKMACValue,
|
|
|
|
&ett_crmf_PBMParameter,
|
|
|
|
&ett_crmf_POPOPrivKey,
|
|
|
|
&ett_crmf_PKIPublicationInfo,
|
2005-02-23 08:57:47 +00:00
|
|
|
&ett_crmf_SEQUENCE_SIZE_1_MAX_OF_SinglePubInfo,
|
2004-12-24 11:32:13 +00:00
|
|
|
&ett_crmf_SinglePubInfo,
|
|
|
|
&ett_crmf_PKIArchiveOptions,
|
|
|
|
&ett_crmf_EncryptedKey,
|
|
|
|
&ett_crmf_EncryptedValue,
|
|
|
|
&ett_crmf_CertId,
|
|
|
|
|
|
|
|
/*--- End of included file: packet-crmf-ettarr.c ---*/
|
2007-05-13 20:58:29 +00:00
|
|
|
#line 76 "packet-crmf-template.c"
|
2004-12-24 11:32:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Register protocol */
|
|
|
|
proto_crmf = proto_register_protocol(PNAME, PSNAME, PFNAME);
|
|
|
|
|
|
|
|
/* Register fields and subtrees */
|
|
|
|
proto_register_field_array(proto_crmf, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*--- proto_reg_handoff_crmf -------------------------------------------*/
|
|
|
|
void proto_reg_handoff_crmf(void) {
|
2005-10-27 11:54:55 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-crmf-dis-tab.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-crmf-dis-tab.c"
|
2005-10-27 11:54:55 +00:00
|
|
|
register_ber_oid_dissector("1.2.840.113533.7.66.13", dissect_PBMParameter_PDU, proto_crmf, "PasswordBasedMac");
|
|
|
|
|
|
|
|
|
|
|
|
/*--- End of included file: packet-crmf-dis-tab.c ---*/
|
2007-05-13 20:58:29 +00:00
|
|
|
#line 91 "packet-crmf-template.c"
|
2004-12-24 11:32:13 +00:00
|
|
|
}
|
|
|
|
|