Changeset 1895
- Timestamp:
- 03/25/10 00:07:39 (13 years ago)
- Location:
- branches/modular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/modular/globals.h
r1892 r1895 753 753 uchar locals_done; 754 754 int btun; // mark er as betatunneled 755 int hops; // number of hops for CCCam756 755 757 756 #ifdef CS_WITH_GBOX -
branches/modular/module-cccam.c
r1882 r1895 626 626 pthread_mutex_unlock(&cc->ecm_busy); 627 627 } 628 er->hops = cc->cur_card->hop + 1; 628 629 629 return 0; 630 630 } … … 1128 1128 if (cc==NULL) { 1129 1129 cs_log("cccam: cannot allocate memory"); 1130 return -1;1130 cs_exit(0); 1131 1131 } 1132 1132 … … 1162 1162 cc_crypt(&cc->block[DECRYPT], buf, 20, DECRYPT); 1163 1163 cs_ddump(buf, 20, "cccam: hash:"); 1164 } else return -1; 1164 } else { 1165 cs_log("cccam:%d: receive failed errno: %d (%s)", __LINE__, errno, strerror(errno)); 1166 cs_exit(0); 1167 } 1165 1168 1166 1169 // receive username … … 1169 1172 cs_ddump(buf, 20, "cccam: username '%s':", buf); 1170 1173 strncpy(usr, (char *)buf, sizeof(usr)); 1171 } else return -1; 1174 } else { 1175 cs_log("cccam:%d: receive username failed errno: %d (%s)", __LINE__, errno, strerror(errno)); 1176 cs_exit(0); 1177 } 1172 1178 1173 1179 for (account=cfg->account; account; account=account->next) … … 1182 1188 cc_crypt(&cc->block[DECRYPT], buf, 6, DECRYPT); 1183 1189 cs_ddump(buf, 6, "cccam: pwd check '%s':", buf); 1184 } else return -1; 1190 } else { 1191 cs_log("cccam:%d: receive passwd failed errno: %d (%s)", __LINE__, errno, strerror(errno)); 1192 cs_exit(0); 1193 } 1185 1194 1186 1195 cs_auth_client(account, NULL); … … 1204 1213 cc_cmd_send(NULL, 0, MSG_CLI_DATA); 1205 1214 1206 if (cc_send_srv_data()<0) return -1; 1215 if (cc_send_srv_data()<0) { 1216 cs_log("cccam:%d: cc_send_srv_data() failed errno: %d (%s)", __LINE__, errno, strerror(errno)); 1217 cs_exit(0); 1218 } 1207 1219 1208 1220 is_server = 1; … … 1244 1256 //cc_auth_client(client[cs_idx].ip); 1245 1257 cc_srv_connect(); 1258 1259 1260 cs_exit(0); 1246 1261 } 1247 1262 -
branches/modular/module-dvbapi.c
r1892 r1895 1112 1112 ecmtxt = fopen("/tmp/ecm.info", "w"); 1113 1113 if(ecmtxt != NULL) { 1114 fprintf(ecmtxt, "caid 0x%04X\npid 0x%04X\nprov0x%06X\n", er->caid, er->pid, (uint) er->prid);1114 fprintf(ecmtxt, "caid: 0x%04X\npid: 0x%04X\nprov: 0x%06X\n", er->caid, er->pid, (uint) er->prid); 1115 1115 fprintf(ecmtxt, "reader: %s\n", reader[er->reader[0]].label); 1116 1116 if (reader[er->reader[0]].typ & R_IS_CASCADING)
Note:
See TracChangeset
for help on using the changeset viewer.