• Home
  • Raw
  • Download

Lines Matching refs:ssl_

120   SSL_set_bio(ssl_.get(), enc_in_, enc_out_);  in InitSSL()
123 SSL_set_verify(ssl_.get(), SSL_VERIFY_NONE, crypto::VerifyCallback); in InitSSL()
126 SSL_set_mode(ssl_.get(), SSL_MODE_RELEASE_BUFFERS); in InitSSL()
133 SSL_set_mode(ssl_.get(), SSL_MODE_AUTO_RETRY); in InitSSL()
138 SSL_set_renegotiate_mode(ssl_.get(), ssl_renegotiate_freely); in InitSSL()
141 SSL_set_app_data(ssl_.get(), this); in InitSSL()
147 SSL_set_info_callback(ssl_.get(), SSLInfoCallback); in InitSSL()
156 SSL_set_cert_cb(ssl_.get(), SSLWrap<TLSWrap>::SSLCertCallback, this); in InitSSL()
159 SSL_set_accept_state(ssl_.get()); in InitSSL()
163 SSL_set_connect_state(ssl_.get()); in InitSSL()
240 void TLSWrap::SSLInfoCallback(const SSL* ssl_, int where, int ret) { in SSLInfoCallback() argument
245 SSL* ssl = const_cast<SSL*>(ssl_); in SSLInfoCallback()
246 TLSWrap* c = static_cast<TLSWrap*>(SSL_get_app_data(ssl_)); in SSLInfoCallback()
310 if (ssl_ == nullptr) { in EncOut()
386 if (ssl_ == nullptr) { in OnStreamAfterWrite()
419 if (ssl_ == nullptr) in GetSSLError()
422 *err = SSL_get_error(ssl_.get(), status); in GetSSLError()
510 if (ssl_ == nullptr) { in ClearOut()
520 read = SSL_read(ssl_.get(), out, sizeof(out)); in ClearOut()
539 if (ssl_ == nullptr) { in ClearOut()
549 int flags = SSL_get_shutdown(ssl_.get()); in ClearOut()
588 if (ssl_ == nullptr) { in ClearIn()
602 int written = SSL_write(ssl_.get(), data.data(), data.size()); in ClearIn()
661 return ssl_ != nullptr && in IsAlive()
708 if (ssl_ == nullptr) { in DoWrite()
787 written = SSL_write(ssl_.get(), data.data(), length); in DoWrite()
792 written = SSL_write(ssl_.get(), buf->base, buf->len); in DoWrite()
831 CHECK_NOT_NULL(ssl_); in OnStreamAlloc()
859 CHECK(ssl_); in OnStreamRead()
892 if (ssl_ && SSL_shutdown(ssl_.get()) == 0) in DoShutdown()
893 SSL_shutdown(ssl_.get()); in DoShutdown()
908 CHECK_NOT_NULL(wrap->ssl_); in SetVerifyMode()
930 SSL_set_verify(wrap->ssl_.get(), verify_mode, crypto::VerifyCallback); in SetVerifyMode()
938 CHECK_NOT_NULL(wrap->ssl_); in EnableSessionCallbacks()
976 if (wrap->ssl_) { 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()
1036 CHECK_NOT_NULL(wrap->ssl_); in GetServername()
1038 const char* servername = SSL_get_servername(wrap->ssl_.get(), in GetServername()
1059 CHECK_NOT_NULL(wrap->ssl_); in SetServername()
1062 SSL_set_tlsext_host_name(wrap->ssl_.get(), *servername); in SetServername()
1110 CHECK_EQ(SSL_set_SSL_CTX(p->ssl_.get(), sc->ctx_.get()), sc->ctx_.get()); in SelectSNIContextCallback()
1121 CHECK_NOT_NULL(p->ssl_); in SetPskIdentityHint()
1129 if (!SSL_use_psk_identity_hint(p->ssl_.get(), *hint)) { in SetPskIdentityHint()
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()
1246 if (wrap->ssl_ == nullptr) { in GetWriteQueueSize()