aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/session.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-02-05 11:50:49 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-05 11:50:49 +0100
commitee774479deb609fdb6989c7c452d6007ab4d3384 (patch)
treebb8b7b77a2354322b18090326bf794ed206332d5 /include/libssh/session.h
parent840f75f10c4e9fd7f6fb6289ae9902a40906bde6 (diff)
downloadlibssh-ee774479deb609fdb6989c7c452d6007ab4d3384.tar.gz
libssh-ee774479deb609fdb6989c7c452d6007ab4d3384.tar.xz
libssh-ee774479deb609fdb6989c7c452d6007ab4d3384.zip
session: Use a struct for all options.
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r--include/libssh/session.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/include/libssh/session.h b/include/libssh/session.h
index 9d03f473..20c94da4 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -160,23 +160,24 @@ struct ssh_session_struct {
#ifdef WITH_PCAP
ssh_pcap_context pcap_ctx; /* pcap debugging context */
#endif
- char *username;
- char *host;
- char *bindaddr; /* bind the client to an ip addr */
- char *xbanner; /* TODO: looks like it is not needed */
- struct ssh_list *identity;
- char *sshdir;
- char *knownhosts;
- char *wanted_methods[10];
- char compressionlevel;
- unsigned long timeout; /* seconds */
- unsigned long timeout_usec;
- unsigned int port;
- socket_t fd;
- int ssh2;
- int ssh1;
- int StrictHostKeyChecking;
- char *ProxyCommand;
+ struct {
+ struct ssh_list *identity;
+ char *username;
+ char *host;
+ char *bindaddr; /* bind the client to an ip addr */
+ char *sshdir;
+ char *knownhosts;
+ char *wanted_methods[10];
+ char *ProxyCommand;
+ unsigned long timeout; /* seconds */
+ unsigned long timeout_usec;
+ unsigned int port;
+ socket_t fd;
+ int StrictHostKeyChecking;
+ int ssh2;
+ int ssh1;
+ char compressionlevel;
+ } opts;
};
/** @internal