remove functions register_ber_oid_name() and get_ber_oid_name() from packet-ber.c...
[obnox/wireshark/wip.git] / asn1 / x420 / x420.cnf
1 #.TYPE_ATTR
2 Time                    TYPE = FT_STRING  DISPLAY = BASE_NONE  STRING = NULL BITMASK = 0
3
4 #.MODULE_IMPORT
5 MTSAbstractService      x411
6
7 #.INCLUDE ../x411/x411-exp.cnf
8 #.INCLUDE ../x509af/x509af-exp.cnf
9 #.INCLUDE ../x509ce/x509ce-exp.cnf
10 #.INCLUDE ../acse/acse-exp.cnf
11
12 #.EXPORTS
13 ORDescriptor
14 InformationObject
15 ExtensionsField
16 IPM
17 IPN
18 MessageParameters
19
20 #.FIELD_RENAME
21
22 G3FacsimileBodyPart/data        g3facsimile_data
23 VideotexBodyPart/data   videotex_data
24 ExtendedBodyPart/data   extended_data
25 TeletexBodyPart/data    teletex_data
26 IA5TextBodyPart/data    ia5text_data
27 MessageBodyPart/data    message_data
28 EncryptedBodyPart/data  encrypted_data
29
30 G3FacsimileBodyPart/parameters  g3facsimile_parameters
31 VideotexBodyPart/parameters     videotex_parameters
32 ExtendedBodyPart/parameters     extended_parameters
33 TeletexBodyPart/parameters      teletex_parameters
34 IA5TextBodyPart/parameters      ia5text_parameters
35 MessageBodyPart/parameters      message_parameters
36 EncryptedBodyPart/parameters    encrypted_parameters
37
38 TeletexParameters/non-basic-parameters          teletex_non_basic_parameters
39 G3FacsimileParameters/non-basic-parameters      g3facsimile_non_basic_parameters
40
41 BodyPart/encrypted              encrypted_bp
42 CirculationSignatureData/algorithm-identifier   circulation-signature-algorithm-identifier
43
44 #.PDU
45 OriginatingUA
46 AbsenceAdvice
47 ChangeOfAddressAdvice
48 IPMAssemblyInstructions
49
50 #.REGISTER
51 OriginatingUA           B "1.2.826.0.1004.10.1.1" "nexor-originating-ua"
52 AbsenceAdvice           B "2.6.1.19.0"  "id-on-absence-advice"
53 ChangeOfAddressAdvice   B "2.6.1.19.1"  "id-on-change-of-address-advice"
54 IPMAssemblyInstructions B "2.6.1.17.2"  "id-mst-assembly-instructions"
55
56 IncompleteCopy                  B "2.6.1.5.0"   "id-hex-incomplete-copy"
57 Languages                       B "2.6.1.5.1"   "id-hex-languages"
58 AutoSubmitted                   B "2.6.1.5.2"   "id-hex-auto-submitted"
59 BodyPartSignatures              B "2.6.1.5.3"   "id-hex-body-part-signatures"
60 IPMSecurityLabel                B "2.6.1.5.4"   "id-hex-ipm-security-label"
61 AuthorizationTime               B "2.6.1.5.5"   "id-hex-authorization-time"
62 CirculationList                 B "2.6.1.5.6"   "id-hex-circulation-list-recipients"
63 CirculationListIndicator        B "2.6.1.20.0"  "id-rex-circulation-list-indicator"
64 DistributionCodes               B "2.6.1.5.7"   "id-hex-distribution-codes"
65 ExtendedSubject                 B "2.6.1.5.8"   "id-hex-extended-subject"
66 InformationCategories           B "2.6.1.5.9"   "id-hex-information-categories"
67 ManualHandlingInstructions      B "2.6.1.5.10"  "id-hex-manual-handling-instructions"
68 OriginatorsReference            B "2.6.1.5.11"  "id-hex-originators-reference"
69 PrecedencePolicyIdentifier      B "2.6.1.5.12"  "id-hex-precedence-policy-id"
70 Precedence                      B "2.6.1.20.1"  "id-rex-precedence"
71
72 IA5TextData                     B "2.6.1.4.0"   "id-et-ia5-text"
73 IA5TextParameters               B "2.6.1.11.0"  "id-ep-ia5-text"
74 G3FacsimileData                 B "2.6.1.4.2"   "id-et-g3-facsimile"
75 G3FacsimileParameters           B "2.6.1.11.2"  "id-ep-g3-facsimile"
76 G4Class1Data                    B "2.6.1.4.3"   "id-et-g4-class1"
77 TeletexData                     B "2.6.1.4.4"   "id-et-teletex"
78 TeletexParameters               B "2.6.1.11.4"  "id-ep-teletex"
79 VideotexData                    B "2.6.1.4.5"   "id-et-videotex"
80 VideotexParameters              B "2.6.1.11.5"  "id-ep-videotex"
81 EncryptedData                   B "2.6.1.4.6"   "id-et-encrypted"
82 EncryptedParameters             B "2.6.1.11.6"  "id-ep-encrypted"
83 MessageData                     B "2.6.1.4.7"   "id-et-message"
84 MessageParameters               B "2.6.1.11.7"  "id-ep-message"
85 MixedModeData                   B "2.6.1.4.8"   "id-et-mixed-mode"
86 BilaterallyDefinedBodyPart      B "2.6.1.4.9"   "id-et-bilaterally-defined"
87
88 GeneralTextParameters           B "2.6.1.11.11" "id-ep-general-text"
89 GeneralTextData                 B "2.6.1.4.11"  "id-et-general-text"
90 # FileTransferBodyPart {id-et 12} in a separate dissector (ftbp)
91 # {id-et 13} is no longer defined
92 # ForwardedReportBodyPart {id-et 14} defined in x411.cnf
93 MessageParameters               B "2.6.1.11.15" "id-ep-notification"
94 IPN                             B "2.6.1.4.15"  "id-et-notification"
95 VoiceParameters                 B "2.6.1.11.16" "id-ep-voice"
96 VoiceData                       B "2.6.1.4.16"  "id-et-voice"
97 # P22
98 ForwardedContentParameters      B "2.6.1.11.17.2.6.1.10.1"      "id-ep-content-p22"
99 InformationObject               B "2.6.1.4.17.2.6.1.10.1"       "id-et-content-p22"
100 #p2
101 ForwardedContentParameters      B "2.6.1.11.17.2.6.1.10.0"      "id-ep-content-p2"
102 InformationObject               B "2.6.1.4.17.2.6.1.10.0"       "id-et-content-p2"
103 #p722
104 ForwardedContentParameters      B "2.6.1.11.17.1.3.26.0.4406.0.4.1"     "id-ep-content-p772"
105
106
107 # PKCS#7Bodypart {id-et 18} defined in cms.cnf
108
109 #.FN_PARS IPMSExtension/type
110         FN_VARIANT = _str  VAL_PTR = &object_identifier_id
111
112 #.FN_BODY IPMSExtension/type
113   const char *name = NULL;
114
115   %(DEFAULT_BODY)s
116   
117   name = get_oid_str_name(object_identifier_id);
118   proto_item_append_text(tree, " (%%s)", name ? name : object_identifier_id); 
119
120 #.FN_BODY T_value
121
122   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
123
124 #.FN_BODY IPM
125
126  if((hf_index == hf_x420_ipm) && check_col(pinfo->cinfo, COL_INFO))
127    col_append_fstr(pinfo->cinfo, COL_INFO, " Message");
128
129   %(DEFAULT_BODY)s
130
131
132 #.FN_BODY IPN
133
134  if((hf_index == hf_x420_ipn) && check_col(pinfo->cinfo, COL_INFO))
135    col_append_fstr(pinfo->cinfo, COL_INFO, " Notification");
136
137   %(DEFAULT_BODY)s
138
139 #.FN_PARS SubjectField
140   VAL_PTR=&subject
141
142 #.FN_BODY SubjectField
143   tvbuff_t *subject=NULL;
144
145   %(DEFAULT_BODY)s
146
147   if(subject && check_col(pinfo->cinfo, COL_INFO))
148    col_append_fstr(pinfo->cinfo, COL_INFO, " (%%s)", tvb_format_text(subject, 0, tvb_length(subject)));
149
150 #.FN_PARS CharacterSetRegistration
151   VAL_PTR=&crs
152
153 #.FN_BODY CharacterSetRegistration
154   guint32 crs;
155   proto_item *pi;
156   %(DEFAULT_BODY)s
157
158   if((pi = get_ber_last_created_item()))
159     proto_item_append_text(pi, " (%%s)", val_to_str(crs, charsetreg_vals, "unknown"));
160
161 #.FN_BODY Interchange_Data_Element
162 /* XXX Not implemented yet */
163
164 #.FN_BODY NationallyDefinedBodyPart
165 /* XXX Not implemented yet */
166
167
168 #.END
169