Mercurial > hg > nginx
comparison src/http/modules/ngx_http_ssl_module.c @ 637:e60fe4cf1d4e release-0.3.40
nginx-0.3.40-RELEASE import
*) Feature: the ngx_http_dav_module supports the MKCOL method.
*) Feature: the "create_full_put_path" directive.
*) Feature: the "$limit_rate" variable.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 19 Apr 2006 15:30:56 +0000 |
parents | 3f8a2132b93d |
children | 95d7da23ea53 |
comparison
equal
deleted
inserted
replaced
636:21003753acbf | 637:e60fe4cf1d4e |
---|---|
134 }; | 134 }; |
135 | 135 |
136 | 136 |
137 static ngx_http_variable_t ngx_http_ssl_vars[] = { | 137 static ngx_http_variable_t ngx_http_ssl_vars[] = { |
138 | 138 |
139 { ngx_string("ssl_protocol"), ngx_http_ssl_variable, | 139 { ngx_string("ssl_protocol"), NULL, ngx_http_ssl_variable, |
140 (uintptr_t) ngx_ssl_get_protocol, NGX_HTTP_VAR_CHANGABLE, 0 }, | 140 (uintptr_t) ngx_ssl_get_protocol, NGX_HTTP_VAR_CHANGABLE, 0 }, |
141 | 141 |
142 { ngx_string("ssl_cipher"), ngx_http_ssl_variable, | 142 { ngx_string("ssl_cipher"), NULL, ngx_http_ssl_variable, |
143 (uintptr_t) ngx_ssl_get_cipher_name, NGX_HTTP_VAR_CHANGABLE, 0 }, | 143 (uintptr_t) ngx_ssl_get_cipher_name, NGX_HTTP_VAR_CHANGABLE, 0 }, |
144 | 144 |
145 { ngx_null_string, NULL, 0, 0, 0 } | 145 { ngx_null_string, NULL, NULL, 0, 0, 0 } |
146 }; | 146 }; |
147 | 147 |
148 | 148 |
149 static u_char ngx_http_session_id_ctx[] = "HTTP"; | 149 static u_char ngx_http_session_id_ctx[] = "HTTP"; |
150 | 150 |
188 var = ngx_http_add_variable(cf, &v->name, v->flags); | 188 var = ngx_http_add_variable(cf, &v->name, v->flags); |
189 if (var == NULL) { | 189 if (var == NULL) { |
190 return NGX_ERROR; | 190 return NGX_ERROR; |
191 } | 191 } |
192 | 192 |
193 var->handler = v->handler; | 193 var->get_handler = v->get_handler; |
194 var->data = v->data; | 194 var->data = v->data; |
195 } | 195 } |
196 | 196 |
197 return NGX_OK; | 197 return NGX_OK; |
198 } | 198 } |