diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-11-05 22:46:02 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-11-05 22:46:02 +0900 |
commit | 243bf1fa5710c0928e4a52ad4c5a0f0e73022554 (patch) | |
tree | 41f692ce8c03534e149841de6600dc84ec50e7ee /src/ssh.h | |
parent | 8cb5c81fcfc5a43224c1d2c0eed374d85667a0d8 (diff) |
add -H option to disable host key check
tests use this option.
Diffstat (limited to 'src/ssh.h')
-rw-r--r-- | src/ssh.h | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -1,19 +1,21 @@ #ifndef _SSH_H_ #define _SSH_H_ +#include <stdbool.h> #include <libssh/libssh.h> #include <libssh/sftp.h> struct ssh_opts { - char *login_name; /* -l */ - char *port; /* -p */ - char *identity; /* -i */ - char *cipher; /* -c */ - int compress; /* -C */ - int debuglevel; /* -v */ - - char *password; /* filled at the first connecting phase */ + char *login_name; /* -l */ + char *port; /* -p */ + char *identity; /* -i */ + char *cipher; /* -c */ + int compress; /* -C */ + int debuglevel; /* -v */ + bool no_hostkey_check; /* -H */ + + char *password; /* filled at the first connecting phase */ }; /* ssh_make_sftp_session() creates sftp_session. sshdst accpets |