summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/p22/p22.cnf
blob: 5e706d7c83ea3b83966dc82a5185fa9d3edbad77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
# p22.cnf
# X.420 (InterPersonal Messaging) conformance file

#.TYPE_ATTR
Time			TYPE = FT_STRING  DISPLAY = BASE_NONE  STRING = NULL BITMASK = 0
# Permitted-Actions-Attribute is exported from FTAM as DISPLAY = BASE_HEX -
# but this causes a runtime error.
# We override the definition here until we can identify the fix correct fix
Permitted-Actions-Attribute TYPE = FT_BYTES   DISPLAY = BASE_NONE   STRINGS = NULL  BITMASK = 0

#.IMPORT ../ftam/ftam-exp.cnf
#.IMPORT ../p1/p1-exp.cnf
#.IMPORT ../p7/p7-exp.cnf
#.IMPORT ../x509af/x509af-exp.cnf
#.IMPORT ../x509ce/x509ce-exp.cnf
#.IMPORT ../acse/acse-exp.cnf

#.OMIT_ASSIGNMENT
# These gives unused code warnings
RN
NRN
ON
ID
#.END

#.NO_EMIT
# These fields are only used through COMPONENTS OF,
# and consequently generate unused code warnings
CommonFields
#.END

#.EXPORTS
ORDescriptor
InformationObject
ExtensionsField
IPM
IPN
MessageParameters
NonReceiptReasonField
DiscardReasonField
ReceiptTimeField

#.FIELD_RENAME

G3FacsimileBodyPart/data	g3facsimile_data
VideotexBodyPart/data	videotex_data
ExtendedBodyPart/data	extended_data
TeletexBodyPart/data	teletex_data
IA5TextBodyPart/data	ia5text_data
MessageBodyPart/data	message_data
EncryptedBodyPart/data	encrypted_data

G3FacsimileBodyPart/parameters	g3facsimile_parameters
VideotexBodyPart/parameters	videotex_parameters
ExtendedBodyPart/parameters	extended_parameters
TeletexBodyPart/parameters	teletex_parameters
IA5TextBodyPart/parameters	ia5text_parameters
MessageBodyPart/parameters	message_parameters
EncryptedBodyPart/parameters	encrypted_parameters

TeletexParameters/non-basic-parameters		teletex_non_basic_parameters
G3FacsimileParameters/non-basic-parameters	g3facsimile_non_basic_parameters

CirculationSignatureData/algorithm-identifier	circulation-signature-algorithm-identifier

Account-Attribute/actual-values		account-actual-values
User-Identity-Attribute/actual-values	identity-actual-values

MessageReference/user-relative-identifier user-relative-identifier-ref

BodyPartSignatureVerification/_item/body-part-signature	body-part-signature-status
BodyPart/basic/encrypted		encrypted-bp
BodyPartSynopsis/message		message-synopsis
NonMessageBodyPartSynopsis/type		bp-type
NonMessageBodyPartSynopsis/parameters	bp-parameters

ForwardedContentToken/_item/body-part-choice	body-part-token-choice
ForwardedContentToken/_item/body-part-choice/message-or-content-body-part	forwarded-content-token

#.TYPE_RENAME

ForwardedContentToken/_item/body-part-choice	T_body_part_token_choice

#.FIELD_ATTR
G3FacsimileBodyPart/data				ABBREV=g3facsimile.data
VideotexBodyPart/data					ABBREV=videotex.data
ExtendedBodyPart/data					ABBREV=extended.data
TeletexBodyPart/data					ABBREV=teletex.data
IA5TextBodyPart/data					ABBREV=ia5text.data
MessageBodyPart/data					ABBREV=message.data
EncryptedBodyPart/data					ABBREV=encrypted.data
Account-Attribute/actual-values			ABBREV=account.actual-values
User-Identity-Attribute/actual-values	ABBREV=identity.actual-values

#.REGISTER
AbsenceAdvice				B "2.6.1.19.0"  "id-on-absence-advice"
ChangeOfAddressAdvice		B "2.6.1.19.1"  "id-on-change-of-address-advice"
IPMAssemblyInstructions		B "2.6.1.17.2"  "id-mst-assembly-instructions"

IncompleteCopy				B "2.6.1.5.0"	"id-hex-incomplete-copy"
Languages					B "2.6.1.5.1"	"id-hex-languages"
AutoSubmitted				B "2.6.1.5.2"	"id-hex-auto-submitted"
BodyPartSignatures			B "2.6.1.5.3"	"id-hex-body-part-signatures"
IPMSecurityLabel			B "2.6.1.5.4"	"id-hex-ipm-security-label"
AuthorizationTime			B "2.6.1.5.5"	"id-hex-authorization-time"
CirculationList				B "2.6.1.5.6"	"id-hex-circulation-list-recipients"
CirculationListIndicator	B "2.6.1.20.0"	"id-rex-circulation-list-indicator"
DistributionCodes			B "2.6.1.5.7"	"id-hex-distribution-codes"
ExtendedSubject				B "2.6.1.5.8"	"id-hex-extended-subject"
InformationCategories		B "2.6.1.5.9"	"id-hex-information-categories"
ManualHandlingInstructions	B "2.6.1.5.10" 	"id-hex-manual-handling-instructions"
OriginatorsReference		B "2.6.1.5.11"	"id-hex-originators-reference"
PrecedencePolicyIdentifier	B "2.6.1.5.12"	"id-hex-precedence-policy-id"
Precedence					B "2.6.1.20.1"	"id-rex-precedence"

IA5TextData 				B "2.6.1.4.0" 	"id-et-ia5-text"
IA5TextParameters 			B "2.6.1.11.0" 	"id-ep-ia5-text"
G3FacsimileData 			B "2.6.1.4.2" 	"id-et-g3-facsimile"
G3FacsimileParameters 		B "2.6.1.11.2" 	"id-ep-g3-facsimile"
G4Class1BodyPart 			B "2.6.1.4.3" 	"id-et-g4-class1"
TeletexData 				B "2.6.1.4.4" 	"id-et-teletex"
TeletexParameters 			B "2.6.1.11.4" 	"id-ep-teletex"
VideotexData 				B "2.6.1.4.5" 	"id-et-videotex"
VideotexParameters 			B "2.6.1.11.5" 	"id-ep-videotex"
EncryptedData 				B "2.6.1.4.6" 	"id-et-encrypted"
EncryptedParameters 		B "2.6.1.11.6" 	"id-ep-encrypted"
MessageData 				B "2.6.1.4.7" 	"id-et-message"
MessageParameters 			B "2.6.1.11.7" 	"id-ep-message"
MixedModeBodyPart			B "2.6.1.4.8" 	"id-et-mixed-mode"
BilaterallyDefinedBodyPart 	B "2.6.1.4.9" 	"id-et-bilaterally-defined"

GeneralTextParameters		B "2.6.1.11.11"	"id-ep-general-text"
GeneralTextData				B "2.6.1.4.11"	"id-et-general-text"
FileTransferParameters		B "2.6.1.11.12"	"id-ep-file-transfer"
FileTransferData			B "2.6.1.4.12"	"id-et-file-transfer"
# {id-et 13} is no longer defined
# ForwardedReportBodyPart {id-et 14} defined in p1.cnf
MessageParameters 			B "2.6.1.11.15" "id-ep-notification"
IPN							B "2.6.1.4.15" 	"id-et-notification"
VoiceParameters 			B "2.6.1.11.16" "id-ep-voice"
VoiceData					B "2.6.1.4.16" 	"id-et-voice"
# P22
ForwardedContentParameters 	B "2.6.1.11.17.2.6.1.10.1" 	"id-ep-content-p22"
InformationObject			B "2.6.1.4.17.2.6.1.10.1" 	"id-et-content-p22"
#p2
ForwardedContentParameters 	B "2.6.1.11.17.2.6.1.10.0" 	"id-ep-content-p2"
InformationObject			B "2.6.1.4.17.2.6.1.10.0" 	"id-et-content-p2"
#p722
ForwardedContentParameters 	B "2.6.1.11.17.1.3.26.0.4406.0.4.1" 	"id-ep-content-p772"


# PKCS#7Bodypart {id-et 18} defined in cms.cnf

# Message Store Attributes
IPMEntryType				B	"2.6.1.6.0"	"id-sat-ipm-entry-type"
IPMSynopsis					B	"2.6.1.6.1"	"id-sat-ipm-synopsis"
BodyPartDescriptor			B	"2.6.1.6.2"	"id-sat-body-parts-summary"
#Boolean					B	"2.6.1.6.3"	"id-sat-ipm-auto-discarded" - see x509sat.cnf

Heading						B	"2.6.1.7.0"	"id-hat-heading"
ThisIPMField				B	"2.6.1.7.1"	"id-hat-this-ipm"
OriginatorField				B	"2.6.1.7.2"	"id-hat-originator"
RepliedToIPMField			B	"2.6.1.7.3"	"id-hat-replied-to-IPM"
SubjectField				B	"2.6.1.7.4"	"id-hat-subject"
ExpiryTimeField				B	"2.6.1.7.5"	"id-hat-expiry-time"
ReplyTimeField				B	"2.6.1.7.6"	"id-hat-reply-time"
ImportanceField				B	"2.6.1.7.7"	"id-hat-importance"
SensitivityField			B	"2.6.1.7.8"	"id-hat-sensitivity"
AutoForwardedField			B	"2.6.1.7.9"	"id-hat-auto-forwarded"
AuthorizingUsersSubfield	B	"2.6.1.7.10"	"id-hat-authorizing-users"
PrimaryRecipientsSubfield	B	"2.6.1.7.11"	"id-hat-primary-recipients"
CopyRecipientsSubfield		B	"2.6.1.7.12"	"id-hat-copy-recipients"
BlindCopyRecipientsSubfield	B	"2.6.1.7.13"	"id-hat-blind-copy-recipients"
ObsoletedIPMsSubfield		B	"2.6.1.7.14"	"id-hat-obsoleted-IPMs"
RelatedIPMsSubfield			B	"2.6.1.7.15"	"id-hat-related-IPMs"
ReplyRecipientsSubfield		B	"2.6.1.7.16"	"id-hat-reply-recipients"
IncompleteCopy				B	"2.6.1.7.17"	"id-hat-incomplete-copy"
Language					B	"2.6.1.7.18"	"id-hat-languages"
ORDescriptor				B	"2.6.1.7.19"	"id-hat-rn-requestors"
ORDescriptor				B	"2.6.1.7.20"	"id-hat-nrn-requestors"
ORDescriptor				B	"2.6.1.7.21"	"id-hat-reply-requestors"
AutoSubmitted				B	"2.6.1.7.22"	"id-hat-auto-submitted"
BodyPartSignatures			B	"2.6.1.7.23"	"id-hat-body-part-signatures"
IPMSecurityLabel			B	"2.6.1.7.24"	"id-hat-ipm-security-label"
BodyPartSecurityLabel		B	"2.6.1.7.25"	"id-hat-body-part-security-label"
BodyPartTokens				B	"2.6.1.7.26"	"id-hat-body-part-encryption-token"
AuthorizationTime			B	"2.6.1.7.27"	"id-hat-authorization-time"
CirculationMember			B	"2.6.1.7.28"	"id-hat-circulation-list-recipients"
DistributionCode			B	"2.6.1.7.29"	"id-hat-distribution-codes"
ExtendedSubject				B	"2.6.1.7.30"	"id-hat-extended-subject"
InformationCategory			B	"2.6.1.7.31"	"id-hat-information-category"
ManualHandlingInstruction	B	"2.6.1.7.32"	"id-hat-manual-handling-instructions"
OriginatorsReference		B	"2.6.1.7.33"	"id-hat-originators-reference"
PrecedencePolicyIdentifier	B	"2.6.1.7.34"	"id-hat-precedence-policy-id"
ForwardedContentToken		B	"2.6.1.7.35"	"id-hat-forwarded-content-token"
#MessageToken				B	"2.6.1.7.36"	"id-hat-forwarded-token" - see p1.cnf
Precedence					B	"2.6.1.7.37"	"id-hat-precedence"
BodyPartSignatureVerification	B	"2.6.1.7.38"	"id-hat-body-part-signature-verification-status"

Body						B	"2.6.1.8.0"	"id-bat-body"

# id-cat ID ::= {id-ipms  13} -- correlation attributes
CorrelatedDeliveredIPNs		B	"2.6.1.13.0"	"id-cat-correlated-delivered-ipns"
CorrelatedDeliveredReplies	B	"2.6.1.13.1"	"id-cat-correlated-delivered-replies"
DeliveredIPNStatus			B	"2.6.1.13.2"	"id-cat-delivered-ipn-summary"
DeliveredReplyStatus		B	"2.6.1.13.3"	"id-cat-delivered-replies-summary"
#SequenceNumber				B	"2.6.1.13.4"	"id-cat-forwarded-ipms"
#SequenceNumber				B	"2.6.1.13.5"	"id-cat-forwarding-ipms"
#ORDescriptor				B	"2.6.1.13.6"	"id-cat-ipm-recipients"
IPMLocation					B	"2.6.1.13.7"	"id-cat-obsoleted-ipms"
#SequenceNumber				B	"2.6.1.13.8"	"id-cat-obsoleting-ipms"
#IPMLocation				B	"2.6.1.13.9"	"id-cat-related-ipms"
#SequenceNumber				B	"2.6.1.13.10"	"id-cat-relating-ipms"
#SequenceNumber				B	"2.6.1.13.11"	"id-cat-replied-to-ipm"
#id-cat-replying-ipms		B	"2.6.1.13.12"	"id-cat-replying-ipms"
#ReplyTimeField				B	"2.6.1.13.13"	"id-cat-revised-reply-time"
SubmittedIPNStatus			B	"2.6.1.13.14"	"id-cat-submitted-ipn-status"
#SequenceNumber				B	"2.6.1.13.15"	"id-cat-submitted-ipns"
SubmittedReplyStatus		B	"2.6.1.13.16"	"id-cat-submitted-reply-status"
#SequenceNumber				B	"2.6.1.13.17"	"id-cat-subject-ipm"
RecipientCategory			B	"2.6.1.13.18"	"id-cat-recipient-category"

# id-sec ID ::= {id-ipms  18} -- ipm security extensions
RecipientSecurityRequest	B	"2.6.1.18.0"	"id-sec-ipm-security-request"
IpnSecurityResponse			B	"2.6.1.18.1"	"id-sec-security-common-fields"

#.FN_PARS IPMSExtension/type
	FN_VARIANT = _str  VAL_PTR = &actx->external.direct_reference

#.FN_BODY IPMSExtension/type
  const char *name = NULL;

  %(DEFAULT_BODY)s

  name = oid_resolved_from_string(actx->pinfo->pool, actx->external.direct_reference);
  proto_item_append_text(tree, " (%%s)", name ? name : actx->external.direct_reference);

#.FN_BODY IPMSExtension/value

  offset=call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL);

#.FN_BODY IPM

 col_append_str(actx->pinfo->cinfo, COL_INFO, " Message");

  %(DEFAULT_BODY)s


#.FN_BODY IPN

 col_append_str(actx->pinfo->cinfo, COL_INFO, " Notification");

  %(DEFAULT_BODY)s

#.FN_PARS SubjectField
  VAL_PTR=&subject

#.FN_BODY SubjectField
  tvbuff_t *subject=NULL;

  %(DEFAULT_BODY)s

  if(subject)
   col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%%s)", tvb_get_string_enc(actx->pinfo->pool, subject, 0,
                                                                             tvb_reported_length(subject), ENC_T61));

#.TYPE_ATTR
SubjectField DISPLAY = BASE_NONE

#.TYPE_ATTR
TeletexData/_item DISPLAY = BASE_NONE

#.TYPE_ATTR
FreeFormName DISPLAY = BASE_NONE

#.TYPE_ATTR
VideotexData DISPLAY = BASE_NONE

#.FN_PARS CharacterSetRegistration
  VAL_PTR=&crs

#.FN_BODY CharacterSetRegistration
  uint32_t crs;
  %(DEFAULT_BODY)s

  if(actx->created_item)
    proto_item_append_text(actx->created_item, " (%%s)", val_to_str_const(crs, charsetreg_vals, "unknown"));

#.FN_BODY Interchange-Data-Element
/* XXX Not implemented yet */

#.FN_BODY NationallyDefinedBodyPart
/* XXX Not implemented yet */

#.FN_BODY Contents-Type-Attribute/document-type/parameter
/* XXX: Not implemented yet */

#.FN_BODY CompressionParameter/compression-algorithm-id
    offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &actx->external.direct_reference);

#.FN_BODY CompressionParameter/compression-algorithm-param
/* XXX: Not implemented yet */

#.END