Changeset 1992
- Timestamp:
- 04/07/10 10:09:28 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reader-cryptoworks.c
r1987 r1992 486 486 } 487 487 488 //incoming via camd3.5x 489 //ep->type=emm[4]; 488 /* FIXME: Dont know how to handle camd3 cryptoworks emms correct */ 490 489 case 0x8F: 491 default: 490 ep->type = UNKNOWN; 491 cs_debug_mask(D_EMM, "CRYPTOWORKS EMM: UNKNOWN 0x8F via camd3"); 492 return TRUE; 493 494 /* FIXME: Seems to be that all other EMM types are rejected by the card */ 495 default: 492 496 ep->type = UNKNOWN; 493 497 cs_debug_mask(D_EMM, "CRYPTOWORKS EMM: UNKNOWN"); 494 return TRUE;498 return FALSE; // skip emm 495 499 } 496 500 } … … 556 560 uchar *emm=ep->emm; 557 561 558 /* this original562 /* FIXME: this is the original code how to deal with camd3 EMM's 559 563 if ((emm[0]==0x8f) && (emm[3]==0xa4)) // emm via camd3.5x 560 564 { … … 566 570 */ 567 571 568 //cs_log("[cryptoworks-reader] EMM Dump:..: %s",cs_hexdump(1, emm, emm[2]));569 572 switch(ep->type) 570 573 { … … 573 576 if(emm[3]==0xA4) 574 577 { 575 //cs_log("[cryptoworks-reader] EMM Dump: CMD: %s", cs_hexdump(1, emm+3, 5));576 //cs_log("[cryptoworks-reader] EMM Dump: DATA: %s",cs_hexdump(1, emm+8, emm[7]));577 578 write_cmd(emm+3, emm+3+CMD_LEN); 578 579 rc=((cta_res[0]==0x90)&&(cta_res[1]==0x00)); … … 583 584 case GLOBAL: 584 585 insEMM_GA[4]=ep->emm[2]-2; 585 //cs_log("[cryptoworks-reader] EMM Dump: CMD: %s", cs_hexdump(1, insEMM_GA, 5));586 //cs_log("[cryptoworks-reader] EMM Dump: DATA: %s",cs_hexdump(1, emm+5, insEMM_GA[4]));587 //cs_log("[cryptoworks-reader] EMM Dump: IF: %02X == %02X",emm[7],(insEMM_GA[4]-3));588 589 586 if(emm[7]==insEMM_GA[4]-3) 590 587 { … … 597 594 case SHARED: 598 595 insEMM_SA[4]=ep->emm[2]-6; 599 //cs_log("[cryptoworks-reader] EMM Dump: CMD: %s", cs_hexdump(1, insEMM_SA, 5));600 //cs_log("[cryptoworks-reader] EMM Dump: DATA: %s",cs_hexdump(1, emm+9, insEMM_SA[4]));601 //cs_log("[cryptoworks-reader] EMM Dump: IF: %02X == %02X",emm[11],(insEMM_SA[4]-3));602 603 596 if(emm[11]==insEMM_SA[4]-3) 604 597 { … … 611 604 case UNIQUE: 612 605 insEMM_UA[4]=ep->emm[2]-7; 613 //cs_log("[cryptoworks-reader] EMM Dump: CMD: %s", cs_hexdump(1, insEMM_UA, 5));614 //cs_log("[cryptoworks-reader] EMM Dump: DATA: %s",cs_hexdump(1, emm+10, insEMM_UA[4]));615 //cs_log("[cryptoworks-reader] EMM Dump: IF: %02X == %02X",emm[12],(insEMM_UA[4]-3));616 617 606 if(emm[12]==insEMM_UA[4]-3) 618 607 {
Note:
See TracChangeset
for help on using the changeset viewer.