aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRuben Garcia Azuara <rubenga@tid.es>2010-04-06 20:07:01 +0200
committerAndreas Schneider <mail@cynapses.org>2010-04-07 11:29:47 +0200
commit5a2abd34ce9ad97c69906c5fb7b07e26e96fceaa (patch)
treeda155233397d23cd1f8d0f76b0108570c61079e7 /include
parent14eb593af3c41ea439f01d34aaae497d8420f316 (diff)
downloadlibssh-5a2abd34ce9ad97c69906c5fb7b07e26e96fceaa.tar.gz
libssh-5a2abd34ce9ad97c69906c5fb7b07e26e96fceaa.tar.xz
libssh-5a2abd34ce9ad97c69906c5fb7b07e26e96fceaa.zip
Added support for StrictHostKeyChecking and UserKnownHostsFile parameters.
Added OpenSSH parameters to libssh: - StrictHostKeyChecking - UserKnownHostsFile This parameters are useful to avoid checking the fingerprint. Eg: ~/.ssh/config: Host 192.10.20.30 StrictHostKeyChecking no UserKnownHostsFile /dev/null Signed-off-by: Ruben Garcia Azuara <rubenga@tid.es> Signed-off-by: Andreas Schneider <mail@cynapses.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libssh.h4
-rw-r--r--include/libssh/session.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 1968d095..faa07cec 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -269,11 +269,11 @@ enum ssh_options_e {
SSH_OPTIONS_SSH2,
SSH_OPTIONS_LOG_VERBOSITY,
SSH_OPTIONS_LOG_VERBOSITY_STR,
-
SSH_OPTIONS_CIPHERS_C_S,
SSH_OPTIONS_CIPHERS_S_C,
SSH_OPTIONS_COMPRESSION_C_S,
- SSH_OPTIONS_COMPRESSION_S_C
+ SSH_OPTIONS_COMPRESSION_S_C,
+ SSH_OPTIONS_HOSTKEYCHECK
};
enum {
diff --git a/include/libssh/session.h b/include/libssh/session.h
index 56352c10..2fb91d14 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -141,7 +141,7 @@ struct ssh_session_struct {
socket_t fd;
int ssh2;
int ssh1;
-
+ int StrictHostKeyChecking;
};
int ssh_handle_packets(ssh_session session, int timeout);