Second step in introducing asn context to BER dissectors just like in PER.
[obnox/wireshark/wip.git] / asn1 / pkix1explicit / pkix1explicit.cnf
1 # pkix1explicit.cnf
2 # pkix1explicit conformation file
3
4 # $Id$
5
6 #.MODULE_IMPORT
7
8 #.EXPORTS
9 AttributeTypeAndValue
10 CertificateSerialNumber
11 DirectoryString
12 Extension
13 Extensions
14 RelativeDistinguishedName
15 RDNSequence
16 TeletexDomainDefinedAttribute
17 TerminalType
18
19 #.REGISTER
20 DirectoryString  B "1.3.6.1.5.5.7.2.1" "id-qt-cps"
21 DomainParameters B "1.2.840.10046.2.1" "dhpublicnumber"
22
23 #.PDU
24
25 #.NO_EMIT
26
27 #.TYPE_RENAME
28
29 #.FIELD_RENAME
30
31 #.FN_BODY DirectoryString
32         offset = dissect_ber_octet_string(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index, NULL);
33
34 #.FN_PARS AttributeTypeAndValue/value
35   FN_VARIANT = _str  HF_INDEX = hf_pkix1explicit_object_identifier_id  VAL_PTR = &object_identifier_id
36
37 #.FN_BODY AttributeTypeAndValue/value
38   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
39
40 #.FN_PARS Extension/extnId
41   FN_VARIANT = _str  HF_INDEX = hf_pkix1explicit_object_identifier_id  VAL_PTR = &object_identifier_id
42
43 #.FN_BODY Extension/extnValue
44   gint8 class;
45   gboolean pc, ind;
46   gint32 tag;
47   guint32 len;
48   /* skip past the T and L  */
49   offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &class, &pc, &tag);
50   offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind);
51   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
52
53
54 #.END
55