[esnacc-dev] [PATCH] Change EXTERNAL.single-ASN1-type from OCTET STRING to ANY

Vasil Velichkov vvvelichkov at gmail.com
Wed Nov 16 20:58:11 UTC 2016


>From "ITU Recommendation X.208"

  34.4 The EXTERNAL type can be defined, using ASN.1, as follows:
  EXTERNAL ::= [UNIVERSAL 8] IMPLICIT SEQUENCE
  {direct-reference OBJECT IDENTIFIER OPTIONAL,
  indirect-reference INTEGER OPTIONAL,
  data-value-descriptor ObjectDescriptor OPTIONAL,
  encodingCHOICE
    {single-ASN1-type [0] ANY,
    octet-aligned [1] IMPLICIT OCTET STRING,
    arbitrary [2] IMPLICIT BIT STRING}}
---
 asn1specs/asn-useful.asn1    | 2 +-
 asn1specs/asn-usefulVDA.asn1 | 2 +-
 cxx-lib/asn-useful.asn1      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/asn1specs/asn-useful.asn1 b/asn1specs/asn-useful.asn1
index 78ccdd9..93aa33e 100644
--- a/asn1specs/asn-useful.asn1
+++ b/asn1specs/asn-useful.asn1
@@ -66,7 +66,7 @@ EXTERNAL         ::= --snacc isPdu:"TRUE" -- [UNIVERSAL 8] IMPLICIT SEQUENCE
         data-value-descriptor ObjectDescriptor OPTIONAL,
         encoding CHOICE
         {
-                single-ASN1-type [0] OCTET STRING,  -- should be ANY
+                single-ASN1-type [0] ANY,
                 octet-aligned    [1] IMPLICIT OCTET STRING,
                 arbitrary        [2] IMPLICIT BIT STRING
         }
diff --git a/asn1specs/asn-usefulVDA.asn1 b/asn1specs/asn-usefulVDA.asn1
index c180a1a..b468828 100644
--- a/asn1specs/asn-usefulVDA.asn1
+++ b/asn1specs/asn-usefulVDA.asn1
@@ -90,7 +90,7 @@ EXTERNAL         ::= --snacc isPdu:"TRUE" -- [UNIVERSAL 8] IMPLICIT SEQUENCE
         data-value-descriptor ObjectDescriptor OPTIONAL,
         encoding CHOICE
         {
-                single-ASN1-type [0] OCTET STRING,  -- should be ANY
+                single-ASN1-type [0] ANY,
                 octet-aligned    [1] IMPLICIT OCTET STRING,
                 arbitrary        [2] IMPLICIT BIT STRING
         }
diff --git a/cxx-lib/asn-useful.asn1 b/cxx-lib/asn-useful.asn1
index 4457dcc..6c7e76f 100644
--- a/cxx-lib/asn-useful.asn1
+++ b/cxx-lib/asn-useful.asn1
@@ -76,7 +76,7 @@ EXTERNAL         ::= --snacc isPdu:"TRUE" -- [UNIVERSAL 8] IMPLICIT SEQUENCE
         data-value-descriptor ObjectDescriptor OPTIONAL,
         encoding CHOICE
         {
-                single-ASN1-type [0] OCTET STRING,  -- should be ANY
+                single-ASN1-type [0] ANY,
                 octet-aligned    [1] IMPLICIT OCTET STRING,
                 arbitrary        [2] IMPLICIT BIT STRING
         }
-- 
1.9.1




More information about the dev mailing list