Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.h @ 396:6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 18 Jul 2004 19:11:20 +0000 |
parents | f8f0f1834266 |
children | de797f3b4c27 |
comparison
equal
deleted
inserted
replaced
395:f8f0f1834266 | 396:6f3b20c1ac50 |
---|---|
11 | 11 |
12 typedef struct { | 12 typedef struct { |
13 SSL *ssl; | 13 SSL *ssl; |
14 ngx_buf_t *buf; | 14 ngx_buf_t *buf; |
15 ngx_event_handler_pt saved_handler; | 15 ngx_event_handler_pt saved_handler; |
16 | |
17 unsigned no_rcv_shut:1; | |
18 unsigned no_send_shut:1; | |
16 } ngx_ssl_t; | 19 } ngx_ssl_t; |
17 | 20 |
18 | 21 |
19 typedef SSL_CTX ngx_ssl_ctx_t; | 22 typedef SSL_CTX ngx_ssl_ctx_t; |
20 | 23 |
26 | 29 |
27 | 30 |
28 ngx_int_t ngx_ssl_init(ngx_log_t *log); | 31 ngx_int_t ngx_ssl_init(ngx_log_t *log); |
29 ngx_int_t ngx_ssl_create_session(ngx_ssl_ctx_t *ctx, ngx_connection_t *c, | 32 ngx_int_t ngx_ssl_create_session(ngx_ssl_ctx_t *ctx, ngx_connection_t *c, |
30 ngx_uint_t flags); | 33 ngx_uint_t flags); |
34 | |
35 #define ngx_ssl_handshake(c) NGX_OK | |
36 | |
31 ngx_int_t ngx_ssl_recv(ngx_connection_t *c, u_char *buf, size_t size); | 37 ngx_int_t ngx_ssl_recv(ngx_connection_t *c, u_char *buf, size_t size); |
32 ngx_chain_t *ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, | 38 ngx_chain_t *ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, |
33 off_t limit); | 39 off_t limit); |
34 ngx_int_t ngx_ssl_shutdown(ngx_connection_t *c); | 40 ngx_int_t ngx_ssl_shutdown(ngx_connection_t *c); |
35 void ngx_ssl_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, | 41 void ngx_ssl_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, |
36 char *fmt, ...); | 42 char *fmt, ...); |
37 | 43 |
44 #define ngx_ssl_set_nosendshut(ssl) \ | |
45 if (ssl) { \ | |
46 ssl->no_send_shut = 1; \ | |
47 } | |
48 | |
38 | 49 |
39 #endif /* _NGX_EVENT_OPENSSL_H_INCLUDED_ */ | 50 #endif /* _NGX_EVENT_OPENSSL_H_INCLUDED_ */ |