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_transport.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_transport.erl')
-rw-r--r-- | lib/ssh/src/ssh_transport.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl index 96b03abb94..f49b49b2df 100644 --- a/lib/ssh/src/ssh_transport.erl +++ b/lib/ssh/src/ssh_transport.erl @@ -861,8 +861,9 @@ accepted_host(Ssh, PeerName, Public, Opts) -> end. -yes_no(Ssh, Prompt) -> - (Ssh#ssh.io_cb):yes_no(Prompt, Ssh#ssh.opts). +yes_no(#ssh{opts=Opts}, Prompt) -> + IoCb = ?GET_INTERNAL_OPT(io_cb, Opts, ssh_io), + IoCb:yes_no(Prompt, Opts). fmt_hostkey('ssh-rsa') -> "RSA"; |