diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-12 23:17:12 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-12 23:17:12 +0200 |
commit | 1301864f92c06debed73ea6fb034d6048c948fed (patch) | |
tree | 28b2a6f8d7068befbd68e0f78daf4b39153a2b76 | |
parent | d5b6f6cc37d17e8346f352764138f4b0a997d078 (diff) | |
download | libssh-1301864f92c06debed73ea6fb034d6048c948fed.tar.gz libssh-1301864f92c06debed73ea6fb034d6048c948fed.tar.xz libssh-1301864f92c06debed73ea6fb034d6048c948fed.zip |
Reflect the SSH_SERVER_NOT_KNOWN add-on in sample
-rw-r--r-- | sample.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -469,6 +469,10 @@ int main(int argc, char **argv){ ssh_disconnect(session); ssh_finalize(); exit(-1); + case SSH_SERVER_FILE_NOT_FOUND: + fprintf(stderr,"Could not find known host file. If you accept the host key here,\n"); + fprintf(stderr,"the file will be automatically created.\n"); + /* fallback to SSH_SERVER_NOT_KNOWN behaviour */ case SSH_SERVER_NOT_KNOWN: hexa = ssh_get_hexa(hash, hlen); free(hash); |