comparison src/http/modules/ngx_http_ssl_module.c @ 186:54aabf2b0bc6 NGINX_0_3_40

nginx 0.3.40 *) 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 <http://sysoev.ru>
date Wed, 19 Apr 2006 00:00:00 +0400
parents 73e8476f9142
children 8759b346e431
comparison
equal deleted inserted replaced
185:a9c5dc369ffe 186:54aabf2b0bc6
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 }