summaryrefslogtreecommitdiff
path: root/src/ssh.h
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2023-03-03 16:50:06 +0900
committerRyo Nakamura <upa@haeena.net>2023-03-03 16:50:06 +0900
commit363296f499f4869cbd2f2b7fb7456ea45054a1e7 (patch)
tree47ab30c27164562239887ef682aaf908e729c073 /src/ssh.h
parenta8af79f9cf5e99bb5472bccc665a51cbe7aba2db (diff)
add mscp_ssh_opts and change -C optarg
Diffstat (limited to 'src/ssh.h')
-rw-r--r--src/ssh.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/ssh.h b/src/ssh.h
index 9fdc822..126bfc3 100644
--- a/src/ssh.h
+++ b/src/ssh.h
@@ -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