aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1rt_nif.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-07-22 16:56:21 +0200
committerLukas Larsson <[email protected]>2011-08-01 17:29:45 +0200
commitdab9296e05c7b1ffa4e12a270c41741adb1da383 (patch)
tree782d1454830145c985e70afc8313b2d72e9f1ad1 /lib/asn1/src/asn1rt_nif.erl
parent8649b9257876d1b016746126c95c9e803a680e5d (diff)
downloadotp-dab9296e05c7b1ffa4e12a270c41741adb1da383.tar.gz
otp-dab9296e05c7b1ffa4e12a270c41741adb1da383.tar.bz2
otp-dab9296e05c7b1ffa4e12a270c41741adb1da383.zip
Create a nif for ber encode
Diffstat (limited to 'lib/asn1/src/asn1rt_nif.erl')
-rw-r--r--lib/asn1/src/asn1rt_nif.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1rt_nif.erl b/lib/asn1/src/asn1rt_nif.erl
index 8580c70e6b..de1fb94816 100644
--- a/lib/asn1/src/asn1rt_nif.erl
+++ b/lib/asn1/src/asn1rt_nif.erl
@@ -22,7 +22,8 @@
%% Nif interface for asn1
-export([encode_per_complete/1,
- decode_ber_tlv/1]).
+ decode_ber_tlv/1,
+ encode_ber_tlv/1]).
-on_load(load_nif/0).
@@ -76,8 +77,11 @@ load_nif() ->
Status
end.
-encode_per_complete(_Binary) ->
+encode_per_complete(_TagValueList) ->
erlang:nif_error({nif_not_loaded,module,?MODULE,line,?LINE}).
decode_ber_tlv(_Binary) ->
erlang:nif_error({nif_not_loaded,module,?MODULE,line,?LINE}).
+
+encode_ber_tlv(_TagValueList) ->
+ erlang:nif_error({nif_not_loaded,module,?MODULE,line,?LINE}).