diff options
author | Björn Gustavsson <[email protected]> | 2014-01-23 12:44:20 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-01-24 16:24:56 +0100 |
commit | 70cda04e6132a20ce1663bed5a8d7345a87103f2 (patch) | |
tree | 3a12128282c76dc7458137a508e3ee0f04564bc3 /lib/asn1/src/asn1rtt_per_common.erl | |
parent | aaa4ea283b2b7dad74fdcdd5963558e9d03d80b0 (diff) | |
download | otp-70cda04e6132a20ce1663bed5a8d7345a87103f2.tar.gz otp-70cda04e6132a20ce1663bed5a8d7345a87103f2.tar.bz2 otp-70cda04e6132a20ce1663bed5a8d7345a87103f2.zip |
Fix open types
Diffstat (limited to 'lib/asn1/src/asn1rtt_per_common.erl')
-rw-r--r-- | lib/asn1/src/asn1rtt_per_common.erl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1rtt_per_common.erl b/lib/asn1/src/asn1rtt_per_common.erl index e84fa581df..71fec411a0 100644 --- a/lib/asn1/src/asn1rtt_per_common.erl +++ b/lib/asn1/src/asn1rtt_per_common.erl @@ -39,7 +39,8 @@ to_named_bitstring/1,to_named_bitstring/2, bs_drop_trailing_zeroes/1,adjust_trailing_zeroes/2, is_default_bitstring/3,is_default_bitstring/5, - extension_bitmap/3]). + extension_bitmap/3, + open_type_to_binary/1,legacy_open_type_to_binary/1]). -define('16K',16384). @@ -326,6 +327,16 @@ is_default_bitstring(_, _, _, _, _) -> false. extension_bitmap(Val, Pos, Limit) -> extension_bitmap(Val, Pos, Limit, 0). +open_type_to_binary({asn1_OPENTYPE,Bin}) when is_binary(Bin) -> + Bin. + +legacy_open_type_to_binary({asn1_OPENTYPE,Bin}) when is_binary(Bin) -> + Bin; +legacy_open_type_to_binary(Bin) when is_binary(Bin) -> + Bin; +legacy_open_type_to_binary(List) when is_list(List) -> + List. + %%% %%% Internal functions. %%% |