summaryrefslogtreecommitdiffhomepage
path: root/runopts.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2010-02-27 11:53:18 +0000
committerMatt Johnston <matt@ucc.asn.au>2010-02-27 11:53:18 +0000
commitddbfdb079991e9705c8874ae2d2dbd64394f269c (patch)
tree6358929d48902659b423493edf17831541c732ac /runopts.h
parent85288d7b6174b78af903fb55593bccd0014e5f30 (diff)
parent3b078445482f42dabfe4922e67a958dc607b166f (diff)
merge of '48fdaa8706d1acda35e9d564adc9a1fbc96c18c8'
and '658fd03abd21e0da7c4c89b9fff9dc693c72daae' --HG-- extra : convert_revision : 8064882fcaa13d586651021462b9014b74332107
Diffstat (limited to 'runopts.h')
-rw-r--r--runopts.h26
1 files changed, 20 insertions, 6 deletions
diff --git a/runopts.h b/runopts.h
index 7851b07..83b5861 100644
--- a/runopts.h
+++ b/runopts.h
@@ -37,8 +37,16 @@ typedef struct runopts {
int listen_fwd_all;
#endif
unsigned int recv_window;
- unsigned int keepalive_secs;
- unsigned int idle_timeout_secs;
+ time_t keepalive_secs;
+ time_t idle_timeout_secs;
+
+#ifndef DISABLE_ZLIB
+ /* TODO: add a commandline flag. Currently this is on by default if compression
+ * is compiled in, but disabled for a client's non-final multihop stages. (The
+ * intermediate stages are compressed streams, so are uncompressible. */
+ int enable_compress;
+#endif
+
} runopts;
@@ -112,13 +120,20 @@ typedef struct cli_runopts {
int backgrounded;
int is_subsystem;
#ifdef ENABLE_CLI_PUBKEY_AUTH
- struct SignKeyList *privkeys; /* Keys to use for public-key auth */
+ m_list *privkeys; /* Keys to use for public-key auth */
#endif
#ifdef ENABLE_CLI_REMOTETCPFWD
- struct TCPFwdList * remotefwds;
+ m_list * remotefwds;
#endif
#ifdef ENABLE_CLI_LOCALTCPFWD
- struct TCPFwdList * localfwds;
+ m_list * localfwds;
+#endif
+#ifdef ENABLE_CLI_AGENTFWD
+ int agent_fwd;
+ int agent_keys_loaded; /* whether pubkeys has been populated with a
+ list of keys held by the agent */
+ int agent_fd; /* The agent fd is only set during authentication. Forwarded
+ agent sessions have their own file descriptors */
#endif
#ifdef ENABLE_CLI_NETCAT
@@ -128,7 +143,6 @@ typedef struct cli_runopts {
#ifdef ENABLE_CLI_PROXYCMD
char *proxycmd;
#endif
-
} cli_runopts;
extern cli_runopts cli_opts;