mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
test c**
This commit is contained in:
@@ -49,6 +49,7 @@ int eDVBCIResourceManagerSession::doAction()
|
||||
case stateStarted:
|
||||
{
|
||||
const unsigned char tag[3] = {0x9F, 0x80, 0x10}; // profile enquiry
|
||||
cCA::GetInstance()->CheckCerts();
|
||||
sendAPDU(tag);
|
||||
state = stateFirstProfileEnquiry;
|
||||
return 0;
|
||||
@@ -68,19 +69,38 @@ int eDVBCIResourceManagerSession::doAction()
|
||||
case stateProfileEnquiry:
|
||||
{
|
||||
const unsigned char tag[3] = {0x9F, 0x80, 0x11};
|
||||
const unsigned char data[][4] =
|
||||
if (cCA::GetInstance()->CheckCerts())
|
||||
{
|
||||
{0x00, 0x01, 0x00, 0x41},
|
||||
{0x00, 0x02, 0x00, 0x41},
|
||||
{0x00, 0x02, 0x00, 0x43},
|
||||
{0x00, 0x03, 0x00, 0x41},
|
||||
// {0x00, 0x20, 0x00, 0x41}, // host control
|
||||
{0x00, 0x40, 0x00, 0x41},
|
||||
{0x00, 0x24, 0x00, 0x41},
|
||||
{0x00, 0x8c, 0x10, 0x01} // content control
|
||||
// {0x00, 0x10, 0x00, 0x41} // auth.
|
||||
};
|
||||
sendAPDU(tag, data, sizeof(data));
|
||||
const unsigned char data[][4] =
|
||||
{
|
||||
{0x00, 0x01, 0x00, 0x41}, // resource
|
||||
{0x00, 0x02, 0x00, 0x41}, // application V1
|
||||
{0x00, 0x02, 0x00, 0x43}, // application V3
|
||||
{0x00, 0x03, 0x00, 0x41}, // conditional access
|
||||
// {0x00, 0x20, 0x00, 0x41}, // host control
|
||||
{0x00, 0x40, 0x00, 0x41}, // mmi
|
||||
{0x00, 0x24, 0x00, 0x41}, // date-time
|
||||
{0x00, 0x8c, 0x10, 0x01} // content control
|
||||
// {0x00, 0x10, 0x00, 0x41} // auth.
|
||||
};
|
||||
sendAPDU(tag, data, sizeof(data));
|
||||
}
|
||||
else
|
||||
{
|
||||
const unsigned char data[][4] =
|
||||
{
|
||||
{0x00, 0x01, 0x00, 0x41}, // resource
|
||||
{0x00, 0x02, 0x00, 0x41}, // application V1
|
||||
{0x00, 0x02, 0x00, 0x43}, // application V3
|
||||
{0x00, 0x03, 0x00, 0x41}, // conditional access
|
||||
// {0x00, 0x20, 0x00, 0x41}, // host control
|
||||
{0x00, 0x40, 0x00, 0x41}, // mmi
|
||||
{0x00, 0x24, 0x00, 0x41} // date-time
|
||||
// {0x00, 0x10, 0x00, 0x41} // auth.
|
||||
};
|
||||
sendAPDU(tag, data, sizeof(data));
|
||||
}
|
||||
//sendAPDU(tag, data, sizeof(data));
|
||||
state = stateFinal;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user