add channelid-check (thx DboxOldie)

Origin commit data
------------------
Branch: master
Commit: ffd0f972f9
Author: max_10 <max_10@gmx.de>
Date: 2016-06-15 (Wed, 15 Jun 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2016-06-15 19:55:18 +02:00
parent 42189d2e99
commit d85847755f
3 changed files with 13 additions and 0 deletions

View File

@@ -1285,3 +1285,14 @@ bool cCA::CheckCerts(void)
}
return Cert_OK;
}
bool cCA::checkChannelID(u64 chanID)
{
std::list<tSlot*>::iterator it;
for (it = slot_data.begin(); it != slot_data.end(); ++it)
{
if ((*it)->tpid == chanID && !(*it)->SidBlackListed)
return true;
}
return false;
}