Changeset 3975
- Timestamp:
- 11/24/10 12:46:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r3973 r3975 1321 1321 1322 1322 int check_extended_mode(struct s_client *cl, char *msg) { 1323 //Extended mode: if PARTNER String is ending with [ EXT], extended mode is activated1323 //Extended mode: if PARTNER String is ending with [PARAM], extended mode is activated 1324 1324 //For future compatibilty the syntax should be compatible with 1325 1325 //[PARAM1,PARAM2...PARAMn] … … 1327 1327 // EXT: Extended ECM Mode: Multiple ECMs could be send and received 1328 1328 // ECMs are numbered, Flag (byte[0] is the index 1329 // 1330 // SID: Exchange of good sids/bad sids activated (like cccam 2.2.x) 1331 // card exchange command MSG_NEW_CARD_SIDINFO instead MSG_NEW_CARD is used 1332 // 1329 1333 1330 1334 struct cc_data *cc = cl->cc; … … 1336 1340 cc->extended_mode = 1; 1337 1341 cs_log("%s extended ECM mode", getprefix()); 1342 has_param = 1; 1343 } 1344 else if (p && strncmp(p, "SID", 3)==0) { 1345 cc->cccam220 = 1; 1346 cs_log("%s extra SID mode", getprefix()); 1338 1347 has_param = 1; 1339 1348 } … … 1662 1671 }*/ 1663 1672 1673 void addParam(char *param, char *value) 1674 { 1675 if (strlen(param) == 1) 1676 strcat(param, value); 1677 else { 1678 strcat(param, ","); 1679 strcat(param, value); 1680 } 1681 } 1682 1664 1683 int cc_parse_msg(struct s_client *cl, uint8 *buf, int l) { 1665 1684 cs_debug_mask(D_FUT, "cc_parse_msg in %d", buf[1]); … … 1712 1731 if (cc->is_oscam_cccam) { 1713 1732 sprintf((char*) buf, 1714 "PARTNER: OSCam v%s, build #%s (%s) [EXT ]", CS_VERSION,1733 "PARTNER: OSCam v%s, build #%s (%s) [EXT,SID]", CS_VERSION, 1715 1734 CS_SVN_VERSION, CS_OSTYPE); 1716 1735 cc_cmd_send(cl, buf, strlen((char*) buf) + 1, MSG_CW_NOK1); … … 1869 1888 strcpy(param, " ["); 1870 1889 if (cc->extended_mode) 1871 strcat(param, "EXT"); 1890 addParam(param, "EXT"); 1891 if (cc->cccam220) 1892 addParam(param, "SID"); 1872 1893 strcat(param, "]"); 1873 1894 }
Note:
See TracChangeset
for help on using the changeset viewer.