comparison src/imap/ngx_imap_ssl_module.c @ 92:45945fa8b8ba NGINX_0_2_0

nginx 0.2.0 *) The pid-file names used during online upgrade was changed and now is not required a manual rename operation. The old master process adds the ".oldbin" suffix to its pid-file and executes a new binary file. The new master process creates usual pid-file without the ".newbin" suffix. If the master process exits, then old master process renames back its pid-file with the ".oldbin" suffix to the pid-file without suffix. *) Change: the "worker_connections" directive, new name of the "connections" directive; now the directive specifies maximum number of connections, but not maximum socket descriptor number. *) Feature: SSL supports the session cache inside one worker process. *) Feature: the "satisfy_any" directive. *) Change: the ngx_http_access_module and ngx_http_auth_basic_module do not run for subrequests. *) Feature: the "worker_rlimit_nofile" and "worker_rlimit_sigpending" directives. *) Bugfix: if all backend using in load-balancing failed after one error, then nginx did not try do connect to them during 60 seconds. *) Bugfix: in IMAP/POP3 command argument parsing. Thanks to Rob Mueller. *) Bugfix: errors while using SSL in IMAP/POP3 proxy. *) Bugfix: errors while using SSI and gzipping. *) Bugfix: the "Expires" and "Cache-Control" header lines were omitted from the 304 responses. Thanks to Alexandr Kukushkin.
author Igor Sysoev <http://sysoev.ru>
date Fri, 23 Sep 2005 00:00:00 +0400
parents 71c46860eb55
children ca4f70b3ccc6
comparison
equal deleted inserted replaced
91:c3eee83ea942 92:45945fa8b8ba
72 NULL, /* exit thread */ 72 NULL, /* exit thread */
73 NULL, /* exit process */ 73 NULL, /* exit process */
74 NULL, /* exit master */ 74 NULL, /* exit master */
75 NGX_MODULE_V1_PADDING 75 NGX_MODULE_V1_PADDING
76 }; 76 };
77
78
79 static u_char ngx_imap_session_id_ctx[] = "IMAP";
77 80
78 81
79 static void * 82 static void *
80 ngx_imap_ssl_create_conf(ngx_conf_t *cf) 83 ngx_imap_ssl_create_conf(ngx_conf_t *cf)
81 { 84 {
174 "SSL_CTX_use_PrivateKey_file(\"%s\") failed", 177 "SSL_CTX_use_PrivateKey_file(\"%s\") failed",
175 conf->certificate_key.data); 178 conf->certificate_key.data);
176 return NGX_CONF_ERROR; 179 return NGX_CONF_ERROR;
177 } 180 }
178 181
179 SSL_CTX_set_verify(conf->ssl_ctx, SSL_VERIFY_NONE, NULL); 182 SSL_CTX_set_options(conf->ssl_ctx, SSL_OP_ALL);
183
184 SSL_CTX_set_mode(conf->ssl_ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
185
186 SSL_CTX_set_read_ahead(conf->ssl_ctx, 1);
187
188 SSL_CTX_set_session_cache_mode(conf->ssl_ctx, SSL_SESS_CACHE_SERVER);
189
190 SSL_CTX_set_session_id_context(conf->ssl_ctx, ngx_imap_session_id_ctx,
191 sizeof(ngx_imap_session_id_ctx) - 1);
180 192
181 return NGX_CONF_OK; 193 return NGX_CONF_OK;
182 } 194 }