ssl-correct-option-clear-availability-version
https://github.com/warmcat/libwebsockets/issues/744
This commit is contained in:
parent
8283659047
commit
c9d165bbcc
1 changed files with 4 additions and 0 deletions
|
@ -392,8 +392,12 @@ lws_context_init_server_ssl(struct lws_context_creation_info *info,
|
|||
|
||||
if (info->ssl_options_set)
|
||||
SSL_CTX_set_options(vhost->ssl_ctx, info->ssl_options_set);
|
||||
|
||||
/* SSL_clear_options introduced in 0.9.8m */
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x009080df)
|
||||
if (info->ssl_options_clear)
|
||||
SSL_CTX_clear_options(vhost->ssl_ctx, info->ssl_options_clear);
|
||||
#endif
|
||||
|
||||
lwsl_info(" SSL options 0x%X\n",
|
||||
SSL_CTX_get_options(vhost->ssl_ctx));
|
||||
|
|
Loading…
Add table
Reference in a new issue