Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_ssl_module.h @ 974:8dfb3aa75de2
move the session cache callbacks to the ngx_openssl_module
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 03 Jan 2007 15:25:40 +0000 |
parents | e1ede83911ef |
children | f45cec1cd270 |
comparison
equal
deleted
inserted
replaced
973:e1ede83911ef | 974:8dfb3aa75de2 |
---|---|
9 | 9 |
10 | 10 |
11 #include <ngx_config.h> | 11 #include <ngx_config.h> |
12 #include <ngx_core.h> | 12 #include <ngx_core.h> |
13 #include <ngx_http.h> | 13 #include <ngx_http.h> |
14 | |
15 | |
16 typedef struct ngx_http_ssl_cached_sess_s ngx_http_ssl_cached_sess_t; | |
17 | |
18 | |
19 typedef struct { | |
20 ngx_rbtree_node_t node; | |
21 u_char *id; | |
22 size_t len; | |
23 ngx_http_ssl_cached_sess_t *session; | |
24 } ngx_http_ssl_sess_id_t; | |
25 | |
26 | |
27 struct ngx_http_ssl_cached_sess_s { | |
28 ngx_http_ssl_cached_sess_t *prev; | |
29 ngx_http_ssl_cached_sess_t *next; | |
30 time_t expire; | |
31 ngx_http_ssl_sess_id_t *sess_id; | |
32 u_char asn1[1]; | |
33 }; | |
34 | |
35 | |
36 typedef struct { | |
37 ngx_rbtree_t *session_rbtree; | |
38 ngx_http_ssl_cached_sess_t session_cache_head; | |
39 ngx_http_ssl_cached_sess_t session_cache_tail; | |
40 } ngx_http_ssl_sesssion_cache_t; | |
41 | 14 |
42 | 15 |
43 typedef struct { | 16 typedef struct { |
44 ngx_flag_t enable; | 17 ngx_flag_t enable; |
45 | 18 |