`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.
Gbp-Pq: Topic ssl
Gbp-Pq: Name
8ceb260cc3e06a1ec43df9dbc63a3eb341b4559e.patch
}
}
- 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)) {
c->established_ = true;
Local<Value> callback = object->Get(env->onhandshakedone_string());
if (callback->IsFunction()) {