EmailPDU.asn 15.1 KB
Newer Older
canterburym's avatar
canterburym committed
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 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
-- ============================

-- Description of the Email PDU

-- ============================



EmailPDU

{itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) li-ps(5) email(2) version18(18)}



DEFINITIONS IMPLICIT TAGS ::=

BEGIN



IMPORTS



	-- from ETSI TS 102 232-1 [3]

	IPAddress

		FROM LI-PS-PDU

		{itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) li-ps(5) genHeader(1) version26(26)}



	-- from ETSI TS 102 232-5 [38]

	IPMMCC

		FROM IPMultimediaPDU

		{itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) li-ps(5) iPMultimedia(5) version8(8)};





-- ============================

-- Object Identifier Definition

-- ============================



emailPDUObjId RELATIVE-OID			::= {li-ps(5) email(2) version18(18)}

emailIRIObjId RELATIVE-OID			::= {emailPDUObjId iRI(1)}

emailCCObjId RELATIVE-OID			::= {emailPDUObjId cC(2)}

messagingIRIObjId RELATIVE-OID 		::= {emailPDUObjId messagingIRI(3)}

messagingCCObjId RELATIVE-OID	 	::= {emailPDUObjId messagingCC(4)}

messagingMMCCObjId RELATIVE-OID		::= {emailPDUObjId messagingMMCC(5)}



	-- definitions are relative to 

	-- {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulintercept(2)}





-- =============================

-- Email Communications Contents

-- =============================



EmailCC ::= SEQUENCE

	-- EmailCC is the PDU sent for each "piece" of E-mail captured content

{

	emailCCObjId		[0] RELATIVE-OID,

	email-Format		[1] Email-Format,

	content				[2] OCTET STRING

		-- Network byte order

}



Email-Format ::= ENUMERATED

{

	ip-packet(1),

		-- When this is the email format, the content will contain the bytes of the IP packet from 

		-- the IP header through to the end of the IP packet

		-- Meets requirement E.2.7

	application(2)

		-- Only the IP stack Layer 4 payload, (i.e. no IP or TCP headers)

		-- Meets requirement E.2.8

}



-- =======================================

-- Intercept-related information for Email

-- =======================================



EmailIRI ::= SEQUENCE

	-- EmailIRI is the PDU sent for each "piece" of E-mail IRI

{

	emailIRIObjId				[0] RELATIVE-OID,

	eventType					[1] E-mail-Event,

	client-Address				[2] IPAddress OPTIONAL,

		-- Provided if available

	server-Address				[3] IPAddress OPTIONAL,

		-- Provided if available

	client-Port					[4] INTEGER OPTIONAL,

		-- Provided if available

	server-Port					[5] INTEGER OPTIONAL,

		-- Provided if available

	server-Octets-Sent			[6] INTEGER,

	client-Octets-Sent			[7] INTEGER,

	protocol-ID					[8] E-mail-Protocol,

	e-mail-Sender				[9] UTF8String (SIZE (0..255)) OPTIONAL,

		-- Not available in some cases; if a value is available, it shall be provided.

		-- Note that as of version 3.13.1, this field may contain RFC 6530-compliant addresses.

	e-mail-Recipients			[10] E-mail-Address-List OPTIONAL,

		-- Not available in some cases; if a value is available, it shall be provided

		-- Note that as of version 3.13.1, this field may contain RFC 6530-compliant addresses.

	status						[11] E-mail-Status,

	total-Recipient-Count 		[12] INTEGER (0..4294967295) OPTIONAL,

	message-ID					[13] OCTET STRING OPTIONAL,

		-- Network byte order

	nationalParameter			[14] OCTET STRING OPTIONAL,

		-- Completely defined on a national basis, including byte ordering

	...,

	national-EM-ASN1parameters	[15] National-EM-ASN1parameters OPTIONAL,

		-- Completely defined on a national basis

	aAAInformation				[16] AAAInformation OPTIONAL,

	e-mail-Sender-Validity		[17] ENUMERATED

		{

			validated(0),

				-- The operator has assured the e-mail-sender

			nonvalidated(1),

				-- The operator does not assure the e-mail-sender

			...

		} OPTIONAL

}



E-mail-Status ::= ENUMERATED

{

	status-unknown(1),

	operation-failed(2),

	operation-succeeded(3)

}



E-mail-Event ::= ENUMERATED

{

	e-mail-send(1),

	e-mail-receive(2),

	e-mail-download(3),

	...,

	e-mail-logon-attempt(4),

	e-mail-logon(5),

	e-mail-logon-failure(6),

	e-mail-logoff(7),

	e-mail-partial-download(8),

	e-mail-upload(9)

}



E-mail-Protocol ::= ENUMERATED

{

	smtp(1),

	pop3(2),

	imap4(3),

	webmail(4),

		-- See Annex H for more information

	undefined(255),

		-- The protocol is not known or not representable by the current enumeration

	...

}



E-mail-Address-List ::= SEQUENCE (SIZE (0..1023)) OF UTF8String(SIZE (0..255))



National-EM-ASN1parameters ::= SEQUENCE

{

	countryCode		[1] PrintableString (SIZE (2)),

		-- Country Code according to ISO 3166-1 [12],

		-- the country to which the parameters inserted after the extension marker apply

	...

		-- In case a given country wants to use additional national parameters according to its law,

		-- these national parameters should be defined using the ASN.1 syntax and added after the 

		-- extension marker (...)

}



AAAInformation ::= CHOICE

	-- The AAAInformation field allows for POP3 and authenticated SMTP AAA information

{

	pOP3AAAInformation			[0] POP3AAAInformation,

	aSMTPAAAInformation		[1] ASMTPAAAInformation,

	...,

	iMAPAAAInformation			[2] IMAPAAAInformation

}



POP3AAAInformation ::= SEQUENCE

	-- The POP3AAAInformation field contains the POP3 username & optionally the password

{

	username					[0] UTF8String (SIZE (0..64)),

	password					[1] UTF8String (SIZE (0..64)) OPTIONAL,

	aAAResult					[2] AAAResult OPTIONAL,

	...

}



ASMTPAAAInformation ::= SEQUENCE

	-- The ASMTPAAAInformation field contains the SMTP username and

	-- optionally the authentication fields

{

	username					[0] UTF8String (SIZE (0..64)),

	authMethod					[1] AAAauthMethod OPTIONAL,

		-- The hashing method used, i.e. CRAM-MD5, DIGEST-MD5, etc

	challenge					[2] OCTET STRING OPTIONAL,

		-- A BASE64 encoded challenge send by the SMTP server

	response					[3] OCTET STRING OPTIONAL,

		-- A BASE64 encoded hashed response returned by the client

	aAAResult					[4] AAAResult OPTIONAL,

	...

}



IMAPAAAInformation ::= SEQUENCE

	-- The iMAPAAAInformation field contains the IMAP username & optionally the password

{

	username					[0] UTF8String (SIZE (0..64)),

	password					[1] UTF8String (SIZE (0..64)) OPTIONAL,

	aAAResult					[2] AAAResult OPTIONAL,

	...

}



AAAResult ::= ENUMERATED

{

	resultUnknown(1),

	aAAFailed(2),

	aAASucceeded(3),

	...

}



AAAauthMethod ::= ENUMERATED

{

	undefinedAuthMethod(1),

	cramMD5(2),

	digestMD5(3),

	...

}



-- =================================

-- Messaging Communications Contents

-- =================================



MessagingCC ::= SEQUENCE

	-- MessagingCC is the PDU sent for the captured content

{

	messaging-cc-obj-id		[0] RELATIVE-OID,

	event-identifier			[1] INTEGER (0..4294967295),

		-- Used to correlate to MessagingIRI within the same CIN

	content-identifier			[2] INTEGER (0..4294967295) OPTIONAL,

	sequence-number				[3] INTEGER (0..4294967295) OPTIONAL,

	end-of-sequence				[4] BOOLEAN DEFAULT FALSE,

	content-type				[5] OCTET STRING,

		-- MIME content type, i.e.: image/png, text/plain;charset=utf8, audio/PCMA

	content						[6] OCTET STRING,

	...,

	content-transfer-encoding	[7] OCTET STRING OPTIONAL

		-- MIME Content-Transfer-Encoding mechanism.

		-- Refer to IETF RFC 2045 [20]

}





MessagingMMCC ::= SEQUENCE

	-- MessagingMMCC is the PDU sent for the captured IPMMCC content

{

	messaging-mm-cc-obj-id		[0] RELATIVE-OID,

	event-identifier			[1] INTEGER (0..4294967295),

		-- Used to correlate to MessagingIRI within the same CIN

	content-identifier			[2] INTEGER (0..4294967295) OPTIONAL,

	content						[3] IPMMCC,

	...

}





-- ===========================================

-- Intercept-related information for Messaging

-- ===========================================



MessagingIRI ::= SEQUENCE

{

	messaging-iri-obj-id		[0] RELATIVE-OID,

	system-type					[1] Messaging-System-Type,

	system-identifier			[2] OCTET STRING OPTIONAL,

		-- Identifier up to national agreement, uniquely identifies a certain messaging system

	category					[3] Messaging-Event-Category OPTIONAL,

	status						[4] Messaging-Status,

	party-information			[5] SET OF Messaging-Party-Information OPTIONAL,

	trigger						[6] Messaging-Trigger,

	properties					[7] SEQUENCE OF Messaging-Property OPTIONAL,

	event-identifier			[8] INTEGER (0..4294967295) OPTIONAL,

		-- Used to correlate to MessagingCC or MessagingMMCC within the same CIN. Mandatory when CC is also sent

	original-message			[9] OCTET STRING OPTIONAL,

	...,

	box-identifier				[10] OCTET STRING OPTIONAL

}



Messaging-System-Type ::= ENUMERATED

{

	unified-messaging(1),

	...

}



Messaging-Event-Category ::= CHOICE

{

	message						[0] Messaging-Event,

	message-box					[1] Messaging-Box-Event,

	message-notification		[2] Messaging-Notification-Event,

	call						[3] Messaging-Call-Event,

	...

}



Messaging-Event ::= ENUMERATED

{

	deposit(1),

	retrieve(2),

	delete(3),

	save(4),

	slamdown(5),

	...,

	calendar(6),

	contact(7)

}



Messaging-Box-Event ::= ENUMERATED

{

	login(1),

	logout(2),

	lock(3),

	unlock(4),

	activate(5),

	deactivate(6),

	delete(7),

	pin-change(8),

	greeting-record(9),

	greeting-change(10),

	greeting-delete(11),

	greeting-enable(12),

	greeting-disable(13),

	notification-enable(14),

	notification-disable(15),

	disconnect(16),

	connect(17),

	...,

	unknown(0),

	greeting-play(18),

	language-change(19),

	pin-security-enable(20),

	pin-security-disable(21),

	personal-operator-add(22),

	personal-operator-change(23),

	personal-operator-remove(24),

	additional-destination-add(25),

	additional-destination-change(26),

	additional-destination-remove(27),

	auto-play-enable(28),

	auto-play-disable(29),

	header-play-enable(30),

	header-play-disable(31)

}



Messaging-Notification-Event ::= ENUMERATED

{

	sms(1),

	sms-deposit(2),

	sms-slamdown(3),

	sms-pin-reminder(4),

	email(5),

	fax-to-email(6),

	...,

	mms(7),

	generic(8)

}



Messaging-Call-Event ::= ENUMERATED

{

	callout(1),

	...

}



Messaging-Status ::= ENUMERATED

{

	unknown(0),

	not-applicable(1),

	operation-failed(2),

	operation-succeeded(3),

	operation-cancelled(4),

	operation-started(5),

	...,

	operation-lost(6)

}



Messaging-Party-Information ::= SEQUENCE

{

	party-qualifier		[0] Messaging-Party-Qualifier,

	party-identity		[1] Messaging-Party-Identity,

	...,

	party-validity		[2] Messaging-Party-Validity OPTIONAL,

	copy-qualifier		[3] Messaging-Copy-Qualifier OPTIONAL

}



Messaging-Party-Qualifier ::= ENUMERATED

{

	unknown-party(0),

		-- In this case the party cannot be classified as either originating or terminating

	originating-party(1),

		-- In this case, the partyInformation parameter provides the identities related to 

		-- the originating party and all information provided by this party.

	terminating-party(2),

		-- In this case, the partyInformation parameter provides the identities related to 

		-- the terminating party and all information provided by this party.

	...,

	associated-party(3)

		-- In this case, the partyInformation parameter provides the identities related to

		-- an associated party and all information provided by this party.

}



Messaging-Party-Identity ::= CHOICE

{

	msisdn					[0] OCTET STRING (SIZE (1..9)),

		-- MSISDN of the target, encoded in the same format as the AddressString

		-- parameters defined in MAP format 3GPP TS 09.02 [22], clause 17.7.8.

	e164-format				[1] OCTET STRING (SIZE (1..25)),

		-- E.164 address of the node in international format. Coded in the same format as 

		-- the calling party number parameter of the ISUP (parameter part: EN 300 356 [23])

	email-address			[2] E-mail-Address-List,

		-- Note that as of version 3.13.1, this field may contain RFC 6530-compliant addresses.

	...,

	ip-address				[3] IPAddress,

		–-IPAddress is defined by IETF RFC 791 [31] and RFC 8200 [34]

	alphanumeric			[4] UTF8String,

	ip-address-and-port	[5] IP-Address-And-Port,

	imsi 					[6] OCTET STRING (SIZE (3..8)),

		-- International Mobile Subscriber Identity of the target, encoded in the same format as the

		-- TBCD-STRING parameter defined in MAP format 3GPP TS 29.002 [36], clause 17.7.8.

		-- It is described in 3GPP TS 23.003 [37] clause 2.2.

	imei 					[7] OCTET STRING (SIZE (8)),

		-- International Mobile Equipment Identity of the target, encoded in the same format as the

		-- TBCD-STRING parameter defined in MAP format 3GPP TS 29.002 [36], clause 17.7.8.

		–- It is defined in 3GPP TS 23.003 [37] clause 6.

	fax-url 				[8] OCTET STRING,

		-- see format defined in RFC 2806 [29].

	tel-url 				[9] OCTET STRING,

		-- see format used in 3GPP TS 33.108 [5], 3GPP TS 24.229 [30] and defined in RFC 2806 [29].

	modem-url				[10] OCTET STRING,

		-- see format defined in RFC 2806 [29].

	sip-uri 				[11] OCTET STRING,

		-- see format used in in 3GPP TS 33.108 [5] and defined in RFC 3261 [32].

	sips-uri 				[12] OCTET STRING,

		-- see format defined in RFC 3261 [32].

	nai 					[13] OCTET STRING 

		-- Network Access Identity of the party, encoded in the same format as used EPS 

		–- domain in 3GPP TS 33.108 [5] and defined in RFC 7542 [33].

}



IP-Address-And-Port ::= SEQUENCE

{

	ip-address				[0] IPAddress,

		–- IPAddress is defined by IETF RFC 791 [31] and RFC 8200 [34]

	port-number				[1] INTEGER,

		–- port-number is defined by IETF RFC 6335 [35]

	...

}



Messaging-Party-Validity ::= ENUMERATED

{

	unknown(0),

	trusted(1),

	untrusted(2),

	...

}



Messaging-Copy-Qualifier ::= ENUMERATED

{

	unknown(0),

	none(1),

	cc(2),

	bcc(3),

	...

}



Messaging-Trigger ::= ENUMERATED

{

	unknown(0),

	user(1),

	user-agent(2),

	system(3),

	system-operator(4),

	...

}



Messaging-Property ::= CHOICE

{

	pincode				[0] OCTET STRING (SIZE (1..32)),

	...,

	priority			[1] Messaging-Property-Priority,

	greeting-type		[2] Messaging-Property-Greeting-Type,

	notification-type	[3] Messaging-Property-Notification-Type,

	language			[4] OCTET STRING,

		-- Language according to RFC 4646 [24]

	message-identifier	[5] OCTET STRING,

	subject				[6] UTF8String,

	user-agent			[7] UTF8String,

	password			[8] OCTET STRING,

	message-status		[9] Messaging-Property-Message-Status,

	requested-reports	[10] Messaging-Property-Requested-Reports,

	expires				[11] GeneralizedTime,

	message-date		[12] GeneralizedTime

}



Messaging-Property-Priority ::= ENUMERATED

{

	low(1),

	medium(2),

	high(3),

	private(4),

	...

}



Messaging-Property-Greeting-Type ::= ENUMERATED

{

	general(1),

	name(2),

	personal(3),

	absence(4),

	number(5),

	...

}