CI: fix some caid issues (thx dboxoldie)

Origin commit data
------------------
Branch: master
Commit: 17f98ccce1
Author: TangoCash <eric@loxat.de>
Date: 2017-11-06 (Mon, 06 Nov 2017)


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

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2017-11-06 17:41:52 +01:00
parent f8a7b90680
commit 5becd0019c

View File

@@ -36,10 +36,18 @@ int eDVBCICAManagerSession::receivedAPDU(const unsigned char *tag, const void *d
caids.push_back((((const unsigned char*)data)[i] << 8) | (((const unsigned char*)data)[i + 1]));
}
if (!caids.empty())
if ((caids[0] & 0xFF00) == 0x1800)
{
for (u32 i = 0; i < caids.size(); i++)
{
if (caids[i] == 0x1830)
{
caids.push_back(0x186A);
printf("%04x", 0x186A);
printf("%04x ", 0x186A);
caids.push_back(0x186D);
printf("%04x ", 0x186D);
break;
}
}
}
std::sort(caids.begin(), caids.end());
printf("\n");