This commit is contained in:
max10
2014-06-04 22:07:42 +02:00
parent ad87948717
commit 76c498c2a9
4 changed files with 5 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ int eDVBCICAManagerSession::receivedAPDU(const unsigned char *tag, const void *d
printf("%04x ", (((const unsigned char*)data)[i] << 8) | (((const unsigned char*)data)[i + 1]));
caids.push_back((((const unsigned char*)data)[i] << 8) | (((const unsigned char*)data)[i + 1]));
}
sort(caids.begin(), caids.end());
std::sort(caids.begin(), caids.end());
printf("\n");
slot->pollConnection = false;

View File

@@ -36,7 +36,7 @@ int eDVBCIResourceManagerSession::receivedAPDU(const unsigned char *tag, const v
state = stateFinal;
break;
default:
printf("%s %s unknown APDU tag 9F 80 %02x\n", tag[2], FILENAME, __FUNCTION__);
printf("%s %s unknown APDU tag 9F 80 %02x\n", FILENAME, __FUNCTION__, tag[2]);
}
}
return 0;

View File

@@ -88,6 +88,7 @@ void eDVBCISession::sendSPDU(tSlot *slot, unsigned char tag, const void *data, i
if (apdu)
memcpy(ptr, apdu, alen);
ptr += alen;
sendData(slot, pkt, ptr - pkt);
}
@@ -110,6 +111,7 @@ void eDVBCISession::recvCreateSessionResponse(const unsigned char *data)
void eDVBCISession::recvCloseSessionRequest(const unsigned char *data)
{
status = data[0];
state = stateInDeletion;
action = 1;
printf("close Session Request\n");
@@ -145,7 +147,7 @@ eDVBCISession* eDVBCISession::createSession(tSlot *slot, const unsigned char *re
tag |= resource_identifier[2] << 8;
tag |= resource_identifier[3];
printf("Tag: %08X\n", tag);
printf("Tag: %08lx\n", tag);
switch (tag)
{