diff --git a/lib/ssl-server.c b/lib/ssl-server.c index b1e21741..8f6a98af 100644 --- a/lib/ssl-server.c +++ b/lib/ssl-server.c @@ -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));