comparison src/event/ngx_event_openssl.h @ 6261:97f102a13f33

SSL: preserve default server context in connection (ticket #235). This context is needed for shared sessions cache to work in configurations with multiple virtual servers sharing the same port. Unfortunately, OpenSSL does not provide an API to access the session context, thus storing it separately. In collaboration with Vladimir Homutov.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 19 Oct 2015 21:22:38 +0300
parents ec81934727a1
children 382fc7069e3a
comparison
equal deleted inserted replaced
6260:0e37389c0bd5 6261:97f102a13f33
44 } ngx_ssl_t; 44 } ngx_ssl_t;
45 45
46 46
47 typedef struct { 47 typedef struct {
48 ngx_ssl_conn_t *connection; 48 ngx_ssl_conn_t *connection;
49 SSL_CTX *session_ctx;
49 50
50 ngx_int_t last; 51 ngx_int_t last;
51 ngx_buf_t *buf; 52 ngx_buf_t *buf;
52 size_t buffer_size; 53 size_t buffer_size;
53 54