Changeset 1202
- Timestamp:
- 01/13/10 00:02:14 (11 years ago)
- Location:
- branches/smartreader
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/smartreader/Distribution/doc/man/oscam.server.5
r1092 r1202 220 220 .RE 221 221 .PP 222 \fBn3_rsakey\fP = \fBRSA key\fP222 \fBn3_rsakey\fP|\fBrsakey\fP = \fBRSA key\fP 223 223 .RS 3n 224 224 RSA key for Nagravision SCs 225 225 .RE 226 226 .PP 227 \fBn3_boxkey\fP = \fBbox key\fP227 \fBn3_boxkey\fP|\fBboxkey\fP = \fBbox key\fP 228 228 .RS 3n 229 229 box key for Nagravision SCs -
branches/smartreader/Distribution/doc/txt/oscam.server.txt
r1092 r1202 166 166 readnano = /var/oscam/write.emm 167 167 168 n3_rsakey = RSA key168 n3_rsakey|rsakey = RSA key 169 169 RSA key for Nagravision SCs 170 170 171 n3_boxkey = box key171 n3_boxkey|boxkey = box key 172 172 box key for Nagravision SCs 173 173 -
branches/smartreader/oscam-config.c
r1197 r1202 1136 1136 if (key_atob_l(value, rdr->rsa_mod, 128)) 1137 1137 { 1138 fprintf(stderr, "Configuration reader: Error in n3_rsakey\n");1138 fprintf(stderr, "Configuration reader: Error in rsakey\n"); 1139 1139 exit(1); 1140 1140 } … … 1154 1154 if (key_atob_l(value, rdr->nagra_boxkey, 16)) 1155 1155 { 1156 fprintf(stderr, "Configuration reader: Error in Nagra Boxkey\n"); 1157 exit(1); 1158 } 1159 return; 1160 } 1161 if (!strcmp(token, "tiger_ideakey")) 1162 { 1163 if (key_atob_l(value, rdr->nagra_boxkey, 32)) 1164 { 1165 fprintf(stderr, "Configuration reader: Error in Nagra Boxkey\n"); 1156 fprintf(stderr, "Configuration reader: Error in boxkey\n"); 1166 1157 exit(1); 1167 1158 } -
branches/smartreader/reader-irdeto.c
r1127 r1202 164 164 return(0); 165 165 nagra=0; 166 167 /* 168 * Check Nagra 169 */ 170 /*if ((!reader_cmd2icc(sc_GetROM, sizeof(sc_GetROM))) && (cta_res[cta_lr-2]==0x90)) 171 { 172 nagra=1; 173 if (cta_res[0]==0x90) 174 { 175 char *ptr; 176 cta_res[cta_res[1]+4]='\0'; 177 if( (ptr=strstr(cta_res+2, "ASP")) ) 178 { 179 sprintf(buf, ", rom=%c.%c%c", ptr[3], ptr[4], ptr[5]); 180 if( (ptr=strstr(cta_res+2, "Rev")) ) 181 sprintf(buf+10, "(%c%c%c)", ptr[3], ptr[4], ptr[5]); 182 } 183 } 184 } */ 166 167 if(reader[ridx].has_rsa) // we use rsa from config as camkey 168 { 169 cs_debug("[irdeto-reader] using camkey data from config"); 170 memcpy(&sc_GetCamKey383C[5], reader[ridx].rsa_mod, 0x40); 171 memcpy(sc_CamKey, reader[ridx].nagra_boxkey, 8); 172 cs_debug("[irdeto-reader] camkey: %s", cs_hexdump (0, sc_CamKey, 8)); 173 cs_debug("[irdeto-reader] camkey-data: %s", cs_hexdump (0, &sc_GetCamKey383C[5], 32)); 174 cs_debug("[irdeto-reader] camkey-data: %s", cs_hexdump (0, &sc_GetCamKey383C[37], 32)); 175 } 185 176 186 177 /* … … 247 238 248 239 cs_ptyp=D_DEVICE; 249 cs_debug(" set camkey for type=%d", camkey);240 cs_debug("[irdeto-reader] set camkey for type=%d", camkey); 250 241 cs_ptyp=cs_ptyp_orig; 251 242 -
branches/smartreader/reader-nagra.c
r1197 r1202 591 591 is_tiger=1; 592 592 } 593 else if ( !memcmp(atr+4, "IRDETO", 6))593 else if ((!memcmp(atr+4, "IRDETO", 6)) && ((atr[14]==0x03) && (atr[15]==0x84) && (atr[16]==0x55))) 594 594 { 595 595 cs_ri_log("[nagra-reader] detect Irdeto tunneled nagra card");
Note:
See TracChangeset
for help on using the changeset viewer.