SSL: allowed renegotiation in client mode with OpenSSL < 1.1.0.
In ac9b1df5b246 (1.13.0) we attempted to allow renegotiation in client mode, but when using OpenSSL 1.0.2 or older versions it was additionally disabled by SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS.
This commit is contained in:
parent
2ceb9b503d
commit
83cd4390c2
1 changed files with 1 additions and 1 deletions
|
@ -1300,7 +1300,7 @@ ngx_ssl_handshake(ngx_connection_t *c)
|
||||||
#ifdef SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS
|
#ifdef SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS
|
||||||
|
|
||||||
/* initial handshake done, disable renegotiation (CVE-2009-3555) */
|
/* initial handshake done, disable renegotiation (CVE-2009-3555) */
|
||||||
if (c->ssl->connection->s3) {
|
if (c->ssl->connection->s3 && SSL_is_server(c->ssl->connection)) {
|
||||||
c->ssl->connection->s3->flags |= SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS;
|
c->ssl->connection->s3->flags |= SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue