Witness: enum witness_notifyResponse_type
[wireshark-wip.git] / asn1 / pkix1explicit / pkix1explicit.cnf
blob1b220f6fef4cf273880c886e626decf21b223d81
1 # pkix1explicit.cnf
2 # pkix1explicit conformation file
4 # $Id$
6 #.MODULE_IMPORT
8 #.EXPORTS
9 Attribute
10 AttributeTypeAndValue
11 CertificateSerialNumber
12 DirectoryString
13 Extension
14 Extensions
15 RelativeDistinguishedName
16 RDNSequence
17 TeletexDomainDefinedAttribute
18 TerminalType
19 Version
20 Time
21 UniqueIdentifier
23 #.REGISTER
24 DirectoryString         B "1.3.6.1.5.5.7.2.1" "id-qt-cps"
25 DomainParameters        B "1.2.840.10046.2.1" "dhpublicnumber"
26 IPAddrBlocks            B "1.3.6.1.5.5.7.1.7" "id-pe-ipAddrBlocks"
27 ASIdentifiers           B "1.3.6.1.5.5.7.1.8" "id-pe-autonomousSysIds"
29 #.PDU
31 #.NO_EMIT
33 #.TYPE_RENAME
35 #.FIELD_RENAME
37 #.FN_BODY DirectoryString
38         offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
40 #.FN_PARS Attribute/values
41   FN_VARIANT = _str  HF_INDEX = hf_pkix1explicit_object_identifier_id  VAL_PTR = &object_identifier_id
43 #.FN_BODY Attribute/values/_item
44   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL);
46 #.FN_PARS AttributeTypeAndValue/value
47   FN_VARIANT = _str  HF_INDEX = hf_pkix1explicit_object_identifier_id  VAL_PTR = &object_identifier_id
49 #.FN_BODY AttributeTypeAndValue/value
50   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL);
52 #.FN_PARS Extension/extnId
53   FN_VARIANT = _str  HF_INDEX = hf_pkix1explicit_object_identifier_id  VAL_PTR = &object_identifier_id
55 #.FN_BODY Extension/extnValue
56   gint8 appclass;
57   gboolean pc, ind;
58   gint32 tag;
59   guint32 len;
60   /* skip past the T and L  */
61   offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &appclass, &pc, &tag);
62   offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind);
63   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL);
65 # IPAddrAndASCertExtn 
67 #.FN_BODY IPAddressFamily/addressFamily VAL_PTR = &parameter_tvb
68         tvbuff_t        *parameter_tvb;
69         proto_tree *subtree;
71 %(DEFAULT_BODY)s
73         if (!parameter_tvb)
74                 return offset;
75         subtree = proto_item_add_subtree(actx->created_item, ett_pkix1explicit_addressFamily);
76         proto_tree_add_item(subtree, hf_pkix1explicit_addressFamily_afn, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
77         if(tvb_length(parameter_tvb)>2)
78                 proto_tree_add_item(subtree, hf_pkix1explicit_addressFamily_safi, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
81 #.END