New protocol: RFC2634 ExtendedSecurityServices
[obnox/wireshark/wip.git] / asn1 / cms / cms.cnf
1 # CMS.cnf
2 # CMS conformation file
3
4 # $Id$
5
6 #.MODULE_IMPORT
7 AuthenticationFramework x509af
8 InformationFramework x509if
9
10 #.INCLUDE ../x509af/x509af-exp.cnf
11 #.INCLUDE ../x509if/x509if-exp.cnf
12
13 #.EXPORTS
14 ContentInfo
15 ContentType
16 DigestAlgorithmIdentifiers
17 EncapsulatedContentInfo
18 IssuerAndSerialNumber
19 SignedAttributes
20 SignedData
21 SignerIdentifier
22 SignerInfo
23 SignerInfos
24 SignatureValue
25 UnsignedAttributes
26
27 #.REGISTER
28 SignedData        B "1.2.840.113549.1.7.2"      "id-signedData"
29 EnvelopedData     B "1.2.840.113549.1.7.3"      "id-envelopedData"
30 DigestedData      B "1.2.840.113549.1.7.5"      "id-digestedData"
31 EncryptedData     B "1.2.840.113549.1.7.6"      "id-encryptedData"
32 AuthenticatedData B "1.2.840.113549.1.9.16.1.2" "id-ct-authenticatedData"
33
34 #.NO_EMIT
35
36 #.TYPE_RENAME
37
38 #.FIELD_RENAME
39 SignerInfo/signature    signatureValue
40 RecipientEncryptedKey/rid       rekRid
41
42 #.FN_BODY ContentInfo/contentType
43   offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
44                                          hf_cms_ci_contentType, object_identifier_id);
45
46 #.FN_BODY ContentInfo/content
47   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
48
49 #.FN_BODY EncapsulatedContentInfo/eContentType
50   offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
51                                          hf_cms_ci_contentType, object_identifier_id);
52
53 #.FN_BODY EncapsulatedContentInfo/eContent
54   guint8 class;
55   gboolean pc, ind;
56   guint32 tag, len;
57   int pdu_offset = offset;
58
59   /* XXX Do we care about printing out the octet string? */
60   offset = dissect_cms_OCTET_STRING(FALSE, tvb, offset, pinfo, tree, hf_cms_eContent);
61
62   pdu_offset = get_ber_identifier(tvb, pdu_offset, &class, &pc, &tag);
63   pdu_offset = get_ber_length(tvb, pdu_offset, &len, &ind);
64   pdu_offset = call_ber_oid_callback(object_identifier_id, tvb, pdu_offset, pinfo, tree);
65
66 #.FN_BODY OtherKeyAttribute/keyAttrId
67   offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
68                                          hf_cms_ci_contentType, object_identifier_id);
69
70 #.FN_BODY OtherKeyAttribute/keyAttr
71   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
72
73 #.END
74
75