Home
last modified time | relevance | path

Searched refs:username_attr (Results 1 – 5 of 5) sorted by relevance

/external/webrtc/webrtc/p2p/base/
Drelayserver.cc259 const StunByteStringAttribute* username_attr = in OnExternalPacket() local
261 if (!username_attr) { in OnExternalPacket()
267 std::min(static_cast<uint32_t>(username_attr->length()), USERNAME_LENGTH); in OnExternalPacket()
268 std::string username(username_attr->bytes(), length); in OnExternalPacket()
307 const StunByteStringAttribute* username_attr = in HandleStun() local
309 if (!username_attr) { in HandleStun()
316 username->append(username_attr->bytes(), username_attr->length()); in HandleStun()
Dturnserver.cc280 const StunByteStringAttribute* username_attr = in GetKey() local
282 if (!username_attr) { in GetKey()
286 std::string username = username_attr->GetString(); in GetKey()
298 const StunByteStringAttribute* username_attr = in CheckAuthorization() local
313 if (!username_attr || !realm_attr || !nonce_attr) { in CheckAuthorization()
616 const StunByteStringAttribute* username_attr = in HandleAllocateRequest() local
618 ASSERT(username_attr != NULL); in HandleAllocateRequest()
619 username_ = username_attr->GetString(); in HandleAllocateRequest()
Drelayport.cc583 StunByteStringAttribute* username_attr = in SendTo() local
585 username_attr->CopyBytes(port_->username_fragment().c_str(), in SendTo()
587 VERIFY(request.AddAttribute(username_attr)); in SendTo()
788 StunByteStringAttribute* username_attr = in Prepare() local
790 username_attr->CopyBytes( in Prepare()
793 VERIFY(request->AddAttribute(username_attr)); in Prepare()
Dport.cc443 const StunByteStringAttribute* username_attr = in ParseStunUsername() local
445 if (username_attr == NULL) in ParseStunUsername()
449 const std::string username = username_attr->GetString(); in ParseStunUsername()
534 const StunByteStringAttribute* username_attr = in SendBindingResponse() local
536 ASSERT(username_attr != NULL); in SendBindingResponse()
537 if (username_attr == NULL) { in SendBindingResponse()
Dport_unittest.cc1351 const StunByteStringAttribute* username_attr = msg->GetByteString( in TEST_F() local
1354 STUN_ATTR_USERNAME, username_attr->GetString())); in TEST_F()
1617 const StunByteStringAttribute* username_attr = in TEST_F() local
1619 ASSERT_TRUE(username_attr != NULL); in TEST_F()
1623 EXPECT_EQ("rfrag:lfrag", username_attr->GetString()); in TEST_F()