Mercurial > hg > nginx
comparison src/http/modules/ngx_http_ssl_module.h @ 973:e1ede83911ef
ssl_session_cache
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 02 Jan 2007 23:55:05 +0000 |
parents | 95d7da23ea53 |
children | 8dfb3aa75de2 |
comparison
equal
deleted
inserted
replaced
972:6e7a20529f53 | 973:e1ede83911ef |
---|---|
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 | 14 |
15 | 15 |
16 typedef struct ngx_http_ssl_cached_sess_s ngx_http_ssl_cached_sess_t; | |
17 | |
18 | |
16 typedef struct { | 19 typedef struct { |
17 ngx_flag_t enable; | 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; | |
18 | 25 |
19 ngx_ssl_t ssl; | |
20 | 26 |
21 ngx_flag_t prefer_server_ciphers; | 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 }; | |
22 | 34 |
23 ngx_uint_t protocols; | |
24 | 35 |
25 ngx_int_t verify; | 36 typedef struct { |
26 ngx_int_t verify_depth; | 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; | |
27 | 41 |
28 time_t session_timeout; | |
29 | 42 |
30 ngx_str_t certificate; | 43 typedef struct { |
31 ngx_str_t certificate_key; | 44 ngx_flag_t enable; |
32 ngx_str_t client_certificate; | |
33 | 45 |
34 ngx_str_t ciphers; | 46 ngx_ssl_t ssl; |
47 | |
48 ngx_flag_t prefer_server_ciphers; | |
49 | |
50 ngx_uint_t protocols; | |
51 | |
52 ngx_int_t verify; | |
53 ngx_int_t verify_depth; | |
54 | |
55 ssize_t builtin_session_cache; | |
56 | |
57 time_t session_timeout; | |
58 | |
59 ngx_str_t certificate; | |
60 ngx_str_t certificate_key; | |
61 ngx_str_t client_certificate; | |
62 | |
63 ngx_str_t ciphers; | |
64 | |
65 ngx_shm_zone_t *shm_zone; | |
35 } ngx_http_ssl_srv_conf_t; | 66 } ngx_http_ssl_srv_conf_t; |
36 | 67 |
37 | 68 |
38 extern ngx_module_t ngx_http_ssl_module; | 69 extern ngx_module_t ngx_http_ssl_module; |
39 | 70 |