#ssl_crypto_device =
# SSL extra options. Currently supported options are:
-# no_compression - Disable compression.
+# compression - Enable compression.
# no_ticket - Disable SSL session tickets.
#ssl_options =
/* Now explode the ssl_options string into individual flags */
/* First set them all to defaults */
- set->parsed_opts.compression = TRUE;
+ set->parsed_opts.compression = FALSE;
set->parsed_opts.tickets = TRUE;
/* Then modify anything specified in the string */
const char **opts = t_strsplit_spaces(set->ssl_options, ", ");
const char *opt;
while ((opt = *opts++) != NULL) {
- if (strcasecmp(opt, "no_compression") == 0) {
- set->parsed_opts.compression = FALSE;
+ if (strcasecmp(opt, "compression") == 0) {
+ set->parsed_opts.compression = TRUE;
+ } else if (strcasecmp(opt, "no_compression") == 0) {
+#ifdef CONFIG_BINARY
+ i_warning("DEPRECATED: no_compression is default, "
+ "so it is redundant in ssl_options");
+#endif
} else if (strcasecmp(opt, "no_ticket") == 0) {
set->parsed_opts.tickets = FALSE;
} else {