mirror of
https://github.com/brunoos/luasec.git
synced 2024-12-27 21:08:22 +01:00
options: Remove dead code
The workaround for 'no_compression' on older OpenSSL is handled in context.c; set_option_flag (which uses ssl_options) is never called, so this shouldn't exist.
This commit is contained in:
parent
4c5ce1b177
commit
2dae14877e
@ -12,7 +12,7 @@
|
|||||||
/* If you need to generate these options again, see options.lua */
|
/* If you need to generate these options again, see options.lua */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
OpenSSL version: OpenSSL 1.0.1 14 Mar 2012
|
OpenSSL version: OpenSSL 1.0.1e 2013-06-12
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct ssl_option_s {
|
struct ssl_option_s {
|
||||||
@ -123,10 +123,6 @@ static ssl_option_t ssl_options[] = {
|
|||||||
#endif
|
#endif
|
||||||
#if defined(SSL_OP_TLS_ROLLBACK_BUG)
|
#if defined(SSL_OP_TLS_ROLLBACK_BUG)
|
||||||
{"tls_rollback_bug", SSL_OP_TLS_ROLLBACK_BUG},
|
{"tls_rollback_bug", SSL_OP_TLS_ROLLBACK_BUG},
|
||||||
#endif
|
|
||||||
#if !defined(SSL_OP_NO_COMPRESSION) && (OPENSSL_VERSION_NUMBER >= 0x0090800f) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
|
|
||||||
/* Add SSL_OP_NO_COMPRESSION manually if built against 0.9.8. */
|
|
||||||
{"no_compression", 0L},
|
|
||||||
#endif
|
#endif
|
||||||
{NULL, 0L}
|
{NULL, 0L}
|
||||||
};
|
};
|
||||||
|
@ -51,11 +51,6 @@ typedef struct ssl_option_s ssl_option_t;
|
|||||||
print(string.format([[ {"%s", %s},]], name, option))
|
print(string.format([[ {"%s", %s},]], name, option))
|
||||||
print([[#endif]])
|
print([[#endif]])
|
||||||
end
|
end
|
||||||
print([[
|
|
||||||
#if !defined(SSL_OP_NO_COMPRESSION) && (OPENSSL_VERSION_NUMBER >= 0x0090800f) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
|
|
||||||
/* Add SSL_OP_NO_COMPRESSION manually if built against 0.9.8. */
|
|
||||||
{"no_compression", 0L},
|
|
||||||
#endif]])
|
|
||||||
print([[ {NULL, 0L}]])
|
print([[ {NULL, 0L}]])
|
||||||
print([[
|
print([[
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user