forked from osmocom/wireshark
![Bill Meier](/assets/img/avatar_default.png)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9273 This patch adds modelines and cleans up the irregular indentation of this dissector's code. The only other change was in asn1/c1222/packet-c1222-template.c to consolidate an #ifdef that had a redundant #endif (line 812) and subsequent reopening #ifdef (line 824). The only thing between them was comments, so the span of the original #ifdef (line 644) was simply extended by eliminating those two lines. The purpose for this patch is to make the file easier to edit and understand in advance of more substantive patches later. This patch is intended to be easy to review by having only non-substantive changes. svn path=/trunk/; revision=52636
82 lines
2.7 KiB
Groff
82 lines
2.7 KiB
Groff
-- C1222 PROTOCOL
|
|
--
|
|
|
|
C1222-PROTOCOL DEFINITIONS ::=
|
|
BEGIN
|
|
|
|
MESSAGE ::= [APPLICATION 0] IMPLICIT SEQUENCE {
|
|
aSO-context [1] ASO-qualifier OPTIONAL,
|
|
called-AP-title [2] Called-AP-title OPTIONAL,
|
|
called-AP-invocation-id [4] Called-AP-invocation-id OPTIONAL,
|
|
calling-AP-title [6] Calling-AP-title OPTIONAL,
|
|
calling-AE-qualifier [7] Calling-AE-qualifier OPTIONAL,
|
|
calling-AP-invocation-id [8] Calling-AP-invocation-id,
|
|
mechanism-name [11] IMPLICIT Mechanism-name OPTIONAL,
|
|
calling-authentication-value [12] Calling-authentication-value OPTIONAL,
|
|
user-information [30] User-information
|
|
}
|
|
|
|
ASO-qualifier ::= OBJECT IDENTIFIER
|
|
|
|
Called-AP-title ::= CHOICE {
|
|
called-ap-title-abs OBJECT IDENTIFIER,
|
|
called-ap-title-rel [0] IMPLICIT RELATIVE-OID
|
|
}
|
|
Calling-AP-title ::= CHOICE {
|
|
calling-ap-title-abs OBJECT IDENTIFIER,
|
|
calling-ap-title-rel [0] IMPLICIT RELATIVE-OID
|
|
}
|
|
AP-invocation-id ::= INTEGER
|
|
Called-AP-invocation-id ::= AP-invocation-id
|
|
Calling-AP-invocation-id ::= AP-invocation-id
|
|
AE-qualifier ::= INTEGER
|
|
Calling-AE-qualifier ::= AE-qualifier
|
|
Mechanism-name ::= OBJECT IDENTIFIER
|
|
|
|
-- this is all of the authentication mechanism related stuff
|
|
|
|
Calling-authentication-value ::= [2] IMPLICIT SEQUENCE {
|
|
calling-authentication-value-indirect INTEGER DEFAULT 0,
|
|
calling-authentication-value-encoding Authentication-value-encoding
|
|
}
|
|
|
|
Authentication-value-encoding ::= CHOICE {
|
|
calling-authentication-value-single-asn1 [0] Calling-authentication-value-single-asn1,
|
|
calling-authentication-value-octet-aligned [1] IMPLICIT OCTET STRING
|
|
}
|
|
|
|
Calling-authentication-value-single-asn1 ::= CHOICE {
|
|
calling-authentication-value-c1222 Calling-authentication-value-c1222,
|
|
calling-authentication-value-c1221 Calling-authentication-value-c1221
|
|
}
|
|
|
|
Calling-authentication-value-c1222 ::= [1] IMPLICIT SEQUENCE {
|
|
key-id-element [0] IMPLICIT Key-id-element OPTIONAL,
|
|
iv-element [1] IMPLICIT Iv-element OPTIONAL
|
|
}
|
|
|
|
Key-id-element ::= OCTET STRING (SIZE(1))
|
|
Iv-element ::= OCTET STRING (SIZE(4))
|
|
|
|
Calling-authentication-value-c1221 ::= [0] IMPLICIT CHOICE {
|
|
c1221-auth-identification [0] IMPLICIT OCTET STRING (SIZE(3|5..259)),
|
|
c1221-auth-request [0] IMPLICIT OCTET STRING (SIZE(1..255)),
|
|
c1221-auth-response [0] IMPLICIT OCTET STRING (SIZE(0|1..255)),
|
|
...
|
|
}
|
|
|
|
-- now the user information (EPSEM)
|
|
User-information ::= EXTERNAL
|
|
|
|
--User-information EPSEM-TYPE ::= { ... }
|
|
|
|
--EPSEM-TYPE ::= CLASS {
|
|
-- &direct-reference OBJECT IDENTIFIER OPTIONAL,
|
|
-- &octet-aligned [1] IMPLICIT OCTET STRING
|
|
--}
|
|
|
|
|
|
END
|
|
|
|
|