Lines Matching refs:tls_
146 std::unique_ptr<tls::TlsConnection> tls_; member
168 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()
351 if (!tls_->WriteFully( in DoExchangePeerInfo()
358 if (!tls_->WriteFully( in DoExchangePeerInfo()
376 buf = tls_->ReadFully(header.payload); in DoExchangePeerInfo()