diff options
author | Erlang/OTP <[email protected]> | 2010-10-04 13:07:28 +0200 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-10-04 13:07:28 +0200 |
commit | c8122ff35f5e0cc4af7f8ea7fd63af126f245ffd (patch) | |
tree | 23b95141897fc637234487c0926a83b230b58263 /lib/asn1/test/asn1_wrapper.erl | |
parent | 5ddf44bb91540fd88e604f077d71482c40185cd8 (diff) | |
parent | c6f303fba85322f74a4e8165046924ebf2fd1eed (diff) | |
download | otp-c8122ff35f5e0cc4af7f8ea7fd63af126f245ffd.tar.gz otp-c8122ff35f5e0cc4af7f8ea7fd63af126f245ffd.tar.bz2 otp-c8122ff35f5e0cc4af7f8ea7fd63af126f245ffd.zip |
Merge branch 'kenneth/asn1/enc_extaddgrp/OTP-8866' into maint-r13
* kenneth/asn1/enc_extaddgrp/OTP-8866:
Add additional test to cover this correction
correct the encoding of ExtensionAdditionGroup
temp
Add support for ExtensionAdditionGroup notation in nested types as well
Diffstat (limited to 'lib/asn1/test/asn1_wrapper.erl')
-rw-r--r-- | lib/asn1/test/asn1_wrapper.erl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/asn1/test/asn1_wrapper.erl b/lib/asn1/test/asn1_wrapper.erl index 553f0b062c..d515b99ac2 100644 --- a/lib/asn1/test/asn1_wrapper.erl +++ b/lib/asn1/test/asn1_wrapper.erl @@ -1,19 +1,19 @@ %% %% %CopyrightBegin% -%% -%% Copyright Ericsson AB 2001-2009. All Rights Reserved. -%% +%% +%% Copyright Ericsson AB 2001-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% %% %% @@ -26,7 +26,7 @@ encode(Module,Type,Value) -> case asn1rt:encode(Module,Type,Value) of - {ok,X} when binary(X) -> + {ok,X} when is_binary(X) -> {ok, binary_to_list(X)}; {ok,X} -> {ok, binary_to_list(list_to_binary(X))}; @@ -38,21 +38,21 @@ decode(Module,Type,Bytes) -> case Module:encoding_rule() of ber -> asn1rt:decode(Module,Type,Bytes); - ber_bin when binary(Bytes) -> + ber_bin when is_binary(Bytes) -> asn1rt:decode(Module,Type,Bytes); ber_bin -> asn1rt:decode(Module,Type,list_to_binary(Bytes)); - ber_bin_v2 when binary(Bytes) -> + ber_bin_v2 when is_binary(Bytes) -> asn1rt:decode(Module,Type,Bytes); ber_bin_v2 -> asn1rt:decode(Module,Type,list_to_binary(Bytes)); per -> asn1rt:decode(Module,Type,Bytes); - per_bin when binary(Bytes) -> + per_bin when is_binary(Bytes) -> asn1rt:decode(Module,Type,Bytes); per_bin -> asn1rt:decode(Module,Type,list_to_binary(Bytes)); - uper_bin when binary(Bytes) -> + uper_bin when is_binary(Bytes) -> asn1rt:decode(Module,Type,Bytes); uper_bin -> asn1rt:decode(Module,Type,list_to_binary(Bytes)) |