aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_bits.erl
diff options
context:
space:
mode:
authorHans <[email protected]>2015-06-04 16:34:46 +0200
committerHans Nilsson <[email protected]>2015-06-09 14:15:18 +0200
commitca4a952ab374f6cd9343c571e42605b23d51914c (patch)
tree2597ed4f435223bed9608a495fb0aafbc8210e20 /lib/ssh/src/ssh_bits.erl
parent07995bee41aeaace06e5a3e11912122e710552f5 (diff)
downloadotp-ca4a952ab374f6cd9343c571e42605b23d51914c.tar.gz
otp-ca4a952ab374f6cd9343c571e42605b23d51914c.tar.bz2
otp-ca4a952ab374f6cd9343c571e42605b23d51914c.zip
ssh: Replace erlint/1 in ssh_message.erl and ssh_auth.erl
In the old times there was no binary notation which handled this particulary case, but now we can write big-signed-integer-unit:8 directly in binaries. The undocumented internal function ssh_bits:erlint/1 is removed.
Diffstat (limited to 'lib/ssh/src/ssh_bits.erl')
-rw-r--r--lib/ssh/src/ssh_bits.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/ssh/src/ssh_bits.erl b/lib/ssh/src/ssh_bits.erl
index 8aaff93b9f..d5f8df6fe4 100644
--- a/lib/ssh/src/ssh_bits.erl
+++ b/lib/ssh/src/ssh_bits.erl
@@ -26,7 +26,7 @@
-include("ssh.hrl").
-export([encode/2]).
--export([mpint/1, erlint/2, string/1, name_list/1]).
+-export([mpint/1, string/1, name_list/1]).
-export([random/1]).
-define(name_list(X),
@@ -145,11 +145,7 @@ enc(Xs, ['...'| []], _Offset) ->
enc([], [],_) ->
[].
-erlint(Len, BinInt) ->
- Sz = Len*8,
- <<Int:Sz/big-signed-integer>> = BinInt,
- Int.
-
+
%%
%% Create a binary with constant bytes
%%