Searched refs:username_attr (Results 1 – 5 of 5) sorted by relevance
259 const StunByteStringAttribute* username_attr = in OnExternalPacket() local261 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() local309 if (!username_attr) { in HandleStun()316 username->append(username_attr->bytes(), username_attr->length()); in HandleStun()
280 const StunByteStringAttribute* username_attr = in GetKey() local282 if (!username_attr) { in GetKey()286 std::string username = username_attr->GetString(); in GetKey()298 const StunByteStringAttribute* username_attr = in CheckAuthorization() local313 if (!username_attr || !realm_attr || !nonce_attr) { in CheckAuthorization()616 const StunByteStringAttribute* username_attr = in HandleAllocateRequest() local618 ASSERT(username_attr != NULL); in HandleAllocateRequest()619 username_ = username_attr->GetString(); in HandleAllocateRequest()
583 StunByteStringAttribute* username_attr = in SendTo() local585 username_attr->CopyBytes(port_->username_fragment().c_str(), in SendTo()587 VERIFY(request.AddAttribute(username_attr)); in SendTo()788 StunByteStringAttribute* username_attr = in Prepare() local790 username_attr->CopyBytes( in Prepare()793 VERIFY(request->AddAttribute(username_attr)); in Prepare()
443 const StunByteStringAttribute* username_attr = in ParseStunUsername() local445 if (username_attr == NULL) in ParseStunUsername()449 const std::string username = username_attr->GetString(); in ParseStunUsername()534 const StunByteStringAttribute* username_attr = in SendBindingResponse() local536 ASSERT(username_attr != NULL); in SendBindingResponse()537 if (username_attr == NULL) { in SendBindingResponse()
1351 const StunByteStringAttribute* username_attr = msg->GetByteString( in TEST_F() local1354 STUN_ATTR_USERNAME, username_attr->GetString())); in TEST_F()1617 const StunByteStringAttribute* username_attr = in TEST_F() local1619 ASSERT_TRUE(username_attr != NULL); in TEST_F()1623 EXPECT_EQ("rfrag:lfrag", username_attr->GetString()); in TEST_F()