aboutsummaryrefslogtreecommitdiff
path: root/subset.asn1
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-26 16:38:44 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-26 16:38:44 +0200
commit82a4ed67b8d897b6aee870df9599f1cced5c1a14 (patch)
tree5388e4fb6ea8adba52264e45b6ac1a7dbe395950 /subset.asn1
parentec9d807316f573d692c7a54cf7dadf62ab697180 (diff)
Subset of basic ASN.1 definitions
Diffstat (limited to 'subset.asn1')
-rw-r--r--subset.asn1154
1 files changed, 154 insertions, 0 deletions
diff --git a/subset.asn1 b/subset.asn1
new file mode 100644
index 0000000..8671792
--- /dev/null
+++ b/subset.asn1
@@ -0,0 +1,154 @@
+------------------------------------------------------------------------
+-- Subset of ROSE
+------------------------------------------------------------------------
+
+Remote-Operations-Generic-ROS-PDUs
+ {joint-iso-itu-t remote-operations(4) generic-ROS-PDUs(6) version1(0)}
+
+DEFINITIONS IMPLICIT TAGS ::=
+BEGIN
+
+ROS ::= CHOICE {
+ invoke [1] Invoke,
+ returnResult [2] ReturnResult,
+}
+
+Invoke ::= SEQUENCE {
+ invokeId InvokeId,
+ opcode Code OPTIONAL,
+ argument OPTIONAL
+}
+
+ReturnResult ::= SEQUENCE {
+ invokeId InvokeId,
+ result SEQUENCE {
+ opcode Code OPTIONAL,
+ argument OPTIONAL
+ } OPTIONAL
+}
+
+InvokeId ::= CHOICE {
+ present INTEGER,
+ absent NULL
+}
+
+Code ::= CHOICE {
+ local INTEGER,
+ global OBJECT IDENTIFIER
+}
+
+END -- ROSE
+
+------------------------------------------------------------------------
+-- Subset of ACSE
+------------------------------------------------------------------------
+
+ACSE-1
+ {joint-iso-itu-t association-control(2) modules(0) apdus(0) version(1)}
+
+DEFINITIONS ::=
+BEGIN
+
+EXPORTS ACSE-apdu
+
+ACSE-apdu ::= CHOISE {
+ aarq AARQ-apdu,
+ aare AARE-apdu,
+ rlrq RLRQ-apdu,
+ rlre RLRE-apdu,
+ abrt ABRT-apdu,
+}
+
+AARQ-apdu ::= [APPLICATION 0] IMPLICIT SEQUENCE {
+ protocol-version [0] IMPLICIT BIT STRING {version1(0)}
+ DEFAULT {version1},
+ application-context-name [1] Application-context-name,
+ user-information [30] IMPLICIT Association-information
+ OPTIONAL
+}
+
+Application-context-name ::= OBJECT IDENTIFIER
+
+Association-information ::= SEQUENCE SIZE (1, ..., 0 | 2..MAX) OF EXTERNAL
+
+AARE-apdu ::= [APPLICATION 1] IMPLICIT SEQUENCE {
+ protocol-version [0] IMPLICIT BIT STRING {version1(0)}
+ DEFAULT {version1},
+ application-context-name [1] Application-context-name,
+ result [2] Associate-result,
+ result-source-diagnostic [3] Associate-source-diagnostic,
+ user-information [30] IMPLICIT Association-information
+ OPTIONAL
+}
+
+Associate-result ::= INTEGER {
+ accepted (0),
+ rejected-permanent (1)
+}
+
+Associate-source-diagnostic ::= CHOICE {
+ acse-service-user [1] INTEGER {
+ null (0),
+ no-reason-given (1)
+ }
+ acse-service-provider [2] INTEGER {
+ null (0),
+ no-reason-given (1)
+ }
+}
+
+RLRQ-apdu ::= [APPLICATION 2] IMPLICIT SEQUENCE {
+}
+
+RLRE-apdu ::= [APPLICATION 3] IMPLICIT SEQUENCE {
+}
+
+ABRT-apdu ::= [APPLICATION 4] IMPLICIT SEQUENCE {
+ abort-source [0] IMPLICIT ABRT-source
+}
+
+ABRT-source ::= INTEGER {
+ acse-service-user (0),
+ acse-service-provider (1)
+}
+
+END -- ACSE
+
+------------------------------------------------------------------------
+-- Subset of CSTE for ACSE
+------------------------------------------------------------------------
+
+CSTA-application-context-information-csta3
+ {iso(1) identified-organization(3) icd-ecma(12)
+ standard(0) csta3(285) application-context-information(200) }
+
+DEFINITIONS ::=
+BEGIN
+
+-- used as single-ASN1-type
+
+ACSEUserInformationForCSTA ::= CHOICE {
+ newDefinition [0] IMPLICIT NewACSEUserInformationForCSTA
+}
+
+NewACSEUserInformationForCSTA ::= SEQUENCE {
+ cSTAVersion CSTAVersion
+}
+
+CSTAVersion ::= BIT STRING {
+ versionFive (4) -- ECMA-285, 2nd Edition
+}
+
+END -- CSTE
+
+------------------------------------------------------------------------
+-- EXTERNAL ::= [UNIVERSAL 8] IMPLICIT SEQUENCE {
+-- direct-reference OBJECT IDENTIFIER OPTIONAL,
+-- indirect-reference INTEGER OPTIONAL,
+-- data-value-descriptor ObjectDescriptor OPTIONAL,
+-- encoding CHOICE {
+-- single-ASN1-type [0] ANY,
+-- octet-aligned [1] IMPLICIT OCTET STRING,
+-- arbitrary [2] IMPLICIT BIT STRING}
+-- }
+------------------------------------------------------------------------