aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-09-23 22:13:19 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-09-23 22:13:19 +0200
commit0e8e124d2023736c973ce8e06f4776efd1edb096 (patch)
treea713a4cdee7a21b4c4dceaa0e34b71fa67edbfb4 /include/libssh/libssh.h
parent9a8d4cd0fdd18127065cacbc11296933669ea9ca (diff)
downloadlibssh-0e8e124d2023736c973ce8e06f4776efd1edb096.tar.gz
libssh-0e8e124d2023736c973ce8e06f4776efd1edb096.tar.xz
libssh-0e8e124d2023736c973ce8e06f4776efd1edb096.zip
get rid of SSH_OPTIONS
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r--include/libssh/libssh.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 21dfb268..d87f70c8 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -370,30 +370,30 @@ LIBSSH_API int ssh_message_subtype(SSH_MESSAGE *msg);
LIBSSH_API int ssh_message_type(SSH_MESSAGE *msg);
LIBSSH_API int ssh_mkdir (const char *pathname, mode_t mode);
LIBSSH_API ssh_session ssh_new(void);
-LIBSSH_API SSH_OPTIONS *ssh_options_copy(SSH_OPTIONS *opt);
-LIBSSH_API void ssh_options_free(SSH_OPTIONS *opt);
-LIBSSH_API SSH_OPTIONS *ssh_options_new(void);
-
-LIBSSH_API int ssh_options_allow_ssh1(SSH_OPTIONS *opt, int allow);
-LIBSSH_API int ssh_options_allow_ssh2(SSH_OPTIONS *opt, int allow);
-LIBSSH_API int ssh_options_getopt(SSH_OPTIONS *options, int *argcptr, char **argv);
-LIBSSH_API int ssh_options_parse_config(SSH_OPTIONS *opt, const char *filename);
+LIBSSH_API ssh_options ssh_options_copy(ssh_options opt);
+LIBSSH_API void ssh_options_free(ssh_options opt);
+LIBSSH_API ssh_options ssh_options_new(void);
+
+LIBSSH_API int ssh_options_allow_ssh1(ssh_options opt, int allow);
+LIBSSH_API int ssh_options_allow_ssh2(ssh_options opt, int allow);
+LIBSSH_API int ssh_options_getopt(ssh_options options, int *argcptr, char **argv);
+LIBSSH_API int ssh_options_parse_config(ssh_options opt, const char *filename);
LIBSSH_API int ssh_options_set(ssh_options opt, enum ssh_options_e type,
const void *value);
-LIBSSH_API int ssh_options_set_banner(SSH_OPTIONS *opt, const char *banner);
-LIBSSH_API int ssh_options_set_bind(SSH_OPTIONS *opt, const char *bindaddr, int port);
-LIBSSH_API int ssh_options_set_dsa_server_key(SSH_OPTIONS *opt, const char *dsakey);
-LIBSSH_API int ssh_options_set_fd(SSH_OPTIONS *opt, socket_t fd);
-LIBSSH_API int ssh_options_set_host(SSH_OPTIONS *opt, const char *host);
-LIBSSH_API int ssh_options_set_identity(SSH_OPTIONS *opt, const char *identity);
-LIBSSH_API int ssh_options_set_log_verbosity(SSH_OPTIONS *opt, int verbosity);
-LIBSSH_API int ssh_options_set_known_hosts_file(SSH_OPTIONS *opt, const char *dir);
-LIBSSH_API int ssh_options_set_port(SSH_OPTIONS *opt, unsigned int port);
-LIBSSH_API int ssh_options_set_rsa_server_key(SSH_OPTIONS *opt, const char *rsakey);
-LIBSSH_API int ssh_options_set_ssh_dir(SSH_OPTIONS *opt, const char *dir);
-LIBSSH_API int ssh_options_set_timeout(SSH_OPTIONS *opt, long seconds, long usec);
-LIBSSH_API int ssh_options_set_username(SSH_OPTIONS *opt, const char *username);
-LIBSSH_API int ssh_options_set_wanted_algos(SSH_OPTIONS *opt, int algo, const char *list);
+LIBSSH_API int ssh_options_set_banner(ssh_options opt, const char *banner);
+LIBSSH_API int ssh_options_set_bind(ssh_options opt, const char *bindaddr, int port);
+LIBSSH_API int ssh_options_set_dsa_server_key(ssh_options opt, const char *dsakey);
+LIBSSH_API int ssh_options_set_fd(ssh_options opt, socket_t fd);
+LIBSSH_API int ssh_options_set_host(ssh_options opt, const char *host);
+LIBSSH_API int ssh_options_set_identity(ssh_options opt, const char *identity);
+LIBSSH_API int ssh_options_set_log_verbosity(ssh_options opt, int verbosity);
+LIBSSH_API int ssh_options_set_known_hosts_file(ssh_options opt, const char *dir);
+LIBSSH_API int ssh_options_set_port(ssh_options opt, unsigned int port);
+LIBSSH_API int ssh_options_set_rsa_server_key(ssh_options opt, const char *rsakey);
+LIBSSH_API int ssh_options_set_ssh_dir(ssh_options opt, const char *dir);
+LIBSSH_API int ssh_options_set_timeout(ssh_options opt, long seconds, long usec);
+LIBSSH_API int ssh_options_set_username(ssh_options opt, const char *username);
+LIBSSH_API int ssh_options_set_wanted_algos(ssh_options opt, int algo, const char *list);
LIBSSH_API void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len);
LIBSSH_API int ssh_scp_accept_request(ssh_scp scp);
LIBSSH_API int ssh_scp_close(ssh_scp scp);
@@ -418,7 +418,7 @@ LIBSSH_API void ssh_set_blocking(ssh_session session, int blocking);
LIBSSH_API void ssh_set_fd_except(ssh_session session);
LIBSSH_API void ssh_set_fd_toread(ssh_session session);
LIBSSH_API void ssh_set_fd_towrite(ssh_session session);
-LIBSSH_API void ssh_set_options(ssh_session session, SSH_OPTIONS *options);
+LIBSSH_API void ssh_set_options(ssh_session session, ssh_options options);
LIBSSH_API void ssh_silent_disconnect(ssh_session session);
#ifndef _WIN32
LIBSSH_API int ssh_userauth_agent_pubkey(ssh_session session, const char *username,