summaryrefslogtreecommitdiff
path: root/src/tls_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls_wrap.cc')
-rw-r--r--src/tls_wrap.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc
index da18522d37..ff2f53f15c 100644
--- a/src/tls_wrap.cc
+++ b/src/tls_wrap.cc
@@ -210,10 +210,9 @@ void TLSWrap::SSLInfoCallback(const SSL* ssl_, int where, int ret) {
if (!(where & (SSL_CB_HANDSHAKE_START | SSL_CB_HANDSHAKE_DONE)))
return;
- // Be compatible with older versions of OpenSSL. SSL_get_app_data() wants
- // a non-const SSL* in OpenSSL <= 0.9.7e.
+ // SSL_renegotiate_pending() should take `const SSL*`, but it does not.
SSL* ssl = const_cast<SSL*>(ssl_);
- TLSWrap* c = static_cast<TLSWrap*>(SSL_get_app_data(ssl));
+ TLSWrap* c = static_cast<TLSWrap*>(SSL_get_app_data(ssl_));
Environment* env = c->env();
HandleScope handle_scope(env->isolate());
Context::Scope context_scope(env->context());