aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen_ber.erl
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2010-10-19 16:06:53 +0200
committerNiclas Eklund <[email protected]>2010-10-19 16:06:53 +0200
commitf420f36b3d9b8360250cc0c0d7e9a0c9e2341e45 (patch)
tree615dcf1679299ac354ef9bb8f511268c89e3775c /lib/asn1/src/asn1ct_gen_ber.erl
parent64df27c91db991550bdd6c97862eb26c1c9e37bf (diff)
parent0f727bd7b72b009eac169c2e9ef925d3c2ffa409 (diff)
downloadotp-f420f36b3d9b8360250cc0c0d7e9a0c9e2341e45.tar.gz
otp-f420f36b3d9b8360250cc0c0d7e9a0c9e2341e45.tar.bz2
otp-f420f36b3d9b8360250cc0c0d7e9a0c9e2341e45.zip
Merge branch 'maint-r13' of super:otp into nick/orber/corbaloc_http/OTP-8900
Diffstat (limited to 'lib/asn1/src/asn1ct_gen_ber.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen_ber.erl23
1 files changed, 18 insertions, 5 deletions
diff --git a/lib/asn1/src/asn1ct_gen_ber.erl b/lib/asn1/src/asn1ct_gen_ber.erl
index 7c432f29c3..8943541303 100644
--- a/lib/asn1/src/asn1ct_gen_ber.erl
+++ b/lib/asn1/src/asn1ct_gen_ber.erl
@@ -1,19 +1,19 @@
%%
%% %CopyrightBegin%
-%%
-%% Copyright Ericsson AB 1997-2009. All Rights Reserved.
-%%
+%%
+%% Copyright Ericsson AB 1997-2010. All Rights Reserved.
+%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public License along with this software. If not, it can be
%% retrieved online at http://www.erlang.org/.
-%%
+%%
%% Software distributed under the License is distributed on an "AS IS"
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
%% the License for the specific language governing rights and limitations
%% under the License.
-%%
+%%
%% %CopyrightEnd%
%%
%%
@@ -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).