aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-04-24 16:43:32 +0200
committerBjörn Gustavsson <[email protected]>2014-05-06 11:40:09 +0200
commit54fdff3af5d023133b55cc4c068c218fd0caf63f (patch)
tree14d4ec4d2acae7f8206f07a59a88d0d5d7bb7287 /lib/asn1
parent8eadd0297d9676a9004673f9efa2574283942f9f (diff)
downloadotp-54fdff3af5d023133b55cc4c068c218fd0caf63f.tar.gz
otp-54fdff3af5d023133b55cc4c068c218fd0caf63f.tar.bz2
otp-54fdff3af5d023133b55cc4c068c218fd0caf63f.zip
Set.py: Correct illegal DEFAULT value
If SetIn is defined like this: SetIn ::= SET { boolIn BOOLEAN, intIn INTEGER } then it may not be used with an empty DEFAULT value like this: SetDef1 ::= SET { set1 SetIn DEFAULT {} } The ASN.1 compiler prints an warning message, but still generates code. (That should be fixed.) Fix the incorrect ASN.1 specification by making the components in SetIn optional: SetIn ::= SET { boolIn BOOLEAN OPTIONAL, intIn INTEGER OPTIONAL }
Diffstat (limited to 'lib/asn1')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/Set.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/Set.py b/lib/asn1/test/asn1_SUITE_data/Set.py
index 4062f6b804..3928004e6b 100644
--- a/lib/asn1/test/asn1_SUITE_data/Set.py
+++ b/lib/asn1/test/asn1_SUITE_data/Set.py
@@ -80,8 +80,8 @@ SetOpt3 ::= SET
SetIn ::= SET
{
- boolIn BOOLEAN,
- intIn INTEGER
+ boolIn BOOLEAN OPTIONAL,
+ intIn INTEGER OPTIONAL
}