aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen_ber.erl
diff options
context:
space:
mode:
authorKenneth Lundin <[email protected]>2010-09-10 12:09:00 +0200
committerKenneth Lundin <[email protected]>2010-09-10 12:09:00 +0200
commit357860d3b5def55eba80523c0be83ee4ebcab12c (patch)
treece7ecf49f15053bd9aafd460e6201a7d6d44e33a /lib/asn1/src/asn1ct_gen_ber.erl
parent1470138027905c4adfd87d805457a40b39c2bdc6 (diff)
parent210fbb984619e6a6bb1122b7a6f72f54fb72effb (diff)
downloadotp-357860d3b5def55eba80523c0be83ee4ebcab12c.tar.gz
otp-357860d3b5def55eba80523c0be83ee4ebcab12c.tar.bz2
otp-357860d3b5def55eba80523c0be83ee4ebcab12c.zip
Merge branch 'kenneth/asn1/nested_extaddgroup/OTP-8797' into dev
* kenneth/asn1/nested_extaddgroup/OTP-8797: Add support for ExtensionAdditionGroup notation in nested types as well Conflicts: lib/asn1/test/test_undecoded_rest.erl
Diffstat (limited to 'lib/asn1/src/asn1ct_gen_ber.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen_ber.erl13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/asn1/src/asn1ct_gen_ber.erl b/lib/asn1/src/asn1ct_gen_ber.erl
index d70586c75c..491ebcb8fd 100644
--- a/lib/asn1/src/asn1ct_gen_ber.erl
+++ b/lib/asn1/src/asn1ct_gen_ber.erl
@@ -33,6 +33,7 @@
-export([gen_objectset_code/2, gen_obj_code/3]).
-export([re_wrap_erule/1]).
-export([unused_var/2]).
+-export([extaddgroup2sequence/1]).
-import(asn1ct_gen, [emit/1,demit/1]).
@@ -1734,3 +1735,15 @@ get_object_field(Name,ObjectFields) ->
{value,Field} -> Field;
false -> false
end.
+
+%% For BER the ExtensionAdditionGroup notation has no impact on the encoding/decoding
+%% and therefore we only filter away the ExtensionAdditionGroup start and end markers
+%%
+extaddgroup2sequence(ExtList) when is_list(ExtList) ->
+ lists:filter(fun(#'ExtensionAdditionGroup'{}) ->
+ false;
+ ('ExtensionAdditionGroupEnd') ->
+ false;
+ (_) ->
+ true
+ end, ExtList).