• Home
  • Raw
  • Download

Lines Matching refs:wrap

200   TLSWrap* wrap;  in Receive()  local
201 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in Receive()
206 Debug(wrap, "Receiving %zu bytes injected from JS", len); in Receive()
209 while (len > 0 && wrap->IsAlive() && !wrap->IsClosing()) { in Receive()
210 uv_buf_t buf = wrap->OnStreamAlloc(len); in Receive()
214 wrap->OnStreamRead(copy, buf); in Receive()
223 TLSWrap* wrap; in Start() local
224 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in Start()
226 CHECK(!wrap->started_); in Start()
228 wrap->started_ = true; in Start()
231 CHECK(wrap->is_client()); in Start()
235 wrap->ClearOut(); in Start()
236 wrap->EncOut(); in Start()
902 TLSWrap* wrap; in SetVerifyMode() local
903 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in SetVerifyMode()
908 CHECK_NOT_NULL(wrap->ssl_); in SetVerifyMode()
911 if (wrap->is_server()) { in SetVerifyMode()
930 SSL_set_verify(wrap->ssl_.get(), verify_mode, crypto::VerifyCallback); in SetVerifyMode()
936 TLSWrap* wrap; in EnableSessionCallbacks() local
937 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in EnableSessionCallbacks()
938 CHECK_NOT_NULL(wrap->ssl_); in EnableSessionCallbacks()
939 wrap->enable_session_callbacks(); in EnableSessionCallbacks()
942 if (wrap->is_client()) in EnableSessionCallbacks()
945 crypto::NodeBIO::FromBIO(wrap->enc_in_)->set_initial(kMaxHelloLength); in EnableSessionCallbacks()
946 wrap->hello_parser_.Start(SSLWrap<TLSWrap>::OnClientHello, in EnableSessionCallbacks()
948 wrap); in EnableSessionCallbacks()
953 TLSWrap* wrap; in EnableKeylogCallback() local
954 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in EnableKeylogCallback()
955 CHECK_NOT_NULL(wrap->sc_); in EnableKeylogCallback()
956 SSL_CTX_set_keylog_callback(wrap->sc_->ctx_.get(), in EnableKeylogCallback()
972 TLSWrap* wrap; in EnableTrace() local
973 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in EnableTrace()
976 if (wrap->ssl_) { in EnableTrace()
977 wrap->bio_trace_.reset(BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT)); in EnableTrace()
978 SSL_set_msg_callback(wrap->ssl_.get(), [](int write_p, int version, int in EnableTrace()
989 SSL_set_msg_callback_arg(wrap->ssl_.get(), wrap->bio_trace_.get()); in EnableTrace()
995 TLSWrap* wrap; in DestroySSL() local
996 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in DestroySSL()
997 Debug(wrap, "DestroySSL()"); in DestroySSL()
1000 wrap->write_callback_scheduled_ = true; in DestroySSL()
1003 wrap->InvokeQueued(UV_ECANCELED, "Canceled because of SSL destruction"); in DestroySSL()
1006 wrap->SSLWrap<TLSWrap>::DestroySSL(); in DestroySSL()
1007 wrap->enc_in_ = nullptr; in DestroySSL()
1008 wrap->enc_out_ = nullptr; in DestroySSL()
1010 if (wrap->stream_ != nullptr) in DestroySSL()
1011 wrap->stream_->RemoveStreamListener(wrap); in DestroySSL()
1012 Debug(wrap, "DestroySSL() finished"); in DestroySSL()
1017 TLSWrap* wrap; in EnableCertCb() local
1018 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in EnableCertCb()
1019 wrap->WaitForCertCb(OnClientHelloParseEnd, wrap); in EnableCertCb()
1033 TLSWrap* wrap; in GetServername() local
1034 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in GetServername()
1036 CHECK_NOT_NULL(wrap->ssl_); in GetServername()
1038 const char* servername = SSL_get_servername(wrap->ssl_.get(), in GetServername()
1051 TLSWrap* wrap; in SetServername() local
1052 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in SetServername()
1056 CHECK(!wrap->started_); in SetServername()
1057 CHECK(wrap->is_client()); in SetServername()
1059 CHECK_NOT_NULL(wrap->ssl_); in SetServername()
1062 SSL_set_tlsext_host_name(wrap->ssl_.get(), *servername); in SetServername()
1136 TLSWrap* wrap; in EnablePskCallback() local
1137 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); in EnablePskCallback()
1138 CHECK_NOT_NULL(wrap->ssl_); in EnablePskCallback()
1140 SSL_set_psk_server_callback(wrap->ssl_.get(), PskServerCallback); in EnablePskCallback()
1141 SSL_set_psk_client_callback(wrap->ssl_.get(), PskClientCallback); in EnablePskCallback()
1243 TLSWrap* wrap; in GetWriteQueueSize() local
1244 ASSIGN_OR_RETURN_UNWRAP(&wrap, info.This()); in GetWriteQueueSize()
1246 if (wrap->ssl_ == nullptr) { in GetWriteQueueSize()
1251 uint32_t write_queue_size = BIO_pending(wrap->enc_out_); in GetWriteQueueSize()