diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-10-15 21:59:25 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-10-15 21:59:25 +0900 |
commit | 303a9eb974f884b5f9f7e14fdd83a821f21e32e6 (patch) | |
tree | 91c535639e39e7f204db7a194854f4865dfff184 /src/ssh.h |
initial commit
Diffstat (limited to 'src/ssh.h')
-rw-r--r-- | src/ssh.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ssh.h b/src/ssh.h new file mode 100644 index 0000000..3397fd7 --- /dev/null +++ b/src/ssh.h @@ -0,0 +1,24 @@ +#ifndef _SSH_H_ +#define _SSH_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 */ +}; + +/* ssh_make_sftp_session() creates sftp_session. sshdst accpets + * user@hostname and hostname notations (by libssh). + */ +sftp_session ssh_make_sftp_session(char *sshdst, struct ssh_opts *opts); + +#endif /* _SSH_H_ */ |