Changeset 1895


Ignore:
Timestamp:
03/25/10 00:07:39 (13 years ago)
Author:
_network
Message:

modular: resync with trunk

Location:
branches/modular
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/modular/globals.h

    r1892 r1895  
    753753  uchar         locals_done;
    754754  int       btun; // mark er as betatunneled
    755   int       hops; // number of hops for CCCam
    756755
    757756#ifdef CS_WITH_GBOX
  • branches/modular/module-cccam.c

    r1882 r1895  
    626626      pthread_mutex_unlock(&cc->ecm_busy);
    627627  }
    628   er->hops = cc->cur_card->hop + 1;
     628
    629629  return 0;
    630630}
     
    11281128  if (cc==NULL) {
    11291129    cs_log("cccam: cannot allocate memory");
    1130     return -1;
     1130    cs_exit(0);
    11311131  }
    11321132
     
    11621162    cc_crypt(&cc->block[DECRYPT], buf, 20, DECRYPT);
    11631163    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  }
    11651168
    11661169  // receive username
     
    11691172    cs_ddump(buf, 20, "cccam: username '%s':", buf);
    11701173    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  }
    11721178
    11731179  for (account=cfg->account; account; account=account->next)
     
    11821188    cc_crypt(&cc->block[DECRYPT], buf, 6, DECRYPT);
    11831189    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  }
    11851194
    11861195  cs_auth_client(account, NULL);
     
    12041213  cc_cmd_send(NULL, 0, MSG_CLI_DATA);
    12051214
    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  }
    12071219
    12081220  is_server = 1;
     
    12441256  //cc_auth_client(client[cs_idx].ip);
    12451257  cc_srv_connect();
     1258
     1259 
     1260  cs_exit(0);
    12461261}
    12471262
  • branches/modular/module-dvbapi.c

    r1892 r1895  
    11121112            ecmtxt = fopen("/tmp/ecm.info", "w");
    11131113            if(ecmtxt != NULL) {
    1114                 fprintf(ecmtxt, "caid 0x%04X\npid 0x%04X\nprov 0x%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);
    11151115                fprintf(ecmtxt, "reader: %s\n", reader[er->reader[0]].label);
    11161116                if (reader[er->reader[0]].typ & R_IS_CASCADING)
Note: See TracChangeset for help on using the changeset viewer.