parent
d215938257
commit
3d32eed0b5
|
@ -1,44 +1,32 @@
|
|||
-- ExtendedSecurityServices as defined in RFC2634
|
||||
-- ExtendedSecurityServices as defined in RFC5035
|
||||
--
|
||||
-- The ASN definition has been modified to suit the Wireshark asn2wrs compiler
|
||||
--
|
||||
--
|
||||
--
|
||||
-- The original ASN.1 definition from RFC2634 contains the following
|
||||
-- The original ASN.1 definition from RFC5035 contains the following
|
||||
-- copyright statement:
|
||||
--
|
||||
-- Full Copyright Statement
|
||||
--
|
||||
-- Copyright (C) The Internet Society (1999). All Rights Reserved.
|
||||
--
|
||||
-- This document and translations of it may be copied and furnished to
|
||||
-- others, and derivative works that comment on or otherwise explain it
|
||||
-- or assist in its implementation may be prepared, copied, published
|
||||
-- and distributed, in whole or in part, without restriction of any
|
||||
-- kind, provided that the above copyright notice and this paragraph are
|
||||
-- included on all such copies and derivative works. However, this
|
||||
-- document itself may not be modified in any way, such as by removing
|
||||
-- the copyright notice or references to the Internet Society or other
|
||||
-- Internet organizations, except as needed for the purpose of
|
||||
-- developing Internet standards in which case the procedures for
|
||||
-- copyrights defined in the Internet Standards process must be
|
||||
-- followed, or as required to translate it into languages other than
|
||||
-- English.
|
||||
--
|
||||
-- The limited permissions granted above are perpetual and will not be
|
||||
-- revoked by the Internet Society or its successors or assigns.
|
||||
--
|
||||
-- This document and the information contained herein is provided on an
|
||||
-- "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
|
||||
-- TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
|
||||
-- BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
|
||||
-- HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
|
||||
-- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
-- Copyright (C) The IETF Trust (2007).
|
||||
--
|
||||
-- This document is subject to the rights, licenses and restrictions
|
||||
-- contained in BCP 78, and except as set forth therein, the authors
|
||||
-- retain all their rights.
|
||||
--
|
||||
-- This document and the information contained herein are provided on an
|
||||
-- "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
|
||||
-- OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
|
||||
-- THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
|
||||
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
|
||||
-- THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
|
||||
-- WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
--
|
||||
|
||||
ExtendedSecurityServices
|
||||
{ iso(1) member-body(2) us(840) rsadsi(113549)
|
||||
pkcs(1) pkcs-9(9) smime(16) modules(0) ess(2) }
|
||||
pkcs(1) pkcs-9(9) smime(16) modules(0) id-mod-ess-2006(30) }
|
||||
|
||||
DEFINITIONS IMPLICIT TAGS ::=
|
||||
BEGIN
|
||||
|
@ -47,15 +35,18 @@ IMPORTS
|
|||
|
||||
-- Cryptographic Message Syntax (CMS)
|
||||
ContentType, IssuerAndSerialNumber
|
||||
FROM CryptographicMessageSyntax { iso(1) member-body(2) us(840)
|
||||
rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) cms(1)}
|
||||
FROM CryptographicMessageSyntax {iso(1) member-body(2)
|
||||
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
|
||||
modules(0) cms-2004(24)}
|
||||
|
||||
-- X.509
|
||||
CertificateSerialNumber FROM AuthenticationFramework
|
||||
AlgorithmIdentifier, CertificateSerialNumber
|
||||
FROM AuthenticationFramework
|
||||
{joint-iso-itu-t ds(5) module(1) authenticationFramework(7) 3}
|
||||
|
||||
SubjectKeyIdentifier, PolicyInformation, GeneralNames
|
||||
FROM CertificateExtensions
|
||||
{joint-iso-ccitt ds(5) module(1) certificateExtensions(26) 0};
|
||||
SubjectKeyIdentifier, PolicyInformation, GeneralNames
|
||||
FROM CertificateExtensions
|
||||
{joint-iso-ccitt ds(5) module(1) certificateExtensions(26) 0};
|
||||
|
||||
|
||||
-- Extended Security Services
|
||||
|
@ -68,35 +59,36 @@ IMPORTS
|
|||
-- environment.
|
||||
|
||||
-- UTF8String ::= [UNIVERSAL 12] IMPLICIT OCTET STRING
|
||||
-- The contents are formatted as described in [UTF8]
|
||||
|
||||
-- The contents are formatted as described in [UTF8]
|
||||
|
||||
-- Section 2.7
|
||||
|
||||
ReceiptRequest ::= SEQUENCE {
|
||||
signedContentIdentifier ContentIdentifier,
|
||||
receiptsFrom ReceiptsFrom,
|
||||
receiptsTo SEQUENCE OF GeneralNames }
|
||||
receiptsTo SEQUENCE SIZE (1..ub-receiptsTo) OF GeneralNames
|
||||
}
|
||||
|
||||
-- ub-receiptsTo INTEGER ::= 16
|
||||
--
|
||||
--
|
||||
-- id-aa-receiptRequest OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
-- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 1}
|
||||
ub-receiptsTo INTEGER ::= 16
|
||||
|
||||
id-aa-receiptRequest OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 1}
|
||||
|
||||
ContentIdentifier ::= OCTET STRING
|
||||
|
||||
-- id-aa-contentIdentifier OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
-- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 7}
|
||||
id-aa-contentIdentifier OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 7}
|
||||
|
||||
ReceiptsFrom ::= CHOICE {
|
||||
allOrFirstTier [0] AllOrFirstTier,
|
||||
-- formerly "allOrNone [0]AllOrNone"
|
||||
receiptList [1] SEQUENCE OF GeneralNames }
|
||||
allOrFirstTier [0] AllOrFirstTier, -- formerly "allOrNone [0]AllOrNone"
|
||||
receiptList [1] SEQUENCE OF GeneralNames
|
||||
}
|
||||
|
||||
AllOrFirstTier ::= INTEGER { -- Formerly AllOrNone
|
||||
allReceipts (0),
|
||||
firstTierRecipients (1) }
|
||||
|
||||
firstTierRecipients (1)
|
||||
}
|
||||
|
||||
-- Section 2.8
|
||||
|
||||
|
@ -104,39 +96,41 @@ Receipt ::= SEQUENCE {
|
|||
version ESSVersion,
|
||||
contentType ContentType,
|
||||
signedContentIdentifier ContentIdentifier,
|
||||
originatorSignatureValue OCTET STRING }
|
||||
originatorSignatureValue OCTET STRING
|
||||
}
|
||||
|
||||
-- id-ct-receipt OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840)
|
||||
-- rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-ct(1) 1}
|
||||
id-ct-receipt OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840)
|
||||
rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-ct(1) 1}
|
||||
|
||||
ESSVersion ::= INTEGER { v1(1) }
|
||||
|
||||
-- Section 2.9
|
||||
|
||||
ContentHints ::= SEQUENCE {
|
||||
contentDescription UTF8String OPTIONAL,
|
||||
contentType ContentType }
|
||||
contentDescription UTF8String (SIZE (1..MAX)) OPTIONAL,
|
||||
contentType ContentType
|
||||
}
|
||||
|
||||
-- id-aa-contentHint OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840)
|
||||
-- rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 4}
|
||||
id-aa-contentHint OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840)
|
||||
rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 4}
|
||||
|
||||
-- Section 2.10
|
||||
|
||||
MsgSigDigest ::= OCTET STRING
|
||||
|
||||
-- id-aa-msgSigDigest OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
-- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 5}
|
||||
id-aa-msgSigDigest OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 5}
|
||||
|
||||
-- Section 2.11
|
||||
|
||||
ContentReference ::= SEQUENCE {
|
||||
contentType ContentType,
|
||||
signedContentIdentifier ContentIdentifier,
|
||||
originatorSignatureValue OCTET STRING }
|
||||
|
||||
-- id-aa-contentReference OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
-- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 10 }
|
||||
originatorSignatureValue OCTET STRING
|
||||
}
|
||||
|
||||
id-aa-contentReference OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 10 }
|
||||
|
||||
-- Section 3.2
|
||||
|
||||
|
@ -144,10 +138,11 @@ ESSSecurityLabel ::= SET {
|
|||
security-policy-identifier SecurityPolicyIdentifier,
|
||||
security-classification SecurityClassification OPTIONAL,
|
||||
privacy-mark ESSPrivacyMark OPTIONAL,
|
||||
security-categories SecurityCategories OPTIONAL }
|
||||
security-categories SecurityCategories OPTIONAL
|
||||
}
|
||||
|
||||
-- id-aa-securityLabel OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
-- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 2}
|
||||
id-aa-securityLabel OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 2}
|
||||
|
||||
SecurityPolicyIdentifier ::= OBJECT IDENTIFIER
|
||||
|
||||
|
@ -157,24 +152,25 @@ SecurityClassification ::= INTEGER {
|
|||
restricted (2),
|
||||
confidential (3),
|
||||
secret (4),
|
||||
top-secret (5) }
|
||||
top-secret (5)
|
||||
}(0..ub-integer-options)
|
||||
|
||||
-- ub-integer-options INTEGER ::= 256
|
||||
ub-integer-options INTEGER ::= 256
|
||||
|
||||
ESSPrivacyMark ::= CHOICE {
|
||||
pString PrintableString,
|
||||
utf8String UTF8String
|
||||
pString PrintableString (SIZE (1..ub-privacy-mark-length)),
|
||||
utf8String UTF8String (SIZE (1..MAX))
|
||||
}
|
||||
|
||||
-- ub-privacy-mark-length INTEGER ::= 128
|
||||
ub-privacy-mark-length INTEGER ::= 128
|
||||
|
||||
SecurityCategories ::= SET OF SecurityCategory
|
||||
SecurityCategories ::= SET SIZE (1..ub-security-categories) OF SecurityCategory
|
||||
|
||||
-- ub-security-categories INTEGER ::= 64
|
||||
ub-security-categories INTEGER ::= 64
|
||||
|
||||
SecurityCategory ::= SEQUENCE {
|
||||
type [0] OBJECT IDENTIFIER,
|
||||
value [1] EXPLICIT ANY
|
||||
value [1] ANY DEFINED BY type
|
||||
}
|
||||
|
||||
--Note: The aforementioned SecurityCategory syntax produces identical
|
||||
|
@ -222,44 +218,68 @@ FreeFormField ::= CHOICE {
|
|||
|
||||
-- Section 3.4
|
||||
|
||||
|
||||
EquivalentLabels ::= SEQUENCE OF ESSSecurityLabel
|
||||
|
||||
-- id-aa-equivalentLabels OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
-- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 9}
|
||||
|
||||
id-aa-equivalentLabels OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 9}
|
||||
|
||||
-- Section 4.4
|
||||
|
||||
MLExpansionHistory ::= SEQUENCE OF MLData
|
||||
MLExpansionHistory ::= SEQUENCE
|
||||
SIZE (1..ub-ml-expansion-history) OF MLData
|
||||
|
||||
-- id-aa-mlExpandHistory OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
-- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 3}
|
||||
id-aa-mlExpandHistory OBJECT IDENTIFIER ::= { iso(1) member-body(2)
|
||||
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 3}
|
||||
|
||||
-- ub-ml-expansion-history INTEGER ::= 64
|
||||
ub-ml-expansion-history INTEGER ::= 64
|
||||
|
||||
MLData ::= SEQUENCE {
|
||||
mailListIdentifier EntityIdentifier,
|
||||
expansionTime GeneralizedTime,
|
||||
mlReceiptPolicy MLReceiptPolicy OPTIONAL }
|
||||
mlReceiptPolicy MLReceiptPolicy OPTIONAL
|
||||
}
|
||||
|
||||
EntityIdentifier ::= CHOICE {
|
||||
issuerAndSerialNumber IssuerAndSerialNumber,
|
||||
subjectKeyIdentifier SubjectKeyIdentifier }
|
||||
subjectKeyIdentifier SubjectKeyIdentifier
|
||||
}
|
||||
|
||||
MLReceiptPolicy ::= CHOICE {
|
||||
none [0] NULL,
|
||||
insteadOf [1] SEQUENCE OF GeneralNames,
|
||||
inAdditionTo [2] SEQUENCE OF GeneralNames }
|
||||
insteadOf [1] SEQUENCE SIZE (1..MAX) OF GeneralNames,
|
||||
inAdditionTo [2] SEQUENCE SIZE (1..MAX) OF GeneralNames
|
||||
}
|
||||
|
||||
-- Section 5.4
|
||||
|
||||
SigningCertificate ::= SEQUENCE {
|
||||
certs SEQUENCE OF ESSCertID,
|
||||
policies SEQUENCE OF PolicyInformation OPTIONAL
|
||||
}
|
||||
|
||||
-- id-aa-signingCertificate OBJECT IDENTIFIER ::= { iso(1)
|
||||
-- member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
|
||||
-- smime(16) id-aa(2) 12 }
|
||||
id-aa-signingCertificate OBJECT IDENTIFIER ::= { iso(1)
|
||||
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
|
||||
smime(16) id-aa(2) 12 }
|
||||
|
||||
SigningCertificateV2 ::= SEQUENCE {
|
||||
certs SEQUENCE OF ESSCertIDv2,
|
||||
policies SEQUENCE OF PolicyInformation OPTIONAL
|
||||
}
|
||||
|
||||
id-aa-signingCertificateV2 OBJECT IDENTIFIER ::= { iso(1)
|
||||
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
|
||||
smime(16) id-aa(2) 47 }
|
||||
|
||||
id-sha256 OBJECT IDENTIFIER ::= { joint-iso-itu-t(2)
|
||||
country(16) us(840) organization(1) gov(101)
|
||||
csor(3) nistalgorithm(4) hashalgs(2) 1 }
|
||||
|
||||
ESSCertIDv2 ::= SEQUENCE {
|
||||
hashAlgorithm AlgorithmIdentifier
|
||||
DEFAULT {algorithm id-sha256},
|
||||
certHash Hash,
|
||||
issuerSerial IssuerSerial OPTIONAL
|
||||
}
|
||||
|
||||
ESSCertID ::= SEQUENCE {
|
||||
certHash Hash,
|
||||
|
|
|
@ -43,7 +43,7 @@ SRC_FILES = \
|
|||
$(EXTRA_DIST) \
|
||||
$(EXT_ASN_FILE_LIST)
|
||||
|
||||
A2W_FLAGS= -b -k
|
||||
A2W_FLAGS= -b -e -k -C
|
||||
|
||||
EXTRA_CNF= \
|
||||
../cms/cms-exp.cnf \
|
||||
|
|
|
@ -22,6 +22,7 @@ ESSSecurityLabel B "1.2.840.113549.1.9.16.2.2" "id-aa-securityLabel"
|
|||
EquivalentLabels B "1.2.840.113549.1.9.16.2.9" "id-aa-equivalentLabels"
|
||||
MLExpansionHistory B "1.2.840.113549.1.9.16.2.3" "id-aa-mlExpandHistory"
|
||||
SigningCertificate B "1.2.840.113549.1.9.16.2.12" "id-aa-signingCertificate"
|
||||
SigningCertificateV2 B "1.2.840.113549.1.9.16.2.47" "id-aa-signingCertificateV2"
|
||||
|
||||
RestrictiveTag B "2.16.840.1.101.2.1.8.3.0" "id-restrictiveAttributes"
|
||||
EnumeratedTag B "2.16.840.1.101.2.1.8.3.1" "id-enumeratedPermissiveAttributes"
|
||||
|
@ -34,6 +35,7 @@ EnumeratedTag B "2.16.840.1.101.2.1.8.3.4" "id-enumeratedRestrictiveAttribu
|
|||
#.TYPE_RENAME
|
||||
|
||||
#.FIELD_RENAME
|
||||
SigningCertificateV2/certs certsV2
|
||||
|
||||
#.FN_PARS SecurityCategory/type
|
||||
FN_VARIANT = _str HF_INDEX = hf_ess_SecurityCategory_type_OID VAL_PTR = &object_identifier_id
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* packet-ess.c
|
||||
* Routines for RFC2634 Extended Security Services packet dissection
|
||||
* Routines for RFC5035 Extended Security Services packet dissection
|
||||
* Ronnie Sahlberg 2004
|
||||
* Stig Bjorlykke 2010
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
|
@ -49,6 +50,8 @@ static int proto_ess = -1;
|
|||
static int hf_ess_SecurityCategory_type_OID = -1;
|
||||
#include "packet-ess-hf.c"
|
||||
|
||||
#include "packet-ess-val.h"
|
||||
|
||||
/* Initialize the subtree pointers */
|
||||
#include "packet-ess-ett.c"
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* packet-ess.h
|
||||
* Routines for RFC2634 Extended Security Services packet dissection
|
||||
* Routines for RFC5035 Extended Security Services packet dissection
|
||||
* Ronnie Sahlberg 2004
|
||||
* Stig Bjorlykke 2010
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
/* Do not modify this file. */
|
||||
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
||||
/* packet-ess.c */
|
||||
/* ../../tools/asn2wrs.py -b -k -p ess -c ./ess.cnf -s ./packet-ess-template -D . ExtendedSecurityServices.asn */
|
||||
/* ../../tools/asn2wrs.py -b -e -k -C -p ess -c ./ess.cnf -s ./packet-ess-template -D . ExtendedSecurityServices.asn */
|
||||
|
||||
/* Input file: packet-ess-template.c */
|
||||
|
||||
#line 1 "packet-ess-template.c"
|
||||
/* packet-ess.c
|
||||
* Routines for RFC2634 Extended Security Services packet dissection
|
||||
* Routines for RFC5035 Extended Security Services packet dissection
|
||||
* Ronnie Sahlberg 2004
|
||||
* Stig Bjorlykke 2010
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
|
@ -72,9 +73,10 @@ static int hf_ess_InformativeTag_PDU = -1; /* InformativeTag */
|
|||
static int hf_ess_EquivalentLabels_PDU = -1; /* EquivalentLabels */
|
||||
static int hf_ess_MLExpansionHistory_PDU = -1; /* MLExpansionHistory */
|
||||
static int hf_ess_SigningCertificate_PDU = -1; /* SigningCertificate */
|
||||
static int hf_ess_SigningCertificateV2_PDU = -1; /* SigningCertificateV2 */
|
||||
static int hf_ess_signedContentIdentifier = -1; /* ContentIdentifier */
|
||||
static int hf_ess_receiptsFrom = -1; /* ReceiptsFrom */
|
||||
static int hf_ess_receiptsTo = -1; /* SEQUENCE_OF_GeneralNames */
|
||||
static int hf_ess_receiptsTo = -1; /* SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames */
|
||||
static int hf_ess_receiptsTo_item = -1; /* GeneralNames */
|
||||
static int hf_ess_allOrFirstTier = -1; /* AllOrFirstTier */
|
||||
static int hf_ess_receiptList = -1; /* SEQUENCE_OF_GeneralNames */
|
||||
|
@ -82,13 +84,13 @@ static int hf_ess_receiptList_item = -1; /* GeneralNames */
|
|||
static int hf_ess_version = -1; /* ESSVersion */
|
||||
static int hf_ess_contentType = -1; /* ContentType */
|
||||
static int hf_ess_originatorSignatureValue = -1; /* OCTET_STRING */
|
||||
static int hf_ess_contentDescription = -1; /* UTF8String */
|
||||
static int hf_ess_contentDescription = -1; /* UTF8String_SIZE_1_MAX */
|
||||
static int hf_ess_security_policy_identifier = -1; /* SecurityPolicyIdentifier */
|
||||
static int hf_ess_security_classification = -1; /* SecurityClassification */
|
||||
static int hf_ess_privacy_mark = -1; /* ESSPrivacyMark */
|
||||
static int hf_ess_security_categories = -1; /* SecurityCategories */
|
||||
static int hf_ess_pString = -1; /* PrintableString */
|
||||
static int hf_ess_utf8String = -1; /* UTF8String */
|
||||
static int hf_ess_pString = -1; /* PrintableString_SIZE_1_ub_privacy_mark_length */
|
||||
static int hf_ess_utf8String = -1; /* UTF8String_SIZE_1_MAX */
|
||||
static int hf_ess_SecurityCategories_item = -1; /* SecurityCategory */
|
||||
static int hf_ess_type = -1; /* T_type */
|
||||
static int hf_ess_value = -1; /* T_value */
|
||||
|
@ -108,29 +110,57 @@ static int hf_ess_mlReceiptPolicy = -1; /* MLReceiptPolicy */
|
|||
static int hf_ess_issuerAndSerialNumber = -1; /* IssuerAndSerialNumber */
|
||||
static int hf_ess_subjectKeyIdentifier = -1; /* SubjectKeyIdentifier */
|
||||
static int hf_ess_none = -1; /* NULL */
|
||||
static int hf_ess_insteadOf = -1; /* SEQUENCE_OF_GeneralNames */
|
||||
static int hf_ess_insteadOf = -1; /* SEQUENCE_SIZE_1_MAX_OF_GeneralNames */
|
||||
static int hf_ess_insteadOf_item = -1; /* GeneralNames */
|
||||
static int hf_ess_inAdditionTo = -1; /* SEQUENCE_OF_GeneralNames */
|
||||
static int hf_ess_inAdditionTo = -1; /* SEQUENCE_SIZE_1_MAX_OF_GeneralNames */
|
||||
static int hf_ess_inAdditionTo_item = -1; /* GeneralNames */
|
||||
static int hf_ess_certs = -1; /* SEQUENCE_OF_ESSCertID */
|
||||
static int hf_ess_certs_item = -1; /* ESSCertID */
|
||||
static int hf_ess_policies = -1; /* SEQUENCE_OF_PolicyInformation */
|
||||
static int hf_ess_policies_item = -1; /* PolicyInformation */
|
||||
static int hf_ess_certsV2 = -1; /* SEQUENCE_OF_ESSCertIDv2 */
|
||||
static int hf_ess_certsV2_item = -1; /* ESSCertIDv2 */
|
||||
static int hf_ess_hashAlgorithm = -1; /* AlgorithmIdentifier */
|
||||
static int hf_ess_certHash = -1; /* Hash */
|
||||
static int hf_ess_issuerSerial = -1; /* IssuerSerial */
|
||||
static int hf_ess_issuer = -1; /* GeneralNames */
|
||||
static int hf_ess_serialNumber = -1; /* CertificateSerialNumber */
|
||||
|
||||
/*--- End of included file: packet-ess-hf.c ---*/
|
||||
#line 51 "packet-ess-template.c"
|
||||
#line 52 "packet-ess-template.c"
|
||||
|
||||
|
||||
/*--- Included file: packet-ess-val.h ---*/
|
||||
#line 1 "packet-ess-val.h"
|
||||
#define ub_receiptsTo 16
|
||||
#define id_aa_receiptRequest "1.2.840.113549.1.9.16.2.1"
|
||||
#define id_aa_contentIdentifier "1.2.840.113549.1.9.16.2.7"
|
||||
#define id_ct_receipt "1.2.840.113549.1.9.16.1.1"
|
||||
#define id_aa_contentHint "1.2.840.113549.1.9.16.2.4"
|
||||
#define id_aa_msgSigDigest "1.2.840.113549.1.9.16.2.5"
|
||||
#define id_aa_contentReference "1.2.840.113549.1.9.16.2.10"
|
||||
#define id_aa_securityLabel "1.2.840.113549.1.9.16.2.2"
|
||||
#define ub_integer_options 256
|
||||
#define ub_privacy_mark_length 128
|
||||
#define ub_security_categories 64
|
||||
#define id_aa_equivalentLabels "1.2.840.113549.1.9.16.2.9"
|
||||
#define id_aa_mlExpandHistory "1.2.840.113549.1.9.16.2.3"
|
||||
#define ub_ml_expansion_history 64
|
||||
#define id_aa_signingCertificate "1.2.840.113549.1.9.16.2.12"
|
||||
#define id_aa_signingCertificateV2 "1.2.840.113549.1.9.16.2.47"
|
||||
#define id_sha256 "2.16.840.1.101.3.4.2.1"
|
||||
|
||||
/*--- End of included file: packet-ess-val.h ---*/
|
||||
#line 54 "packet-ess-template.c"
|
||||
|
||||
/* Initialize the subtree pointers */
|
||||
|
||||
/*--- Included file: packet-ess-ett.c ---*/
|
||||
#line 1 "packet-ess-ett.c"
|
||||
static gint ett_ess_ReceiptRequest = -1;
|
||||
static gint ett_ess_SEQUENCE_OF_GeneralNames = -1;
|
||||
static gint ett_ess_SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames = -1;
|
||||
static gint ett_ess_ReceiptsFrom = -1;
|
||||
static gint ett_ess_SEQUENCE_OF_GeneralNames = -1;
|
||||
static gint ett_ess_Receipt = -1;
|
||||
static gint ett_ess_ContentHints = -1;
|
||||
static gint ett_ess_ContentReference = -1;
|
||||
|
@ -149,14 +179,18 @@ static gint ett_ess_MLExpansionHistory = -1;
|
|||
static gint ett_ess_MLData = -1;
|
||||
static gint ett_ess_EntityIdentifier = -1;
|
||||
static gint ett_ess_MLReceiptPolicy = -1;
|
||||
static gint ett_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames = -1;
|
||||
static gint ett_ess_SigningCertificate = -1;
|
||||
static gint ett_ess_SEQUENCE_OF_ESSCertID = -1;
|
||||
static gint ett_ess_SEQUENCE_OF_PolicyInformation = -1;
|
||||
static gint ett_ess_SigningCertificateV2 = -1;
|
||||
static gint ett_ess_SEQUENCE_OF_ESSCertIDv2 = -1;
|
||||
static gint ett_ess_ESSCertIDv2 = -1;
|
||||
static gint ett_ess_ESSCertID = -1;
|
||||
static gint ett_ess_IssuerSerial = -1;
|
||||
|
||||
/*--- End of included file: packet-ess-ett.c ---*/
|
||||
#line 54 "packet-ess-template.c"
|
||||
#line 57 "packet-ess-template.c"
|
||||
|
||||
static const char *object_identifier_id;
|
||||
|
||||
|
@ -191,7 +225,7 @@ dissect_ess_AllOrFirstTier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int off
|
|||
|
||||
|
||||
static const ber_sequence_t SEQUENCE_OF_GeneralNames_sequence_of[1] = {
|
||||
{ &hf_ess_receiptsTo_item , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509ce_GeneralNames },
|
||||
{ &hf_ess_receiptList_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509ce_GeneralNames },
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -225,10 +259,23 @@ dissect_ess_ReceiptsFrom(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offse
|
|||
}
|
||||
|
||||
|
||||
static const ber_sequence_t SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames_sequence_of[1] = {
|
||||
{ &hf_ess_receiptsTo_item , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509ce_GeneralNames },
|
||||
};
|
||||
|
||||
static int
|
||||
dissect_ess_SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames(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_ber_constrained_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
||||
1, ub_receiptsTo, SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames_sequence_of, hf_index, ett_ess_SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
static const ber_sequence_t ReceiptRequest_sequence[] = {
|
||||
{ &hf_ess_signedContentIdentifier, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_ContentIdentifier },
|
||||
{ &hf_ess_receiptsFrom , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_ess_ReceiptsFrom },
|
||||
{ &hf_ess_receiptsTo , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_ess_SEQUENCE_OF_GeneralNames },
|
||||
{ &hf_ess_receiptsTo , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_ess_SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames },
|
||||
{ NULL, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
|
@ -285,17 +332,17 @@ dissect_ess_Receipt(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_
|
|||
|
||||
|
||||
static int
|
||||
dissect_ess_UTF8String(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_ber_restricted_string(implicit_tag, BER_UNI_TAG_UTF8String,
|
||||
actx, tree, tvb, offset, hf_index,
|
||||
NULL);
|
||||
dissect_ess_UTF8String_SIZE_1_MAX(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_ber_constrained_restricted_string(implicit_tag, BER_UNI_TAG_UTF8String,
|
||||
actx, tree, tvb, offset,
|
||||
1, NO_BOUND, hf_index, NULL);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
static const ber_sequence_t ContentHints_sequence[] = {
|
||||
{ &hf_ess_contentDescription, BER_CLASS_UNI, BER_UNI_TAG_UTF8String, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ess_UTF8String },
|
||||
{ &hf_ess_contentDescription, BER_CLASS_UNI, BER_UNI_TAG_UTF8String, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ess_UTF8String_SIZE_1_MAX },
|
||||
{ &hf_ess_contentType , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_cms_ContentType },
|
||||
{ NULL, 0, 0, 0, NULL }
|
||||
};
|
||||
|
@ -357,8 +404,8 @@ static const value_string ess_SecurityClassification_vals[] = {
|
|||
|
||||
static int
|
||||
dissect_ess_SecurityClassification(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_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
||||
NULL);
|
||||
offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset,
|
||||
0U, ub_integer_options, hf_index, NULL);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
@ -366,10 +413,10 @@ dissect_ess_SecurityClassification(gboolean implicit_tag _U_, tvbuff_t *tvb _U_,
|
|||
|
||||
|
||||
static int
|
||||
dissect_ess_PrintableString(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_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
|
||||
actx, tree, tvb, offset, hf_index,
|
||||
NULL);
|
||||
dissect_ess_PrintableString_SIZE_1_ub_privacy_mark_length(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_ber_constrained_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
|
||||
actx, tree, tvb, offset,
|
||||
1, ub_privacy_mark_length, hf_index, NULL);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
@ -382,8 +429,8 @@ static const value_string ess_ESSPrivacyMark_vals[] = {
|
|||
};
|
||||
|
||||
static const ber_choice_t ESSPrivacyMark_choice[] = {
|
||||
{ 0, &hf_ess_pString , BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_ess_PrintableString },
|
||||
{ 1, &hf_ess_utf8String , BER_CLASS_UNI, BER_UNI_TAG_UTF8String, BER_FLAGS_NOOWNTAG, dissect_ess_UTF8String },
|
||||
{ 0, &hf_ess_pString , BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_ess_PrintableString_SIZE_1_ub_privacy_mark_length },
|
||||
{ 1, &hf_ess_utf8String , BER_CLASS_UNI, BER_UNI_TAG_UTF8String, BER_FLAGS_NOOWNTAG, dissect_ess_UTF8String_SIZE_1_MAX },
|
||||
{ 0, NULL, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
|
@ -409,7 +456,7 @@ dissect_ess_T_type(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_,
|
|||
|
||||
static int
|
||||
dissect_ess_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_) {
|
||||
#line 42 "ess.cnf"
|
||||
#line 44 "ess.cnf"
|
||||
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
|
||||
|
||||
|
||||
|
@ -420,7 +467,7 @@ dissect_ess_T_value(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_
|
|||
|
||||
static const ber_sequence_t SecurityCategory_sequence[] = {
|
||||
{ &hf_ess_type , BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_ess_T_type },
|
||||
{ &hf_ess_value , BER_CLASS_CON, 1, 0, dissect_ess_T_value },
|
||||
{ &hf_ess_value , BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_ess_T_value },
|
||||
{ NULL, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
|
@ -439,8 +486,8 @@ static const ber_sequence_t SecurityCategories_set_of[1] = {
|
|||
|
||||
static int
|
||||
dissect_ess_SecurityCategories(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_ber_set_of(implicit_tag, actx, tree, tvb, offset,
|
||||
SecurityCategories_set_of, hf_index, ett_ess_SecurityCategories);
|
||||
offset = dissect_ber_constrained_set_of(implicit_tag, actx, tree, tvb, offset,
|
||||
1, ub_security_categories, SecurityCategories_set_of, hf_index, ett_ess_SecurityCategories);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
@ -641,6 +688,19 @@ dissect_ess_NULL(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, a
|
|||
}
|
||||
|
||||
|
||||
static const ber_sequence_t SEQUENCE_SIZE_1_MAX_OF_GeneralNames_sequence_of[1] = {
|
||||
{ &hf_ess_insteadOf_item , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509ce_GeneralNames },
|
||||
};
|
||||
|
||||
static int
|
||||
dissect_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames(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_ber_constrained_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
||||
1, NO_BOUND, SEQUENCE_SIZE_1_MAX_OF_GeneralNames_sequence_of, hf_index, ett_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
static const value_string ess_MLReceiptPolicy_vals[] = {
|
||||
{ 0, "none" },
|
||||
{ 1, "insteadOf" },
|
||||
|
@ -650,8 +710,8 @@ static const value_string ess_MLReceiptPolicy_vals[] = {
|
|||
|
||||
static const ber_choice_t MLReceiptPolicy_choice[] = {
|
||||
{ 0, &hf_ess_none , BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_ess_NULL },
|
||||
{ 1, &hf_ess_insteadOf , BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_ess_SEQUENCE_OF_GeneralNames },
|
||||
{ 2, &hf_ess_inAdditionTo , BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_ess_SEQUENCE_OF_GeneralNames },
|
||||
{ 1, &hf_ess_insteadOf , BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames },
|
||||
{ 2, &hf_ess_inAdditionTo , BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames },
|
||||
{ 0, NULL, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
|
@ -687,8 +747,8 @@ static const ber_sequence_t MLExpansionHistory_sequence_of[1] = {
|
|||
|
||||
static int
|
||||
dissect_ess_MLExpansionHistory(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_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
||||
MLExpansionHistory_sequence_of, hf_index, ett_ess_MLExpansionHistory);
|
||||
offset = dissect_ber_constrained_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
||||
1, ub_ml_expansion_history, MLExpansionHistory_sequence_of, hf_index, ett_ess_MLExpansionHistory);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
@ -774,6 +834,50 @@ dissect_ess_SigningCertificate(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int
|
|||
return offset;
|
||||
}
|
||||
|
||||
|
||||
static const ber_sequence_t ESSCertIDv2_sequence[] = {
|
||||
{ &hf_ess_hashAlgorithm , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509af_AlgorithmIdentifier },
|
||||
{ &hf_ess_certHash , BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_Hash },
|
||||
{ &hf_ess_issuerSerial , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ess_IssuerSerial },
|
||||
{ NULL, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
dissect_ess_ESSCertIDv2(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_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
||||
ESSCertIDv2_sequence, hf_index, ett_ess_ESSCertIDv2);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
static const ber_sequence_t SEQUENCE_OF_ESSCertIDv2_sequence_of[1] = {
|
||||
{ &hf_ess_certsV2_item , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_ess_ESSCertIDv2 },
|
||||
};
|
||||
|
||||
static int
|
||||
dissect_ess_SEQUENCE_OF_ESSCertIDv2(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_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
||||
SEQUENCE_OF_ESSCertIDv2_sequence_of, hf_index, ett_ess_SEQUENCE_OF_ESSCertIDv2);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
static const ber_sequence_t SigningCertificateV2_sequence[] = {
|
||||
{ &hf_ess_certsV2 , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_ess_SEQUENCE_OF_ESSCertIDv2 },
|
||||
{ &hf_ess_policies , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ess_SEQUENCE_OF_PolicyInformation },
|
||||
{ NULL, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
dissect_ess_SigningCertificateV2(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_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
||||
SigningCertificateV2_sequence, hf_index, ett_ess_SigningCertificateV2);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
||||
/*--- PDUs ---*/
|
||||
|
||||
static void dissect_ReceiptRequest_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
||||
|
@ -846,10 +950,15 @@ static void dissect_SigningCertificate_PDU(tvbuff_t *tvb _U_, packet_info *pinfo
|
|||
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
||||
dissect_ess_SigningCertificate(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_SigningCertificate_PDU);
|
||||
}
|
||||
static void dissect_SigningCertificateV2_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
||||
asn1_ctx_t asn1_ctx;
|
||||
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
||||
dissect_ess_SigningCertificateV2(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_SigningCertificateV2_PDU);
|
||||
}
|
||||
|
||||
|
||||
/*--- End of included file: packet-ess-fn.c ---*/
|
||||
#line 58 "packet-ess-template.c"
|
||||
#line 61 "packet-ess-template.c"
|
||||
|
||||
|
||||
/*--- proto_register_ess ----------------------------------------------*/
|
||||
|
@ -919,6 +1028,10 @@ void proto_register_ess(void) {
|
|||
{ "SigningCertificate", "ess.SigningCertificate",
|
||||
FT_NONE, BASE_NONE, NULL, 0,
|
||||
"ess.SigningCertificate", HFILL }},
|
||||
{ &hf_ess_SigningCertificateV2_PDU,
|
||||
{ "SigningCertificateV2", "ess.SigningCertificateV2",
|
||||
FT_NONE, BASE_NONE, NULL, 0,
|
||||
"ess.SigningCertificateV2", HFILL }},
|
||||
{ &hf_ess_signedContentIdentifier,
|
||||
{ "signedContentIdentifier", "ess.signedContentIdentifier",
|
||||
FT_BYTES, BASE_NONE, NULL, 0,
|
||||
|
@ -930,7 +1043,7 @@ void proto_register_ess(void) {
|
|||
{ &hf_ess_receiptsTo,
|
||||
{ "receiptsTo", "ess.receiptsTo",
|
||||
FT_UINT32, BASE_DEC, NULL, 0,
|
||||
"ess.SEQUENCE_OF_GeneralNames", HFILL }},
|
||||
"ess.SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames", HFILL }},
|
||||
{ &hf_ess_receiptsTo_item,
|
||||
{ "GeneralNames", "ess.GeneralNames",
|
||||
FT_UINT32, BASE_DEC, NULL, 0,
|
||||
|
@ -962,14 +1075,14 @@ void proto_register_ess(void) {
|
|||
{ &hf_ess_contentDescription,
|
||||
{ "contentDescription", "ess.contentDescription",
|
||||
FT_STRING, BASE_NONE, NULL, 0,
|
||||
"ess.UTF8String", HFILL }},
|
||||
"ess.UTF8String_SIZE_1_MAX", HFILL }},
|
||||
{ &hf_ess_security_policy_identifier,
|
||||
{ "security-policy-identifier", "ess.security_policy_identifier",
|
||||
FT_OID, BASE_NONE, NULL, 0,
|
||||
"ess.SecurityPolicyIdentifier", HFILL }},
|
||||
{ &hf_ess_security_classification,
|
||||
{ "security-classification", "ess.security_classification",
|
||||
FT_INT32, BASE_DEC, VALS(ess_SecurityClassification_vals), 0,
|
||||
FT_UINT32, BASE_DEC, VALS(ess_SecurityClassification_vals), 0,
|
||||
"ess.SecurityClassification", HFILL }},
|
||||
{ &hf_ess_privacy_mark,
|
||||
{ "privacy-mark", "ess.privacy_mark",
|
||||
|
@ -982,11 +1095,11 @@ void proto_register_ess(void) {
|
|||
{ &hf_ess_pString,
|
||||
{ "pString", "ess.pString",
|
||||
FT_STRING, BASE_NONE, NULL, 0,
|
||||
"ess.PrintableString", HFILL }},
|
||||
"ess.PrintableString_SIZE_1_ub_privacy_mark_length", HFILL }},
|
||||
{ &hf_ess_utf8String,
|
||||
{ "utf8String", "ess.utf8String",
|
||||
FT_STRING, BASE_NONE, NULL, 0,
|
||||
"ess.UTF8String", HFILL }},
|
||||
"ess.UTF8String_SIZE_1_MAX", HFILL }},
|
||||
{ &hf_ess_SecurityCategories_item,
|
||||
{ "SecurityCategory", "ess.SecurityCategory",
|
||||
FT_NONE, BASE_NONE, NULL, 0,
|
||||
|
@ -1066,7 +1179,7 @@ void proto_register_ess(void) {
|
|||
{ &hf_ess_insteadOf,
|
||||
{ "insteadOf", "ess.insteadOf",
|
||||
FT_UINT32, BASE_DEC, NULL, 0,
|
||||
"ess.SEQUENCE_OF_GeneralNames", HFILL }},
|
||||
"ess.SEQUENCE_SIZE_1_MAX_OF_GeneralNames", HFILL }},
|
||||
{ &hf_ess_insteadOf_item,
|
||||
{ "GeneralNames", "ess.GeneralNames",
|
||||
FT_UINT32, BASE_DEC, NULL, 0,
|
||||
|
@ -1074,7 +1187,7 @@ void proto_register_ess(void) {
|
|||
{ &hf_ess_inAdditionTo,
|
||||
{ "inAdditionTo", "ess.inAdditionTo",
|
||||
FT_UINT32, BASE_DEC, NULL, 0,
|
||||
"ess.SEQUENCE_OF_GeneralNames", HFILL }},
|
||||
"ess.SEQUENCE_SIZE_1_MAX_OF_GeneralNames", HFILL }},
|
||||
{ &hf_ess_inAdditionTo_item,
|
||||
{ "GeneralNames", "ess.GeneralNames",
|
||||
FT_UINT32, BASE_DEC, NULL, 0,
|
||||
|
@ -1095,6 +1208,18 @@ void proto_register_ess(void) {
|
|||
{ "PolicyInformation", "ess.PolicyInformation",
|
||||
FT_NONE, BASE_NONE, NULL, 0,
|
||||
"x509ce.PolicyInformation", HFILL }},
|
||||
{ &hf_ess_certsV2,
|
||||
{ "certs", "ess.certs",
|
||||
FT_UINT32, BASE_DEC, NULL, 0,
|
||||
"ess.SEQUENCE_OF_ESSCertIDv2", HFILL }},
|
||||
{ &hf_ess_certsV2_item,
|
||||
{ "ESSCertIDv2", "ess.ESSCertIDv2",
|
||||
FT_NONE, BASE_NONE, NULL, 0,
|
||||
"ess.ESSCertIDv2", HFILL }},
|
||||
{ &hf_ess_hashAlgorithm,
|
||||
{ "hashAlgorithm", "ess.hashAlgorithm",
|
||||
FT_NONE, BASE_NONE, NULL, 0,
|
||||
"x509af.AlgorithmIdentifier", HFILL }},
|
||||
{ &hf_ess_certHash,
|
||||
{ "certHash", "ess.certHash",
|
||||
FT_BYTES, BASE_NONE, NULL, 0,
|
||||
|
@ -1113,7 +1238,7 @@ void proto_register_ess(void) {
|
|||
"x509af.CertificateSerialNumber", HFILL }},
|
||||
|
||||
/*--- End of included file: packet-ess-hfarr.c ---*/
|
||||
#line 69 "packet-ess-template.c"
|
||||
#line 72 "packet-ess-template.c"
|
||||
};
|
||||
|
||||
/* List of subtrees */
|
||||
|
@ -1122,8 +1247,9 @@ void proto_register_ess(void) {
|
|||
/*--- Included file: packet-ess-ettarr.c ---*/
|
||||
#line 1 "packet-ess-ettarr.c"
|
||||
&ett_ess_ReceiptRequest,
|
||||
&ett_ess_SEQUENCE_OF_GeneralNames,
|
||||
&ett_ess_SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames,
|
||||
&ett_ess_ReceiptsFrom,
|
||||
&ett_ess_SEQUENCE_OF_GeneralNames,
|
||||
&ett_ess_Receipt,
|
||||
&ett_ess_ContentHints,
|
||||
&ett_ess_ContentReference,
|
||||
|
@ -1142,14 +1268,18 @@ void proto_register_ess(void) {
|
|||
&ett_ess_MLData,
|
||||
&ett_ess_EntityIdentifier,
|
||||
&ett_ess_MLReceiptPolicy,
|
||||
&ett_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames,
|
||||
&ett_ess_SigningCertificate,
|
||||
&ett_ess_SEQUENCE_OF_ESSCertID,
|
||||
&ett_ess_SEQUENCE_OF_PolicyInformation,
|
||||
&ett_ess_SigningCertificateV2,
|
||||
&ett_ess_SEQUENCE_OF_ESSCertIDv2,
|
||||
&ett_ess_ESSCertIDv2,
|
||||
&ett_ess_ESSCertID,
|
||||
&ett_ess_IssuerSerial,
|
||||
|
||||
/*--- End of included file: packet-ess-ettarr.c ---*/
|
||||
#line 74 "packet-ess-template.c"
|
||||
#line 77 "packet-ess-template.c"
|
||||
};
|
||||
|
||||
/* Register protocol */
|
||||
|
@ -1177,6 +1307,7 @@ void proto_reg_handoff_ess(void) {
|
|||
register_ber_oid_dissector("1.2.840.113549.1.9.16.2.9", dissect_EquivalentLabels_PDU, proto_ess, "id-aa-equivalentLabels");
|
||||
register_ber_oid_dissector("1.2.840.113549.1.9.16.2.3", dissect_MLExpansionHistory_PDU, proto_ess, "id-aa-mlExpandHistory");
|
||||
register_ber_oid_dissector("1.2.840.113549.1.9.16.2.12", dissect_SigningCertificate_PDU, proto_ess, "id-aa-signingCertificate");
|
||||
register_ber_oid_dissector("1.2.840.113549.1.9.16.2.47", dissect_SigningCertificateV2_PDU, proto_ess, "id-aa-signingCertificateV2");
|
||||
register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.0", dissect_RestrictiveTag_PDU, proto_ess, "id-restrictiveAttributes");
|
||||
register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.1", dissect_EnumeratedTag_PDU, proto_ess, "id-enumeratedPermissiveAttributes");
|
||||
register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.2", dissect_PermissiveTag_PDU, proto_ess, "id-restrictiveAttributes");
|
||||
|
@ -1185,6 +1316,6 @@ void proto_reg_handoff_ess(void) {
|
|||
|
||||
|
||||
/*--- End of included file: packet-ess-dis-tab.c ---*/
|
||||
#line 89 "packet-ess-template.c"
|
||||
#line 92 "packet-ess-template.c"
|
||||
}
|
||||
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
/* Do not modify this file. */
|
||||
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
||||
/* packet-ess.h */
|
||||
/* ../../tools/asn2wrs.py -b -k -p ess -c ./ess.cnf -s ./packet-ess-template -D . ExtendedSecurityServices.asn */
|
||||
/* ../../tools/asn2wrs.py -b -e -k -C -p ess -c ./ess.cnf -s ./packet-ess-template -D . ExtendedSecurityServices.asn */
|
||||
|
||||
/* Input file: packet-ess-template.h */
|
||||
|
||||
#line 1 "packet-ess-template.h"
|
||||
/* packet-ess.h
|
||||
* Routines for RFC2634 Extended Security Services packet dissection
|
||||
* Routines for RFC5035 Extended Security Services packet dissection
|
||||
* Ronnie Sahlberg 2004
|
||||
* Stig Bjorlykke 2010
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue