diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-12 23:13:21 +0200 |
|---|---|---|
| committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-12 23:13:21 +0200 |
| commit | d5b6f6cc37d17e8346f352764138f4b0a997d078 (patch) | |
| tree | 81a8c3a0a172333f2853f93d23fb81459ba0e94d /libssh | |
| parent | 052073c36d33089d3a99992840c88c6245461813 (diff) | |
| download | libssh-d5b6f6cc37d17e8346f352764138f4b0a997d078.tar.gz libssh-d5b6f6cc37d17e8346f352764138f4b0a997d078.tar.xz libssh-d5b6f6cc37d17e8346f352764138f4b0a997d078.zip | |
Added return code SSH_SERVER_FILE_NOT_FOUND
This error is returned by ssh_is_server_known when known_hosts
file does not exist and gives more action to the developer.
Diffstat (limited to 'libssh')
| -rw-r--r-- | libssh/keyfiles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index 19184271..6371e834 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -1361,10 +1361,10 @@ int ssh_is_server_known(SSH_SESSION *session) { enter_function(); if (ssh_options_default_known_hosts_file(session->options) < 0) { - ssh_set_error(session, SSH_FATAL, + ssh_set_error(session, SSH_REQUEST_DENIED, "Can't find a known_hosts file"); leave_function(); - return SSH_SERVER_ERROR; + return SSH_SERVER_FILE_NOT_FOUND; } if (session->options->host == NULL) { |
