initial commit

This commit is contained in:
Ryo Nakamura
2022-10-15 21:59:25 +09:00
commit 303a9eb974
9 changed files with 515 additions and 0 deletions

24
src/ssh.h Normal file
View File

@@ -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_ */