Mercurial > hg > nginx-vendor-current
annotate src/event/ngx_event_openssl.h @ 50:72eb30262aac NGINX_0_1_25
nginx 0.1.25
*) Bugfix: nginx did run on Linux parisc.
*) Feature: nginx now does not start under FreeBSD if the sysctl
kern.ipc.somaxconn value is too big.
*) Bugfix: if a request was internally redirected by the
ngx_http_index_module module to the ngx_http_proxy_module or
ngx_http_fastcgi_module modules, then the index file was not closed
after request completion.
*) Feature: the "proxy_pass" can be used in location with regular
expression.
*) Feature: the ngx_http_rewrite_filter_module module supports the
condition like "if ($HTTP_USER_AGENT ~ MSIE)".
*) Bugfix: nginx started too slow if the large number of addresses and
text values were used in the "geo" directive.
*) Change: a variable name must be declared as "$name" in the "geo"
directive. The previous variant without "$" is still supported, but
will be removed soon.
*) Feature: the "%{VARIABLE}v" logging parameter.
*) Feature: the "set $name value" directive.
*) Bugfix: gcc 4.0 compatibility.
*) Feature: the --with-openssl-opt=OPTIONS autoconfiguration directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 19 Mar 2005 00:00:00 +0300 |
parents | 2879cd3a40cb |
children | b55cbf18157e |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_EVENT_OPENSSL_H_INCLUDED_ | |
8 #define _NGX_EVENT_OPENSSL_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 #include <openssl/ssl.h> | |
15 #include <openssl/err.h> | |
16 | |
17 | |
18 typedef struct { | |
19 SSL *ssl; | |
38 | 20 ngx_int_t last; |
0 | 21 ngx_buf_t *buf; |
22 | 22 ngx_event_handler_pt saved_read_handler; |
23 ngx_event_handler_pt saved_write_handler; | |
0 | 24 |
25 unsigned buffer:1; | |
26 unsigned no_rcv_shut:1; | |
27 unsigned no_send_shut:1; | |
22 | 28 unsigned shutdown_set:1; |
28 | 29 |
30 #if (NGX_DEBUG) | |
31 unsigned handshaked:1; | |
32 #endif | |
0 | 33 } ngx_ssl_t; |
34 | |
35 | |
36 typedef SSL_CTX ngx_ssl_ctx_t; | |
37 | |
38 | |
39 #define NGX_SSL_BUFFER 1 | |
40 | |
41 | |
42 #define NGX_SSL_BUFSIZE 16384 | |
43 | |
44 | |
45 ngx_int_t ngx_ssl_init(ngx_log_t *log); | |
46 ngx_int_t ngx_ssl_create_session(ngx_ssl_ctx_t *ctx, ngx_connection_t *c, | |
47 ngx_uint_t flags); | |
48 | |
49 #define ngx_ssl_handshake(c) NGX_OK | |
50 | |
18 | 51 ssize_t ngx_ssl_recv(ngx_connection_t *c, u_char *buf, size_t size); |
0 | 52 ngx_chain_t *ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, |
38 | 53 off_t limit); |
0 | 54 ngx_int_t ngx_ssl_shutdown(ngx_connection_t *c); |
55 void ngx_ssl_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, | |
38 | 56 char *fmt, ...); |
0 | 57 |
58 | |
59 #endif /* _NGX_EVENT_OPENSSL_H_INCLUDED_ */ |