aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_check.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-08-13 08:26:01 +0200
committerBjörn Gustavsson <[email protected]>2013-09-03 16:27:41 +0200
commit48e60aa765b42c2253e595b84b4e8f8c7308fa22 (patch)
tree6de8b820684659debaafd9787ec5fc4e007631ea /lib/asn1/src/asn1ct_check.erl
parentc28e00b24d4d67a8aac55415c36dcab2537db2cc (diff)
downloadotp-48e60aa765b42c2253e595b84b4e8f8c7308fa22.tar.gz
otp-48e60aa765b42c2253e595b84b4e8f8c7308fa22.tar.bz2
otp-48e60aa765b42c2253e595b84b4e8f8c7308fa22.zip
Clean up handling of .asn1db files
There is (differenct) code for reading .asn1db files both in asn1ct and asn1_db. Consolidate the reading into one routine in asn1db. Another problem is that the encoding rule that the .asn1db file was created for is not in the .asn1db, but only in the generated Erlang module. It is much easier and safer to put the encoding rule in the .asn1db file itself. We will also put the version number of the asn1 application into the file, to ensure that we don't use an old .asn1db file that could potentially be incompatible.
Diffstat (limited to 'lib/asn1/src/asn1ct_check.erl')
-rw-r--r--lib/asn1/src/asn1ct_check.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_check.erl b/lib/asn1/src/asn1ct_check.erl
index 669d5734de..eddcda0018 100644
--- a/lib/asn1/src/asn1ct_check.erl
+++ b/lib/asn1/src/asn1ct_check.erl
@@ -6826,7 +6826,7 @@ merge_tags2([], Acc) ->
storeindb(S,M) when is_record(M,module) ->
TVlist = M#module.typeorval,
NewM = M#module{typeorval=findtypes_and_values(TVlist)},
- asn1_db:dbnew(NewM#module.name),
+ asn1_db:dbnew(NewM#module.name, S#state.erule),
asn1_db:dbput(NewM#module.name,'MODULE', NewM),
Res = storeindb(#state{mname=NewM#module.name}, TVlist, []),
include_default_class(S,NewM#module.name),