private static bool WithinDNSubtree(
Asn1Sequence dns,
Asn1Sequence subtree)
{
if (subtree.Count < 1)
{
return false;
}
if (subtree.Count > dns.Count)
{
return false;
}
for (int j = subtree.Count - 1; j >= 0; j--)
{
if (!(subtree[j].Equals(dns[j])))
{
return false;
}
}
return true;
}