diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-12 23:17:12 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-13 12:07:31 +0200 |
commit | 37dc2a52797c30dc23ffeca5a7f43097d85f895a (patch) | |
tree | eb9f9dc9388b9ce9ab33e62e8194353ba35f4db8 | |
parent | 50ebbe636ee45b5d82d33b29e1146477ccbcc849 (diff) | |
download | libssh-37dc2a52797c30dc23ffeca5a7f43097d85f895a.tar.gz libssh-37dc2a52797c30dc23ffeca5a7f43097d85f895a.tar.xz libssh-37dc2a52797c30dc23ffeca5a7f43097d85f895a.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); |