diff options
author | Ryo Nakamura <upa@haeena.net> | 2023-03-03 16:50:06 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2023-03-03 16:50:06 +0900 |
commit | 363296f499f4869cbd2f2b7fb7456ea45054a1e7 (patch) | |
tree | 47ab30c27164562239887ef682aaf908e729c073 /src/ssh.h | |
parent | a8af79f9cf5e99bb5472bccc665a51cbe7aba2db (diff) |
add mscp_ssh_opts and change -C optarg
Diffstat (limited to 'src/ssh.h')
-rw-r--r-- | src/ssh.h | 19 |
1 files changed, 2 insertions, 17 deletions
@@ -5,27 +5,12 @@ #include "libssh/libssh.h" #include "libssh/sftp.h" - -struct ssh_opts { - char *login_name; /* -l */ - char *port; /* -p */ - char *identity; /* -i */ - char *cipher; /* -c */ - char *hmac; /* -M */ - int compress; /* -C */ - int nodelay; /* -N */ - int debuglevel; /* -v */ - bool no_hostkey_check; /* -H */ - -#define PASSWORD_BUF_SZ 128 - char *password; /* password for password auth */ - char *passphrase; /* passphrase for private key */ -}; +#include <mscp.h> /* ssh_init_sftp_session() creates sftp_session. sshdst accpets * user@hostname and hostname notations (by libssh). */ -sftp_session ssh_init_sftp_session(const char *sshdst, struct ssh_opts *opts); +sftp_session ssh_init_sftp_session(const char *sshdst, struct mscp_ssh_opts *opts); void ssh_sftp_close(sftp_session sftp); #define sftp_ssh(sftp) (sftp)->session |