@@ -117,10 +117,10 @@ void TLSWrap::NewSessionDoneCb() {
117117
118118void TLSWrap::InitSSL () {
119119 // Initialize SSL
120- enc_in_ = NodeBIO::New ();
121- enc_out_ = NodeBIO::New ();
122- NodeBIO::FromBIO (enc_in_)->AssignEnvironment (env ());
123- NodeBIO::FromBIO (enc_out_)->AssignEnvironment (env ());
120+ enc_in_ = crypto:: NodeBIO::New ();
121+ enc_out_ = crypto:: NodeBIO::New ();
122+ crypto:: NodeBIO::FromBIO (enc_in_)->AssignEnvironment (env ());
123+ crypto:: NodeBIO::FromBIO (enc_out_)->AssignEnvironment (env ());
124124
125125 SSL_set_bio (ssl_, enc_in_, enc_out_);
126126
@@ -149,15 +149,15 @@ void TLSWrap::InitSSL() {
149149 SSL_set_accept_state (ssl_);
150150 } else if (is_client ()) {
151151 // Enough space for server response (hello, cert)
152- NodeBIO::FromBIO (enc_in_)->set_initial (kInitialClientBufferLength );
152+ crypto:: NodeBIO::FromBIO (enc_in_)->set_initial (kInitialClientBufferLength );
153153 SSL_set_connect_state (ssl_);
154154 } else {
155155 // Unexpected
156156 ABORT ();
157157 }
158158
159159 // Initialize ring for queud clear data
160- clear_in_ = new NodeBIO ();
160+ clear_in_ = new crypto:: NodeBIO ();
161161 clear_in_->AssignEnvironment (env ());
162162}
163163
@@ -289,7 +289,9 @@ void TLSWrap::EncOut() {
289289 char * data[kSimultaneousBufferCount ];
290290 size_t size[arraysize (data)];
291291 size_t count = arraysize (data);
292- write_size_ = NodeBIO::FromBIO (enc_out_)->PeekMultiple (data, size, &count);
292+ write_size_ = crypto::NodeBIO::FromBIO (enc_out_)->PeekMultiple (data,
293+ size,
294+ &count);
293295 CHECK (write_size_ != 0 && count != 0 );
294296
295297 Local<Object> req_wrap_obj =
@@ -335,7 +337,7 @@ void TLSWrap::EncOutCb(WriteWrap* req_wrap, int status) {
335337 }
336338
337339 // Commit
338- NodeBIO::FromBIO (wrap->enc_out_ )->Read (nullptr , wrap->write_size_ );
340+ crypto:: NodeBIO::FromBIO (wrap->enc_out_ )->Read (nullptr , wrap->write_size_ );
339341
340342 // Ensure that the progress will be made and `InvokeQueued` will be called.
341343 wrap->ClearIn ();
@@ -653,7 +655,7 @@ void TLSWrap::OnAllocImpl(size_t suggested_size, uv_buf_t* buf, void* ctx) {
653655 }
654656
655657 size_t size = 0 ;
656- buf->base = NodeBIO::FromBIO (wrap->enc_in_ )->PeekWritable (&size);
658+ buf->base = crypto:: NodeBIO::FromBIO (wrap->enc_in_ )->PeekWritable (&size);
657659 buf->len = size;
658660}
659661
@@ -717,7 +719,7 @@ void TLSWrap::DoRead(ssize_t nread,
717719 }
718720
719721 // Commit read data
720- NodeBIO* enc_in = NodeBIO::FromBIO (enc_in_);
722+ crypto:: NodeBIO* enc_in = crypto:: NodeBIO::FromBIO (enc_in_);
721723 enc_in->Commit (nread);
722724
723725 // Parse ClientHello first
@@ -788,7 +790,7 @@ void TLSWrap::EnableSessionCallbacks(
788790 " EnableSessionCallbacks after destroySSL" );
789791 }
790792 wrap->enable_session_callbacks ();
791- NodeBIO::FromBIO (wrap->enc_in_ )->set_initial (kMaxHelloLength );
793+ crypto:: NodeBIO::FromBIO (wrap->enc_in_ )->set_initial (kMaxHelloLength );
792794 wrap->hello_parser_ .Start (SSLWrap<TLSWrap>::OnClientHello,
793795 OnClientHelloParseEnd,
794796 wrap);
0 commit comments