aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-22 13:20:23 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-22 13:20:23 +0200
commit2003a81b444e258c17b212370bf376d880ce7c4d (patch)
tree6145552db8c052b34eec4b37641f4f0c6ac95701 /libssh
parentabe6c7c72884088c23887855645c5bf23fe0fe44 (diff)
downloadlibssh-2003a81b444e258c17b212370bf376d880ce7c4d.tar.gz
libssh-2003a81b444e258c17b212370bf376d880ce7c4d.tar.xz
libssh-2003a81b444e258c17b212370bf376d880ce7c4d.zip
Use new ssh options interface in keyfiles.
Diffstat (limited to 'libssh')
-rw-r--r--libssh/keyfiles.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index e9006fd..c651d4c 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -1359,7 +1359,7 @@ static int match_hashed_host(SSH_SESSION *session, const char *host,
* if host key is accepted\n
* SSH_SERVER_ERROR: Some error happened
*
- * \see ssh_options_set_wanted_algo()
+ * \see ssh_options_set()
* \see ssh_get_pubkey_hash()
*
* \bug There is no current way to remove or modify an entry into the known
@@ -1375,7 +1375,7 @@ int ssh_is_server_known(SSH_SESSION *session) {
enter_function();
- if (ssh_options_default_known_hosts_file(session->options) < 0) {
+ if (ssh_options_set(session->options, SSH_OPTIONS_KNOWNHOSTS, NULL) < 0) {
ssh_set_error(session, SSH_REQUEST_DENIED,
"Can't find a known_hosts file");
leave_function();
@@ -1461,7 +1461,7 @@ int ssh_write_knownhost(SSH_SESSION *session) {
char *dir;
size_t len = 0;
- if (ssh_options_default_known_hosts_file(session->options) < 0) {
+ if (ssh_options_set(session->options, SSH_OPTIONS_KNOWNHOSTS, NULL) < 0) {
ssh_set_error(session, SSH_FATAL, "Cannot find known_hosts file.");
return -1;
}