|
SASC-NG
DVBSoftCAM
|
#include <system-common.h>
Inheritance diagram for cSystemScCore:Public Member Functions | |
| cSystemScCore (const char *Name, int Pri, int ScId, const char *ScName) | |
| virtual bool | ProcessECM (const cEcmInfo *ecm, unsigned char *data) |
| virtual void | ProcessEMM (int pid, int caid, const unsigned char *data) |
Definition at line 102 of file system-common.h.
| cSystemScCore::cSystemScCore | ( | const char * | Name, |
| int | Pri, | ||
| int | ScId, | ||
| const char * | ScName | ||
| ) |
Definition at line 158 of file system-common.c.
| bool cSystemScCore::ProcessECM | ( | const cEcmInfo * | ecm, |
| unsigned char * | data | ||
| ) | [virtual] |
Implements cSystem.
Definition at line 164 of file system-common.c.
References cSystem::cw, cSmartCard::Decode(), cSystem::KeyOK(), cSmartCards::LockCard(), cSmartCards::ReleaseCard(), and smartcards.
{
bool res=false;
cSmartCard *card=smartcards.LockCard(scId);
if(card) {
res=card->Decode(ecm,source,cw);
smartcards.ReleaseCard(card);
if(res) KeyOK(scName);
}
return res;
}
| void cSystemScCore::ProcessEMM | ( | int | pid, |
| int | caid, | ||
| const unsigned char * | data | ||
| ) | [virtual] |
Reimplemented from cSystem.
Definition at line 176 of file system-common.c.
References cSmartCards::LockCard(), cSmartCards::ReleaseCard(), smartcards, and cSmartCard::Update().
{
cSmartCard *card=smartcards.LockCard(scId);
if(card) {
card->Update(pid,caid,buffer);
smartcards.ReleaseCard(card);
}
}