Mercurial > hg > nginx
comparison src/event/ngx_event_connect.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 | d200a0fd00b7 |
children | 8b68d50090e4 |
comparison
equal
deleted
inserted
replaced
6734:0c572ed91b36 | 6735:e38e9c50a40e |
---|---|
25 void *data); | 25 void *data); |
26 typedef void (*ngx_event_free_peer_pt)(ngx_peer_connection_t *pc, void *data, | 26 typedef void (*ngx_event_free_peer_pt)(ngx_peer_connection_t *pc, void *data, |
27 ngx_uint_t state); | 27 ngx_uint_t state); |
28 typedef void (*ngx_event_notify_peer_pt)(ngx_peer_connection_t *pc, | 28 typedef void (*ngx_event_notify_peer_pt)(ngx_peer_connection_t *pc, |
29 void *data, ngx_uint_t type); | 29 void *data, ngx_uint_t type); |
30 #if (NGX_SSL) | |
31 | |
32 typedef ngx_int_t (*ngx_event_set_peer_session_pt)(ngx_peer_connection_t *pc, | 30 typedef ngx_int_t (*ngx_event_set_peer_session_pt)(ngx_peer_connection_t *pc, |
33 void *data); | 31 void *data); |
34 typedef void (*ngx_event_save_peer_session_pt)(ngx_peer_connection_t *pc, | 32 typedef void (*ngx_event_save_peer_session_pt)(ngx_peer_connection_t *pc, |
35 void *data); | 33 void *data); |
36 #endif | |
37 | 34 |
38 | 35 |
39 struct ngx_peer_connection_s { | 36 struct ngx_peer_connection_s { |
40 ngx_connection_t *connection; | 37 ngx_connection_t *connection; |
41 | 38 |
49 ngx_event_get_peer_pt get; | 46 ngx_event_get_peer_pt get; |
50 ngx_event_free_peer_pt free; | 47 ngx_event_free_peer_pt free; |
51 ngx_event_notify_peer_pt notify; | 48 ngx_event_notify_peer_pt notify; |
52 void *data; | 49 void *data; |
53 | 50 |
54 #if (NGX_SSL) | 51 #if (NGX_SSL || NGX_COMPAT) |
55 ngx_event_set_peer_session_pt set_session; | 52 ngx_event_set_peer_session_pt set_session; |
56 ngx_event_save_peer_session_pt save_session; | 53 ngx_event_save_peer_session_pt save_session; |
57 #endif | 54 #endif |
58 | 55 |
59 ngx_addr_t *local; | 56 ngx_addr_t *local; |