List of all members.
Detailed Description
Definition at line 338 of file cccam2.c.
Constructor & Destructor Documentation
| cShare::cShare |
( |
int |
Shareid, |
|
|
int |
Caid, |
|
|
int |
Hops, |
|
|
const unsigned char * |
Ua |
|
) |
| |
| cShare::cShare |
( |
const cShare * |
s | ) |
|
Definition at line 378 of file cccam2.c.
References caid, and shareid.
{
shareid=s->shareid;
caid=s->caid;
hops=s->hops;
lag=s->lag;
status=s->status;
memset(ua,0,sizeof(ua));
Init();
}
| cShare::cShare |
( |
int |
Shareid, |
|
|
int |
Caid, |
|
|
int |
Hops, |
|
|
const unsigned char * |
Ua |
|
) |
| |
| cShare::cShare |
( |
const cShare * |
s | ) |
|
Member Function Documentation
| cMsgCache* cShare::Cache |
( |
void |
| ) |
const [inline] |
| cMsgCache* cShare::Cache |
( |
void |
| ) |
const [inline] |
| int cShare::CaID |
( |
void |
| ) |
const [inline] |
| int cShare::CaID |
( |
void |
| ) |
const [inline] |
| bool cShare::CheckAddProv |
( |
const unsigned char * |
prov, |
|
|
const unsigned char * |
sa |
|
) |
| |
Definition at line 451 of file cccam2.c.
References cProviders::AddProv(), caid, CheckNull(), HasProv(), L_CC_CCCAM2, PRINTF, prov, cShareProv::provid, provid, shareid, UINT32_BE, and UsesProv().
{
unsigned char s[8];
memset(&s[0],0,4); memcpy(&s[4],sa,4);
int provid=UINT32_BE(pr-1)&0xFFFFFF;
bool res=false;
if(!CheckNull(s,sizeof(s)))
switch(caid>>8) {
case 0x17:
case 0x06: AddProv(new cProviderIrdeto(s[4],&s[5])); res=true; break;
case 0x01: AddProv(new cProviderSeca(&pr[1],&s[4])); res=true; break;
case 0x0b: AddProv(new cProviderConax(&s[1])); res=true; break;
case 0x09: AddProv(new cProviderNDS(&s[4])); res=true; break;
case 0x05: AddProv(new cProviderViaccess(&pr[0],&s[4])); res=true; break;
case 0x0d: AddProv(new cProviderCryptoworks(&s[3])); res=true; break;
default: PRINTF(L_CC_CCCAM2,"share %08x: can't handle shared updates for CAID %04x",shareid,caid);
break;
}
if(res) emmready=true;
SetCache();
if(UsesProv() && !HasProv(provid)) {
cShareProv *sp=new cShareProv;
sp->provid=provid;
prov.Add(sp);
res=true;
}
return res;
}
| bool cShare::CheckAddProv |
( |
const unsigned char * |
prov, |
|
|
const unsigned char * |
sa |
|
) |
| |
| bool cShare::Compare |
( |
const cShare * |
s | ) |
const |
Definition at line 481 of file cccam2.c.
{
if((s->status<0)!=(status<0)) return s->status>=0;
if(s->lag!=lag) return s->lag<lag;
return s->hops<hops;
}
| bool cShare::Compare |
( |
const cShare * |
s | ) |
const |
| bool cShare::EmmReady |
( |
void |
| ) |
const [inline] |
| bool cShare::EmmReady |
( |
void |
| ) |
const [inline] |
| bool cShare::HasProv |
( |
int |
provid | ) |
const |
| bool cShare::HasProv |
( |
int |
provid | ) |
const |
| int cShare::Hops |
( |
void |
| ) |
const [inline] |
| int cShare::Hops |
( |
void |
| ) |
const [inline] |
| int cShare::Lag |
( |
void |
| ) |
const [inline] |
| int cShare::Lag |
( |
void |
| ) |
const [inline] |
| int cShare::ShareID |
( |
void |
| ) |
const [inline] |
| int cShare::ShareID |
( |
void |
| ) |
const [inline] |
| int cShare::Status |
( |
void |
| ) |
const [inline] |
| int cShare::Status |
( |
void |
| ) |
const [inline] |
| bool cShare::UsesProv |
( |
void |
| ) |
const |
Definition at line 433 of file cccam2.c.
References caid.
Referenced by CheckAddProv().
{
switch(caid>>8) {
case 0x01:
case 0x05:
return true;
default:
return false;
}
}
| bool cShare::UsesProv |
( |
void |
| ) |
const |
Friends And Related Function Documentation
The documentation for this class was generated from the following files:
- contrib/sasc-ng/sc/PLUGINS/src/sc-src/systems/cardclient/cccam2.c
- systems/cardclient/cccam2.c