mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
tls: workaround handshakedone in renegotiation
`SSL_CB_HANDSHAKE_START` and `SSL_CB_HANDSHAKE_DONE` are called sending HelloRequest in OpenSSL-1.1.1. We need to check whether this is in a renegotiation state or not. PR-URL: https://github.com/nodejs/node/pull/25381 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
This commit is contained in:
parent
3f419e897b
commit
bbed92ca85
@ -222,7 +222,10 @@ void TLSWrap::SSLInfoCallback(const SSL* ssl_, int where, int ret) {
|
||||
}
|
||||
}
|
||||
|
||||
if (where & SSL_CB_HANDSHAKE_DONE) {
|
||||
// SSL_CB_HANDSHAKE_START and SSL_CB_HANDSHAKE_DONE are called
|
||||
// sending HelloRequest in OpenSSL-1.1.1.
|
||||
// We need to check whether this is in a renegotiation state or not.
|
||||
if (where & SSL_CB_HANDSHAKE_DONE && !SSL_renegotiate_pending(ssl)) {
|
||||
Local<Value> callback;
|
||||
|
||||
c->established_ = true;
|
||||
|
Loading…
Reference in New Issue
Block a user