comparison src/http/ngx_http_request.h @ 6735:e38e9c50a40e

Modules compatibility: compatibility with NGX_HTTP_SSL. With this change it is now possible to load modules compiled without the "--with-http_ssl_module" configure option into nginx binary compiled with it, and vice versa (if a module doesn't use ssl-specific functions), assuming both use the "--with-compat" option.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 10 Oct 2016 18:44:17 +0300
parents bdf64ae3376b
children 1aeaae6e9446
comparison
equal deleted inserted replaced
6734:0c572ed91b36 6735:e38e9c50a40e
298 298
299 typedef struct { 299 typedef struct {
300 ngx_http_addr_conf_t *addr_conf; 300 ngx_http_addr_conf_t *addr_conf;
301 ngx_http_conf_ctx_t *conf_ctx; 301 ngx_http_conf_ctx_t *conf_ctx;
302 302
303 #if (NGX_HTTP_SSL) 303 #if (NGX_HTTP_SSL || NGX_COMPAT)
304 ngx_str_t *ssl_servername; 304 ngx_str_t *ssl_servername;
305 #if (NGX_PCRE) 305 #if (NGX_PCRE)
306 ngx_http_regex_t *ssl_servername_regex; 306 ngx_http_regex_t *ssl_servername_regex;
307 #endif 307 #endif
308 #endif 308 #endif
311 ngx_int_t nbusy; 311 ngx_int_t nbusy;
312 312
313 ngx_buf_t **free; 313 ngx_buf_t **free;
314 ngx_int_t nfree; 314 ngx_int_t nfree;
315 315
316 #if (NGX_HTTP_SSL)
317 unsigned ssl:1; 316 unsigned ssl:1;
318 #endif
319 unsigned proxy_protocol:1; 317 unsigned proxy_protocol:1;
320 } ngx_http_connection_t; 318 } ngx_http_connection_t;
321 319
322 320
323 typedef void (*ngx_http_cleanup_pt)(void *data); 321 typedef void (*ngx_http_cleanup_pt)(void *data);