diff options
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_ */ |