forked from osmocom/wireshark
![Anders Broman](/assets/img/avatar_default.png)
allows the dissection of ContentInfo based upon it's OID - something that is used for a secure X.400 messages (Protecting Content Type (PCT)). svn path=/trunk/; revision=16069
80 lines
2.3 KiB
INI
80 lines
2.3 KiB
INI
# CMS.cnf
|
|
# CMS conformation file
|
|
|
|
# $Id$
|
|
|
|
#.MODULE_IMPORT
|
|
AuthenticationFramework x509af
|
|
InformationFramework x509if
|
|
|
|
#.INCLUDE ../x509af/x509af-exp.cnf
|
|
#.INCLUDE ../x509if/x509if-exp.cnf
|
|
|
|
#.EXPORTS
|
|
ContentInfo
|
|
ContentType
|
|
Countersignature
|
|
DigestAlgorithmIdentifiers
|
|
EncapsulatedContentInfo
|
|
EnvelopedData
|
|
IssuerAndSerialNumber
|
|
SignedAttributes
|
|
SignedData
|
|
SignerIdentifier
|
|
SignerInfo
|
|
SignerInfos
|
|
SignatureValue
|
|
UnsignedAttributes
|
|
|
|
#.REGISTER
|
|
ContentInfo B "1.2.840.113549.1.9.16.1.6" "id-ct-contentInfo"
|
|
SignedData B "1.2.840.113549.1.7.2" "id-signedData"
|
|
EnvelopedData B "1.2.840.113549.1.7.3" "id-envelopedData"
|
|
DigestedData B "1.2.840.113549.1.7.5" "id-digestedData"
|
|
EncryptedData B "1.2.840.113549.1.7.6" "id-encryptedData"
|
|
AuthenticatedData B "1.2.840.113549.1.9.16.1.2" "id-ct-authenticatedData"
|
|
|
|
#.NO_EMIT
|
|
|
|
#.TYPE_RENAME
|
|
|
|
#.FIELD_RENAME
|
|
SignerInfo/signature signatureValue
|
|
RecipientEncryptedKey/rid rekRid
|
|
|
|
#.FN_BODY ContentInfo/contentType
|
|
offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
|
|
hf_cms_ci_contentType, object_identifier_id);
|
|
|
|
#.FN_BODY ContentInfo/content
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
|
|
|
|
#.FN_BODY EncapsulatedContentInfo/eContentType
|
|
offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
|
|
hf_cms_ci_contentType, object_identifier_id);
|
|
|
|
#.FN_BODY EncapsulatedContentInfo/eContent
|
|
gint8 class;
|
|
gboolean pc, ind;
|
|
gint32 tag;
|
|
guint32 len;
|
|
int pdu_offset = offset;
|
|
|
|
/* XXX Do we care about printing out the octet string? */
|
|
offset = dissect_cms_OCTET_STRING(FALSE, tvb, offset, pinfo, tree, hf_cms_eContent);
|
|
|
|
pdu_offset = get_ber_identifier(tvb, pdu_offset, &class, &pc, &tag);
|
|
pdu_offset = get_ber_length(tree, tvb, pdu_offset, &len, &ind);
|
|
pdu_offset = call_ber_oid_callback(object_identifier_id, tvb, pdu_offset, pinfo, tree);
|
|
|
|
#.FN_BODY OtherKeyAttribute/keyAttrId
|
|
offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
|
|
hf_cms_ci_contentType, object_identifier_id);
|
|
|
|
#.FN_BODY OtherKeyAttribute/keyAttr
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
|
|
|
|
#.END
|
|
|
|
|