1
1
libssh/examples
Alan Dunn 491b407d17 examples: Update ssh_server_fork for new SSH_BIND_OPTIONS_HOSTKEY
Tested by

ssh_server_fork -k <an ecdsa key> -k <an rsa key> ...

and connection succeeded with OpenSSH clients both for ECDSA and RSA
(the latter forced via -o HostKeyAlgorithms=ssh-rsa and some known
hosts clearing was necessary).  Also

ssh_server_fork -k <an ecdsa key> -k <another ecdsa key> ...

caused the second key to be used, as expected.

Signed-off-by: Alan Dunn <amdunn@gmail.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-04-09 10:59:21 +02:00
..
authentication.c src: Do not use deprecated functions. 2014-01-16 15:27:46 +01:00
CMakeLists.txt cmake: Merge server examples. 2014-02-16 17:59:46 +01:00
connect_ssh.c examples: Call correct functions on exit. 2011-04-14 14:16:58 +02:00
examples_common.h examples: Improve the authenticate_kbdint function. 2011-01-08 10:18:55 +01:00
exec.c examples: Fix some memory leaks. 2011-04-15 19:05:53 +02:00
knownhosts.c example: Use ssh_get_publickey_hash(). 2013-11-06 17:10:41 +01:00
libssh_scp.c examples: Check return value of fstat(). 2013-07-14 15:02:11 +02:00
libsshpp_noexcept.cpp auth: Make ssh_userauth_autopubkey legacy. 2011-08-25 10:19:09 +02:00
libsshpp.cpp auth: Make ssh_userauth_autopubkey legacy. 2011-08-25 10:19:09 +02:00
proxy.c examples: fix warning 2013-07-14 11:18:13 +02:00
sample.c cmake: Check for unistd.h. 2013-07-23 10:44:51 +02:00
samplesftp.c cmake: Check for unistd.h. 2013-07-23 10:44:51 +02:00
samplesshd-cb.c examples: fix compilation warnings 2013-07-14 09:32:19 +02:00
samplesshd-kbdint.c example: Fix location of port definition. 2013-07-22 10:42:30 +02:00
scp_download.c examples: Check return value of ssh_channel_read. 2013-06-17 12:35:42 +02:00
senddata.c example: Fixed gcc warning. 2010-12-18 14:05:06 +01:00
ssh_server_fork.c examples: Update ssh_server_fork for new SSH_BIND_OPTIONS_HOSTKEY 2014-04-09 10:59:21 +02:00
sshnetcat.c src: Do not use deprecated functions. 2014-01-16 15:27:46 +01:00