summaryrefslogtreecommitdiffhomepage
path: root/runopts.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-01-28 21:38:27 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-01-28 21:38:27 +0800
commita7a79d569a41b282da63c159fc8032b4472a2a73 (patch)
tree8eb7d57e766727bd1c8c720f2093f41adefa880d /runopts.h
parent6165f53fcd6be9bb06fc3cd29e8640bb14d95111 (diff)
Disable non-delayed zlib for server
Diffstat (limited to 'runopts.h')
-rw-r--r--runopts.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/runopts.h b/runopts.h
index d0b6613..8756716 100644
--- a/runopts.h
+++ b/runopts.h
@@ -44,7 +44,11 @@ typedef struct runopts {
/* 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;
+ enum {
+ DROPBEAR_COMPRESS_DELAYED, /* Server only */
+ DROPBEAR_COMPRESS_ON,
+ DROPBEAR_COMPRESS_OFF,
+ } compress_mode;
#endif
#ifdef ENABLE_USER_ALGO_LIST