Changeset 9894
- Timestamp:
- 10/03/14 18:35:52 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reader-irdeto.c
r9724 r9894 4 4 #include "reader-common.h" 5 5 #include "reader-irdeto.h" 6 #include "oscam-work.h" 6 7 7 8 static const uchar CryptTable[256] = … … 571 572 { rdr_log(reader, "WARNING: For Irdeto cards you will have to set 'cardmhz = 600' in oscam.server"); } 572 573 574 rdr_log(reader, "ready for requests"); 575 573 576 return irdeto_card_init_provider(reader); 574 577 } … … 1036 1039 reader_chk_cmd(sc_Acs57_Cmd, acslength + 2); 1037 1040 if(cta_res[2] != 0) 1038 { rdr_log(reader, "EMM write error %02X", cta_res[2]); } 1041 { 1042 rdr_log(reader, "EMM write error %02X", cta_res[2]); 1043 return ERROR; 1044 } 1045 if(ep->type != GLOBAL) 1046 { 1047 add_job(reader->client, ACTION_READER_CARDINFO, NULL, 0); // refresh entitlement since it might have been changed! 1048 } 1039 1049 return OK; 1040 1050 } … … 1057 1067 emm += l; 1058 1068 memcpy(ptr, &emm[2], dataLen); // copy emm bytes 1059 return (irdeto_do_cmd(reader, cta_cmd, 0, cta_res, &cta_lr) ? 0 : 1); // TODO: this always returns success cause return code cant be 0 1069 if(!irdeto_do_cmd(reader, cta_cmd, 0, cta_res, &cta_lr)) 1070 { 1071 if(ep->type != GLOBAL) 1072 { 1073 add_job(reader->client, ACTION_READER_CARDINFO, NULL, 0); // refresh entitlement since it might have been changed! 1074 } 1075 return OK; 1076 } 1077 else return ERROR; 1060 1078 } 1061 1079 } … … 1176 1194 } 1177 1195 } 1178 rdr_log(reader, "ready for requests");1179 1196 return OK; 1180 1197 }
Note:
See TracChangeset
for help on using the changeset viewer.