comparison src/event/ngx_event_openssl.h @ 6735:e38e9c50a40e

Modules compatibility: compatibility with NGX_HTTP_SSL. With this change it is now possible to load modules compiled without the "--with-http_ssl_module" configure option into nginx binary compiled with it, and vice versa (if a module doesn't use ssl-specific functions), assuming both use the "--with-compat" option.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 10 Oct 2016 18:44:17 +0300
parents 04d8d1f85649
children 56d6bfe6b609
comparison
equal deleted inserted replaced
6734:0c572ed91b36 6735:e38e9c50a40e
52 52
53 #define ngx_ssl_session_t SSL_SESSION 53 #define ngx_ssl_session_t SSL_SESSION
54 #define ngx_ssl_conn_t SSL 54 #define ngx_ssl_conn_t SSL
55 55
56 56
57 typedef struct { 57 struct ngx_ssl_s {
58 SSL_CTX *ctx; 58 SSL_CTX *ctx;
59 ngx_log_t *log; 59 ngx_log_t *log;
60 size_t buffer_size; 60 size_t buffer_size;
61 } ngx_ssl_t; 61 };
62 62
63 63
64 typedef struct { 64 struct ngx_ssl_connection_s {
65 ngx_ssl_conn_t *connection; 65 ngx_ssl_conn_t *connection;
66 SSL_CTX *session_ctx; 66 SSL_CTX *session_ctx;
67 67
68 ngx_int_t last; 68 ngx_int_t last;
69 ngx_buf_t *buf; 69 ngx_buf_t *buf;
78 unsigned renegotiation:1; 78 unsigned renegotiation:1;
79 unsigned buffer:1; 79 unsigned buffer:1;
80 unsigned no_wait_shutdown:1; 80 unsigned no_wait_shutdown:1;
81 unsigned no_send_shutdown:1; 81 unsigned no_send_shutdown:1;
82 unsigned handshake_buffer_set:1; 82 unsigned handshake_buffer_set:1;
83 } ngx_ssl_connection_t; 83 };
84 84
85 85
86 #define NGX_SSL_NO_SCACHE -2 86 #define NGX_SSL_NO_SCACHE -2
87 #define NGX_SSL_NONE_SCACHE -3 87 #define NGX_SSL_NONE_SCACHE -3
88 #define NGX_SSL_NO_BUILTIN_SCACHE -4 88 #define NGX_SSL_NO_BUILTIN_SCACHE -4