1 --/////////////////////////////////////////////////////////////////////////////
2 -- Copyright (c) 2000-2015 Ericsson Telecom AB
3 -- All rights reserved. This program and the accompanying materials
4 -- are made available under the terms of the Eclipse Public License v1.0
5 -- which accompanies this distribution, and is available at
6 -- http://www.eclipse.org/legal/epl-v10.html
7 --/////////////////////////////////////////////////////////////////////////////
8 AsnValues DEFINITIONS AUTOMATIC TAGS
13 Asn-bs , -- BIT STRING
15 Asn-pdv, -- EMBEDDED PDV
19 Asn-oid, -- OBJECT IDENTIFIER
20 Asn-odesc, -- ObjectDescriptor
21 Asn-os , -- OCTET STRING
23 Asn-roid, -- RELATIVE-OID
26 Asn-gen, -- GeneralString
27 Asn-gra, -- GraphicString
29 Asn-num, -- NumericString
30 Asn-prn, -- PrintableString
31 Asn-ttx, -- TeletexString
32 Asn-uni, -- UniversalString
33 Asn-utf, -- UTF8String
34 Asn-vis, -- VisibleString
35 Asn-vtx, -- VideotexString
36 Asn-unr, -- CHARACTER STRING
45 Deep2o, Deep3o, Deep4o, Deep5o,
52 bstr Asn-bs ::= '10100100'B
55 abstr BIT STRING ::= '10100100'B
56 abstr0 BIT STRING ::= ''B
58 binpi BIT STRING ::= -- first 256 bits of the fractional part of pi
59 '00100100 00111111 01101010 10001000 10000101 10100011 00001000 11010011
60 00010011 00011001 10001010 00101110 00000011 01110000 01110011 01000100
61 10100100 00001001 00111000 00100010 00101001 10011111 00110001 11010000
62 00001000 00101110 11111010 10011000 11101100 01001110 01101100 10001001'B
64 /* The OSS Nokalva ASN.1 compiler rejects the value below if it's split
65 over multiple lines. Strangely it accepts the one above. This appears
66 to depend on whether it's a built-in BIT STRING or the user-defined Asn-bs.
69 binpi2 Asn-bs ::= -- next 256 bits of the fractional part of pi
70 '01000101 00101000 00100001 11100110 00111000 11010000 00010011 01110111 10111110 01010100 01100110 11001111 00110100 11101001 00001100 01101100 11000000 10101100 00101001 10110111 11001001 01111100 01010000 11011101 00111111 10000100 11010101 10110101 10110101 01000111 00001001 00010111'B
74 noo Asn-bool ::= FALSE -- do not want
75 so-true BOOLEAN ::= TRUE
79 -- note: data-value-descriptor not allowed for EMBEDDED PDV
81 pdv-sxs Asn-pdv ::= { -- identification : SyntaXeS
82 identification syntaxes : {
83 abstract { iso 0 9 8 7 6 5 }, transfer { iso 0 5 6 7 8 9 }
85 -- data-value-descriptor "Food given to cattle",
86 data-value 'BEEFFEED'H
90 identification syntax : { etsi 1 3 5 },
91 -- data-value-descriptor "We need real coffee",
92 data-value 'DECAFBAD'H
95 pdv-pci Asn-pdv ::= { -- identification : Presentation-Context-Id
96 identification presentation-context-id : 1,
97 -- OPTIONAL data-value-descriptor
98 data-value 'BABEFACE'H
101 pdv-cneg Asn-pdv ::= { -- identification : Context-NEGotiation
102 identification context-negotiation : {
103 presentation-context-id 69,
104 transfer-syntax { joint-iso-itu-t 7 18 28 18 28 45 90 45 }
106 -- OPTIONAL data-value-descriptor
110 pdv-xsx Asn-pdv ::= {
111 identification transfer-syntax : { etsi 0 1 2 },
115 pdv-fix Asn-pdv ::= {
116 identification fixed : NULL,
121 epdv-sxs EMBEDDED PDV ::= { -- identification : SyntaXeS
122 identification syntaxes : {
123 abstract { iso 0 9 8 7 6 5 }, transfer { iso 0 5 6 7 8 9 }
125 -- data-value-descriptor "Food given to cattle",
126 data-value 'BEEFFEED'H
129 epdv-sx EMBEDDED PDV ::= {
130 identification syntax : { etsi 1 3 5 },
131 -- data-value-descriptor "We need real coffee",
132 data-value 'DECAFBAD'H
135 epdv-pci EMBEDDED PDV ::= { -- identification : Presentation-Context-Id
136 identification presentation-context-id : 1,
137 -- OPTIONAL data-value-descriptor
138 data-value 'BABEFACE'H
141 epdv-cneg EMBEDDED PDV ::= { -- identification : Context-NEGotiation
142 identification context-negotiation : {
143 presentation-context-id 69,
144 transfer-syntax { joint-iso-itu-t 7 18 28 18 28 45 90 45 }
146 -- OPTIONAL data-value-descriptor
150 epdv-xsx EMBEDDED PDV ::= {
151 identification transfer-syntax : { etsi 0 1 2 },
155 epdv-fix EMBEDDED PDV ::= {
156 identification fixed : NULL,
164 identification presentation-context-id : 2,
165 -- OPTIONAL data-value-descriptor "p-c-i, indirect only"
166 data-value 'BABEFACE'H
171 identification syntax : e-oid,
172 data-value-descriptor "using syntax, direct only",
173 data-value 'BAADF00D'H
178 identification context-negotiation : {
179 presentation-context-id 111,
180 transfer-syntax ber-oid
182 data-value-descriptor "using context negotiation, both",
183 data-value '1337D00D'H
187 fourty-two Asn-int ::= 42
189 avogadro Asn-int ::= 602214179000000000000000
195 etsi Asn-oid ::= { itu-t identified-organization etsi(0) }
196 etsi-reserved Asn-oid ::= { itu-t identified-organization etsi(0) reserved(127) }
197 etsid Asn-oid ::= { itu-t identified-organization etsi(0) reserved(127) etsi-identified-organization(0) }
198 ericsson Asn-oid ::= { itu-t identified-organization etsi(0) reserved(127) etsi-identified-organization(0) ericsson(5) }
199 ericsson-testing Asn-oid ::= { itu-t identified-organization etsi(0) reserved(127) etsi-identified-organization(0) ericsson(5) testing(0) }
200 pi-oid Asn-oid ::= { iso 3 14 15 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 }
201 e-oid Asn-oid ::= { 2 7 18 28 18 28 45 90 45 }
202 etsi-solo Asn-oid ::= { etsi } -- is this a ROID ?
204 ber-oid Asn-oid ::= {joint-iso-ccitt asn1(1) basic-encoding(1)}
205 -- (see Clause 25.2 of Recommendation X.208, Appendix A, "Referenced Documents").
207 cer-oid Asn-oid ::= {joint-iso-ccitt mhs-motis(6) group(6) white(1) api(2) om(4) canonical-ber(4)}
208 -- (see Clause 8.7 of Recommendation X.509, Appendix A, "Referenced Documents").
211 -- this is invalid (objid component list cannot be empty)
212 -- noid Asn-oid ::= {}
214 -- this is not allowed, X.690 (07/2002) 31.10 refers to X.660;
215 -- X.660 requires that an object identifier value shall contain at least two arcs
216 -- itu-t Asn-oid ::= { itu-t }
220 etsi-desc Asn-odesc ::= "European Telecommunications Standards Institute"
223 os Asn-os ::= '00112233'H
227 pi Asn-real ::= 3.1415926535897932384626433
228 e Asn-real ::= 2.718281828459045
231 /* Minus zero is not permitted, see X.680 (07/2002) 18.2
232 minus0 Asn-real ::= -0
237 zoid Asn-roid ::= {iso(1) member-body(2) bsi(826) disc(0) ericsson(1249)}
240 b1val Asn-bmp ::= {"Ich wei", {0,0,0,223} ," es! Basic Multilingual Plane."}
242 -- author Asn-bmp ::= { latinCapitalLetterR , latinSmallLetterAWithAcute, latinSmallLetterD, latinSmallLetterU, latinSmallLetterL, latinSmallLetterY }
243 esc-bmp Asn-bmp ::= { -- this string is to test the escaping of non-ASCII characters (group and plane must be zero for BMPString)
245 {0,0,0,0}, {0,0,0,1}, {0,0,0,2}, {0,0,0,3}, {0,0,0,4}, {0,0,0,5}, {0,0,0,6}, {0,0,0,7},
246 {0,0,0,8}, {0,0,0,9}, {0,0,0,10}, {0,0,0,11}, {0,0,0,12}, {0,0,0,13}, {0,0,0,14}, {0,0,0,15},
247 {0,0,0,16}, {0,0,0,17}, {0,0,0,18}, {0,0,0,19}, {0,0,0,20}, {0,0,0,21}, {0,0,0,22}, {0,0,0,23},
248 {0,0,0,24}, {0,0,0,25}, {0,0,0,26}, {0,0,0,27}, {0,0,0,28}, {0,0,0,29}, {0,0,0,30}, {0,0,0,31},
249 {0,0,0,132}, {0,0,1,66}, {0,0,66,66}
251 esc-bmp-dec Asn-bmp ::= { -- this string is what we get back from XML decoding
253 {0,0,0,0}, {0,0,0,1}, {0,0,0,2}, {0,0,0,3}, {0,0,0,4}, {0,0,0,5}, {0,0,0,6}, {0,0,0,7},
254 {0,0,0,8}, {0,0,0,9}, {0,0,0,10}, {0,0,0,11}, {0,0,0,12}, {0,0,0,10 /* instead of 13 */}, {0,0,0,14}, {0,0,0,15},
255 {0,0,0,16}, {0,0,0,17}, {0,0,0,18}, {0,0,0,19}, {0,0,0,20}, {0,0,0,21}, {0,0,0,22}, {0,0,0,23},
256 {0,0,0,24}, {0,0,0,25}, {0,0,0,26}, {0,0,0,27}, {0,0,0,28}, {0,0,0,29}, {0,0,0,30}, {0,0,0,31},
257 {0,0,0,132}, {0,0,1,66}, {0,0,66,66}
259 html-bmp Asn-bmp ::= "<html><body onload='javascript.alert(""BMP"")'> </body></html>"
263 g1val Asn-gen ::= "Who is General Failure and why is he reading my disk ?"
267 gr1val Asn-gra ::= "Graphic"
268 gr0val Asn-gra ::= ""
271 ia5val Asn-ia5 ::= "Ia5! Ia5! Cthulhu fhtagn!"
272 ia6val Asn-ia5 ::= ""
273 ia7val IA5String ::= "A bona fide IA5String"
274 ia8val IA5String ::= ""
276 val-vis Asn-vis ::= "Visible (ISO646)" -- VisibleString a.k.a. ISO646String
277 val-num Asn-num ::= "150130937545296572356771972164254457814047970568738777235893533016064" -- NumericString= 42 ** 42 !
278 val-prn Asn-prn ::= "Printable" -- PrintableString
279 val-ttx Asn-ttx ::= "Teletex" -- TeletexString
280 val-uni Asn-uni ::= { "Universal ", {0, 0, 112, 112}, {0, 0, 127, 189}, kisarvizturo } -- UniversalString
281 -- 0xE7 0x81 0xB0 0xE7 0xBE 0xBD
283 esc-uni Asn-uni ::= { -- this string is to test the escaping of non-ASCII characters
284 "Universal escapology", {0,0,0,10}, -- newline
285 -- Now all the control characters
286 {0,0,0,0}, {0,0,0,1}, {0,0,0,2}, {0,0,0,3}, {0,0,0,4}, {0,0,0,5}, {0,0,0,6}, {0,0,0,7},
287 {0,0,0,8}, {0,0,0,9}, {0,0,0,10}, {0,0,0,11}, {0,0,0,12}, {0,0,0,13}, {0,0,0,14}, {0,0,0,15},
288 {0,0,0,16}, {0,0,0,17}, {0,0,0,18}, {0,0,0,19}, {0,0,0,20}, {0,0,0,21}, {0,0,0,22}, {0,0,0,23},
289 {0,0,0,24}, {0,0,0,25}, {0,0,0,26}, {0,0,0,27}, {0,0,0,28}, {0,0,0,29}, {0,0,0,30}, {0,0,0,31},
290 -- Now some Unicode characters
291 {0,0,0,132}, {0,0,1,66}, {0,0,66,66}, {0,1,66,66}, {0,16,66,66}
293 esc-uni-dec Asn-uni ::= { -- this string is what we get back from XER decoding
294 "Universal escapology", {0,0,0,10}, -- newline
295 -- Now all the control characters
296 {0,0,0,0}, {0,0,0,1}, {0,0,0,2}, {0,0,0,3}, {0,0,0,4}, {0,0,0,5}, {0,0,0,6}, {0,0,0,7},
297 {0,0,0,8}, {0,0,0,9}, {0,0,0,10}, {0,0,0,11}, {0,0,0,12}, {0,0,0,10 /* instead of 13 */}, {0,0,0,14}, {0,0,0,15},
298 {0,0,0,16}, {0,0,0,17}, {0,0,0,18}, {0,0,0,19}, {0,0,0,20}, {0,0,0,21}, {0,0,0,22}, {0,0,0,23},
299 {0,0,0,24}, {0,0,0,25}, {0,0,0,26}, {0,0,0,27}, {0,0,0,28}, {0,0,0,29}, {0,0,0,30}, {0,0,0,31},
300 -- Now some Unicode characters
301 {0,0,0,132}, {0,0,1,66}, {0,0,66,66}, {0,1,66,66}, {0,16,66,66}
303 html-uni Asn-uni ::= "<html><body onload='javascript.alert(""Universal"")'> </body></html>"
305 val-utf Asn-utf ::= { "UTF8 ", nagyarvizturo } -- UTF8String
306 esc-utf Asn-utf ::= {
307 -- {0,0,0,0} not valid for UTF8 (string terminator)
308 "UTF8 escapology", {0,0,0,10},
309 {0,0,0,1}, {0,0,0,2}, {0,0,0,3}, {0,0,0,4}, {0,0,0,5}, {0,0,0,6}, {0,0,0,7},
310 {0,0,0,8}, {0,0,0,9}, {0,0,0,10}, {0,0,0,11}, {0,0,0,12}, {0,0,0,13}, {0,0,0,14}, {0,0,0,15},
311 {0,0,0,16}, {0,0,0,17}, {0,0,0,18}, {0,0,0,19}, {0,0,0,20}, {0,0,0,21}, {0,0,0,22}, {0,0,0,23},
312 {0,0,0,24}, {0,0,0,25}, {0,0,0,26}, {0,0,0,27}, {0,0,0,28}, {0,0,0,29}, {0,0,0,30}, {0,0,0,31},
313 {0,0,0,132}, {0,0,1,66}, {0,0,66,66}, {0,1,66,66}, {0,16,66,66}
315 esc-utf-dec Asn-utf ::= { -- what we get back from XER decoding
316 "UTF8 escapology", {0,0,0,10},
317 {0,0,0,1}, {0,0,0,2}, {0,0,0,3}, {0,0,0,4}, {0,0,0,5}, {0,0,0,6}, {0,0,0,7},
318 {0,0,0,8}, {0,0,0,9}, {0,0,0,10}, {0,0,0,11}, {0,0,0,12}, {0,0,0,10 /* instead of 13 */}, {0,0,0,14}, {0,0,0,15},
319 {0,0,0,16}, {0,0,0,17}, {0,0,0,18}, {0,0,0,19}, {0,0,0,20}, {0,0,0,21}, {0,0,0,22}, {0,0,0,23},
320 {0,0,0,24}, {0,0,0,25}, {0,0,0,26}, {0,0,0,27}, {0,0,0,28}, {0,0,0,29}, {0,0,0,30}, {0,0,0,31},
321 {0,0,0,132}, {0,0,1,66}, {0,0,66,66}, {0,1,66,66}, {0,16,66,66}
323 html-utf Asn-utf ::= "<html><body onload='javascript.alert(""UTF8"")'> </body></html>"
325 val-vtx Asn-vtx ::= "Videotex" -- VideotexString
326 /* Note: only BMPString, UTF8String and UniversalString can have {qu,ad,ru,ples} */
328 blank-vis Asn-vis ::= "" -- VisibleString a.k.a. ISO646String
329 blank-num Asn-num ::= "" -- NumericString
330 blank-prn Asn-prn ::= "" -- PrintableString
331 blank-ttx Asn-ttx ::= "" -- TeletexString
332 blank-uni Asn-uni ::= "" -- UniversalString
333 blank-utf Asn-utf ::= "" -- UTF8String
334 blank-vtx Asn-vtx ::= "" -- VideotexString
336 val-unr-sxs Asn-unr ::=
338 identification syntaxes : {
342 string-value 'C3A17276 C3AD7A74 C5B172C5 912074C3'H -- kisarvizturo elso fele
345 val-unr-sx Asn-unr ::=
347 identification syntax : pi-oid,
348 string-value 'BC6BC3B6 7266C3BA 72C3B367 C3A970'H -- kisarvizturo masodik fele
351 val-unr-pci Asn-unr ::=
353 identification presentation-context-id : 42,
354 string-value 'C3815256 C38D5A54 C5B052C5 902054C3'H -- nagyarvizturo eleje
357 val-unr-cneg Asn-unr ::=
359 identification context-negotiation : {
360 presentation-context-id 17,
361 transfer-syntax ber-oid
363 string-value '9C4BC396 5246C39A 52C39347 C38950'H -- nagyarvizturo ve'ge
366 val-unr-tsx Asn-unr ::=
368 identification transfer-syntax : ber-oid,
372 val-unr-fix Asn-unr ::= --{ "CHARACTER STRING ", nagyarvizturo }
374 identification fixed : NULL,
375 string-value 'C3815256 C38D5A54 C5B052C5 902054C3 9C4BC396 5246C39A 52C39347 C38950'H
376 -- nagyarvizturo, UTF-8
382 rubble Family ::= { barney, betty }
386 move-along NothingToSeeHere ::= {}
388 -- -- -- -- -- -- -- -- -- --
390 nagykisarvizturo UniversalString ::=
391 {nagyarvizturo, " ", {0,0,0,173}, " ", kisarvizturo}
392 /* UTF8: ... 20C2AD20 ... */
394 nagyarvizturo UniversalString ::= {
395 {0,0,0,193}, "RV", {0,0,0,205}, "ZT", {0,0,1,112}, "R", {0,0,1,80},
396 " T", {0,0,0,220}, "K", {0,0,0,214}, "RF", {0,0,0,218}, "R", {0,0,0,211}, "G", {0,0,0,201}, "P"
400 C3815256 C38D5A54 C5B052C5 902054C3
401 9C4BC396 5246C39A 52C39347 C38950
403 195,129,82,86 195,141,90,84 197,176,82,197 144,32,84,195
404 156,75,195,150 82,70,195,154 82,195,147,71 195,137,80
408 kisarvizturo UniversalString ::= {
409 {0,0,0,225}, "rv", {0,0,0,237}, "zt", {0,0,1,113}, "r", {0,0,1,81},
410 " t", {0,0,0,252}, "k", {0,0,0,246}, "rf", {0,0,0,250}, "r", {0,0,0,243}, "g", {0,0,0,233}, "p"
414 C3A17276 C3AD7A74 C5B172C5 912074C3
415 BC6BC3B6 7266C3BA 72C3B367 C3A970
417 195,161,114,118 195,173,122,116 197,177,114,197 145,32,116,195
418 188,107,195,182 114,102,195,186 114,195,179,103 195,169,112
422 d11-22a OCTET STRING ::=
424 C3815256C38D5A54C5B052C5902054C39C4BC3965246C39A52C39347C38950
426 C3A17276C3AD7A74C5B172C5912074C3BC6BC3B67266C3BA72C3B367C3A970'H
429 arbomit A-rboolean ::= { }
430 arbtrue A-rboolean ::= { bb TRUE }
431 arbfalse A-rboolean ::= { bb FALSE}
433 a-evth Everything ::= {
449 -- -- -- -- -- -- -- --
451 a-maybe MaybeEverything ::= { -- Whoa, deja vu !
467 a-maybenot MaybeEverything ::= {}
469 a-maybe-bitstr MaybeEverything ::= { bitstr bstr0 }
471 a-maybe-true MaybeEverything ::= { booool FALSE }
473 a-maybe-b MaybeEverything ::= {
478 -- -- -- -- -- -- -- --
485 nixtor2 Nestor ::= {{
490 nixtor3 Nestor ::= {{
495 nixtor4 Nestor ::= {{
501 { name "an3[0]", f2 {} },
502 { name "an3[1]", f2 {{}} },
503 { name "an3[2]", f2 {{{}}} }
508 f1 { ts1 10, ts2 TRUE },
509 f2 { { { { { your only : 5.0 } } } } }
512 -- -- -- -- -- -- -- --
515 nixtorex NestorEx ::= {{
520 nixtor2ex NestorEx ::= {{
525 nixtor3ex NestorEx ::= {{
530 nixtor4ex NestorEx ::= {{
536 { name "an3ex[0]", f2 {} },
537 { name "an3ex[1]", f2 {{}} },
538 { name "an3ex[2]", f2 {{{}}} }
542 d1c Deep1c ::= only : 1.0
543 d1s Deep1s ::= { your only : 1.1 }
544 d2o Deep2o ::= { { your only : 2.0 } }
545 d3o Deep3o ::= { { { your only : 3.0 } } }
546 d4o Deep4o ::= { { { { your only : 4.0 } } } }
547 d5o Deep5o ::= { { { { { your only : 5.0 } } } } }
551 f1 { ts1 10, ts2 TRUE },
552 f2 { { { { { your only : 5.0 } } } } }
555 -- -- -- -- -- -- -- --
557 limerick LotsaText ::= {
558 "There was a young fellow named Fisk",
559 "A swordsman, exceedingly brisk",
560 "So fast was his action",
561 "The Lorentz contraction",
562 "Reduced his rapier to a disc"
565 -- Titan rejects this: lf IA5String ::= {0,10}