#include "RTC/FuzzerStunPacket.hpp"
#include "RTC/StunPacket.hpp"
void Fuzzer::RTC::StunPacket::Fuzz(const uint8_t* data, size_t len)
{
if (!::RTC::StunPacket::IsStun(data, len))
return;
::RTC::StunPacket* packet = ::RTC::StunPacket::Parse(data, len);
if (!packet)
return;
packet->GetClass();
packet->GetMethod();
packet->GetData();
packet->GetSize();
packet->SetUsername("foo", 3);
packet->SetPriority(123);
packet->SetIceControlling(123);
packet->SetIceControlled(123);
packet->SetUseCandidate();
packet->SetErrorCode(666);
packet->SetFingerprint();
packet->GetUsername();
packet->GetPriority();
packet->GetIceControlling();
packet->GetIceControlled();
packet->HasUseCandidate();
packet->GetErrorCode();
packet->HasMessageIntegrity();
packet->HasFingerprint();
packet->CheckAuthentication("foo", "bar");
packet->Authenticate("lalala");
delete packet;
}