Searched refs:tls_ (Results 1 – 3 of 3) sorted by relevance
146 std::unique_ptr<tls::TlsConnection> tls_; member168 tls_ = tls::TlsConnection::Create( in SetupTlsConnection()175 if (tls_ == nullptr) { in SetupTlsConnection()181 tls_->SetCertVerifyCallback([](X509_STORE_CTX*) { return 1; }); in SetupTlsConnection()185 if (tls_->DoHandshake() != TlsError::Success) { in SetupTlsConnection()192 std::vector<uint8_t> exportedKeyMaterial = tls_->ExportKeyingMaterial(kExportedKeySize); in SetupTlsConnection()208 if (!tls_->WriteFully(std::string_view(reinterpret_cast<const char*>(&network_header), in WriteHeader()210 !tls_->WriteFully(payload)) { in WriteHeader()219 auto data = tls_->ReadFully(sizeof(PairingPacketHeader)); in ReadHeader()321 auto their_msg = tls_->ReadFully(header.payload); in DoExchangeMsgs()[all …]
437 if (tls_ != nullptr) { in DispatchRead()442 return tls_->ReadFully(buf, len); in DispatchRead()449 if (tls_ != nullptr) { in DispatchWrite()454 return tls_->WriteFully(std::string_view(reinterpret_cast<const char*>(buf), len)); in DispatchWrite()509 tls_ = TlsConnection::Create(TlsConnection::Role::Client, x509_str, evp_str, osh); in DoTlsHandshake()511 tls_ = TlsConnection::Create(TlsConnection::Role::Server, x509_str, evp_str, osh); in DoTlsHandshake()513 CHECK(tls_); in DoTlsHandshake()519 tls_->EnableClientPostHandshakeCheck(true); in DoTlsHandshake()522 tls_->SetCertificateCallback(adb_tls_set_certificate); in DoTlsHandshake()524 tls_->SetCertVerifyCallback([](X509_STORE_CTX*) { return 1; }); in DoTlsHandshake()[all …]
212 std::unique_ptr<adb::tls::TlsConnection> tls_; member