|
OpenVPN
|

Go to the source code of this file.
Functions | |
| bool | check_compression_settings_valid (struct compress_options *info, msglvl_t msglevel) |
| Checks if the compression settings are valid. | |
| bool check_compression_settings_valid | ( | struct compress_options * | info, |
| msglvl_t | msglevel | ||
| ) |
Checks if the compression settings are valid.
Takes into account the flags of allow-compression and also the whether algorithms are compiled in
Definition at line 162 of file comp.c.
References compress_options::alg, COMP_ALG_LZ4, COMP_ALG_LZO, COMP_ALG_UNDEF, COMP_ALGV2_LZ4, COMP_ALGV2_UNCOMPRESSED, COMP_F_ALLOW_NOCOMP_ONLY, COMP_F_ALLOW_STUB_ONLY, comp_non_stub_enabled(), compress_options::flags, and msg.
Referenced by do_deferred_options(), multi_connection_established(), and options_postprocess_mutate().