comparison src/event/ngx_event_openssl.h @ 6982:ac9b1df5b246

SSL: disabled renegotiation detection in client mode. CVE-2009-3555 is no longer relevant and mitigated by the renegotiation info extension (secure renegotiation). On the other hand, unexpected renegotiation still introduces potential security risks, and hence we do not allow renegotiation on the server side, as we never request renegotiation. On the client side the situation is different though. There are backends which explicitly request renegotiation, and disabled renegotiation introduces interoperability problems. This change allows renegotiation on the client side, and fixes interoperability problems as observed with such backends (ticket #872). Additionally, with TLSv1.3 the SSL_CB_HANDSHAKE_START flag is currently set by OpenSSL when receiving a NewSessionTicket message, and was detected by nginx as a renegotiation attempt. This looks like a bug in OpenSSL, though this change also allows better interoperability till the problem is fixed.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 18 Apr 2017 16:08:44 +0300
parents 08dc60979133
children 82f0b8dcca27
comparison
equal deleted inserted replaced
6981:08dc60979133 6982:ac9b1df5b246
50 #endif 50 #endif
51 51
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
56
57 #if (OPENSSL_VERSION_NUMBER < 0x10002000L)
58 #define SSL_is_server(s) (s)->server
59 #endif
55 60
56 61
57 struct ngx_ssl_s { 62 struct ngx_ssl_s {
58 SSL_CTX *ctx; 63 SSL_CTX *ctx;
59 ngx_log_t *log; 64 ngx_log_t *log;