We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd6481a commit 725a66aCopy full SHA for 725a66a
src/tls_wrap.cc
@@ -939,9 +939,9 @@ void TLSWrap::EnableTrace(
939
940
#if HAVE_SSL_TRACE
941
if (wrap->ssl_) {
942
- BIO* b = BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT);
+ wrap->bio_trace_.reset(BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT));
943
SSL_set_msg_callback(wrap->ssl_.get(), SSL_trace);
944
- SSL_set_msg_callback_arg(wrap->ssl_.get(), b);
+ SSL_set_msg_callback_arg(wrap->ssl_.get(), wrap->bio_trace_.get());
945
}
946
#endif
947
src/tls_wrap.h
@@ -193,6 +193,8 @@ class TLSWrap : public AsyncWrap,
193
private:
194
static void GetWriteQueueSize(
195
const v8::FunctionCallbackInfo<v8::Value>& info);
196
+
197
+ crypto::BIOPointer bio_trace_;
198
};
199
200
} // namespace node
0 commit comments