Changeset 6759
- Timestamp:
- 05/10/12 14:00:51 (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reader-videoguard-common.c
r6495 r6759 207 207 static void swap_lb (const unsigned char *buff, int32_t len); 208 208 209 int32_t cw_is_valid(unsigned char *cw , int32_t start) //returns 1 if cw_is_valid, returns 0 if cw is all zeros209 int32_t cw_is_valid(unsigned char *cw) // returns 1 if cw_is_valid, returns 0 if cw is all zeros 210 210 { 211 211 int32_t i; 212 for (i = start; i < start+8; i++)212 for (i = 0; i < 8; i++) 213 213 if (cw[i] != 0) { //test if cw = 00 214 214 return OK; -
trunk/reader-videoguard-common.h
r6710 r6759 27 27 } NDS_ATR_ENTRY; 28 28 29 extern int32_t cw_is_valid(unsigned char *cw , int32_t start);29 extern int32_t cw_is_valid(unsigned char *cw); 30 30 extern void cAES_SetKey(struct s_reader * reader, const unsigned char *key); 31 31 -
trunk/reader-videoguard1.c
r6309 r6759 284 284 l = vg1_do_cmd(reader, ins54, NULL, rbuff, cta_res); 285 285 if (l > 0 && status_ok(cta_res + l)) { 286 if (!cw_is_valid(rbuff+5 ,0)) //sky cards report 90 00 = ok but send cw = 00 when channel not subscribed286 if (!cw_is_valid(rbuff+5)) //sky cards report 90 00 = ok but send cw = 00 when channel not subscribed 287 287 { 288 288 cs_log("[videoguard1-reader] class48 ins54 status 90 00 but cw=00 -> channel not subscribed"); -
trunk/reader-videoguard12.c
r6309 r6759 344 344 l = vg12_do_cmd(reader, ins54, NULL, rbuff, cta_res); 345 345 if (l > 0 && status_ok(cta_res + l)) { 346 if (!cw_is_valid(rbuff+5 ,0)) //sky cards report 90 00 = ok but send cw = 00 when channel not subscribed346 if (!cw_is_valid(rbuff+5)) //sky cards report 90 00 = ok but send cw = 00 when channel not subscribed 347 347 { 348 348 cs_log("class4B ins54 status 90 00 but cw=00 -> channel not subscribed"); -
trunk/reader-videoguard2.c
r6431 r6759 142 142 143 143 //ecm_header_data = 01 03 b0 01 01 144 if (!cw_is_valid(cw ,0)) //if cw is all zero, keep it that way144 if (!cw_is_valid(cw)) //if cw is all zero, keep it that way 145 145 { 146 146 return; … … 679 679 cs_ddump_mask(D_READER, rbuff + 5, rbuff[4], "Decrypted payload"); 680 680 681 if (!cw_is_valid(rbuff+5 ,0)){ //sky cards report 90 00 = ok but send cw = 00 when channel not subscribed681 if (!cw_is_valid(rbuff+5)){ //sky cards report 90 00 = ok but send cw = 00 when channel not subscribed 682 682 cs_log("classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed " ); 683 683 return ERROR;
Note:
See TracChangeset
for help on using the changeset viewer.