diff options
author | Hans Nilsson <[email protected]> | 2018-10-31 15:34:39 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-11-19 17:23:34 +0100 |
commit | 4c3e66d5969e1abe2c8827b756edd860555038a8 (patch) | |
tree | 52905f0a3f542916d22e2c6763e1eba62918a512 /lib/ssh/src/ssh_connection_handler.erl | |
parent | aa1562a060cb91214acb639b9be9e1c6a59db884 (diff) | |
download | otp-4c3e66d5969e1abe2c8827b756edd860555038a8.tar.gz otp-4c3e66d5969e1abe2c8827b756edd860555038a8.tar.bz2 otp-4c3e66d5969e1abe2c8827b756edd860555038a8.zip |
ssh: Cleaning and polishing of ssh_auth
No intentional api changes. Only to make the code less hard to read.
Diffstat (limited to 'lib/ssh/src/ssh_connection_handler.erl')
-rw-r--r-- | lib/ssh/src/ssh_connection_handler.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl index b64b799327..e23df6ceca 100644 --- a/lib/ssh/src/ssh_connection_handler.erl +++ b/lib/ssh/src/ssh_connection_handler.erl @@ -471,10 +471,11 @@ init_ssh_record(Role, Socket, PeerAddr, Opts) -> S1 = S0#ssh{c_vsn = Vsn, c_version = Version, - io_cb = case ?GET_OPT(user_interaction, Opts) of - true -> ssh_io; - false -> ssh_no_io - end, + opts = ?PUT_INTERNAL_OPT({io_cb, case ?GET_OPT(user_interaction, Opts) of + true -> ssh_io; + false -> ssh_no_io + end}, + Opts), userauth_quiet_mode = ?GET_OPT(quiet_mode, Opts), peer = {PeerName, PeerAddr}, local = LocalName @@ -487,7 +488,6 @@ init_ssh_record(Role, Socket, PeerAddr, Opts) -> server -> S0#ssh{s_vsn = Vsn, s_version = Version, - io_cb = ?GET_INTERNAL_OPT(io_cb, Opts, ssh_io), userauth_methods = string:tokens(AuthMethods, ","), kb_tries_left = 3, peer = {undefined, PeerAddr}, |