|
SASC-NG
DVBSoftCAM
|
#include <parse.h>
Inheritance diagram for cCardIrdeto:Public Member Functions | |
| cCardIrdeto (void) | |
| cCardIrdeto (unsigned char hb, const unsigned char *hs) | |
| virtual bool | MatchEMM (const unsigned char *data) |
| virtual int | UpdateType (const unsigned char *data) |
Public Attributes | |
| unsigned char | hexBase |
| unsigned char | hexSer [3] |
| cCardIrdeto::cCardIrdeto | ( | unsigned char | hb, |
| const unsigned char * | hs | ||
| ) |
| bool cCardIrdeto::MatchEMM | ( | const unsigned char * | data | ) | [virtual] |
Implements cCard.
Definition at line 200 of file parse.c.
References cParseIrdeto::AddrBase(), cParseIrdeto::AddrLen(), hexBase, and hexSer.
{
const unsigned int len=cParseIrdeto::AddrLen(data);
const unsigned int mode=cParseIrdeto::AddrBase(data);
return ( mode>=0x10 && len<=sizeof(hexSer)
&& mode==hexBase && (!len || !memcmp(&data[4],hexSer,len)));
}
| int cCardIrdeto::UpdateType | ( | const unsigned char * | data | ) | [virtual] |
Reimplemented from cCard.
Definition at line 208 of file parse.c.
References cParseIrdeto::AddrLen().
{
switch(cParseIrdeto::AddrLen(data)) {
case 0: return 0; // global
case 1:
case 2: return 2; // shared
default: return 3; // unique
}
}
| unsigned char cCardIrdeto::hexBase |
Definition at line 98 of file parse.h.
Referenced by cCardIrdeto(), MatchEMM(), and cSystemIrd::ProcessEMM().
| unsigned char cCardIrdeto::hexSer[3] |
Definition at line 99 of file parse.h.
Referenced by cCardIrdeto(), MatchEMM(), cIrdCardInfo::Parse(), cIrdCardInfo::ToString(), and cIrdCardInfos::Update().