Changeset 1158
- Timestamp:
- 01/10/10 00:28:51 (14 years ago)
- Location:
- branches/smartreader
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/smartreader/Makefile
r1144 r1158 346 346 DS_ST=mips-sgi-irix6.5-strip 347 347 348 cross-mipsel-router-linux-uclibc: cross-mipsel-router-linux-uclibc929349 348 ###################################################################### 350 349 # … … 378 377 @-$(MAKE) --no-print-directory \ 379 378 -f Maketype TYP=$(subst cross-,,$@) \ 380 OS_LIBS="-l m" \379 OS_LIBS="-lcrypto -lm" \ 381 380 OS_CULI="-lncurses" \ 382 381 OS_PTLI="-lpthread" \ -
branches/smartreader/globals.h
r1144 r1158 561 561 int waitforcards; 562 562 int preferlocalcards; 563 uchar gbox_pwd[8]; 564 uchar ignorefile[512]; 565 uchar cardfile[512]; 566 uchar gbxShareOnl[512]; 567 int maxdist; 568 int num_locals; 563 #ifdef CS_WITH_GBOX 564 uchar gbox_pwd[8]; 565 uchar ignorefile[512]; 566 uchar cardfile[512]; 567 uchar gbxShareOnl[512]; 568 int maxdist; 569 int num_locals; 569 570 unsigned long locals[CS_MAXLOCALS]; 571 #endif 570 572 //struct s_irdeto_quess *itab[0xff]; 571 573 #ifdef HAVE_DVBAPI -
branches/smartreader/oscam-config.c
r1127 r1158 29 29 TAG_CS357X, // camd 3.5x UDP 30 30 TAG_CS378X, // camd 3.5x TCP 31 #ifdef CS_WITH_GBOX 31 32 TAG_GBOX, // gbox 33 #endif 32 34 TAG_CCCAM, // cccam 33 35 TAG_DVBAPI … … 38 40 39 41 static char *cctag[]={"global", "monitor", "camd33", "camd35", 40 "newcamd", "radegast", "serial", "cs357x", "cs378x", "gbox", "cccam", "dvbapi", 42 "newcamd", "radegast", "serial", "cs357x", "cs378x", 43 #ifdef CS_WITH_GBOX 44 "gbox", 45 #endif 46 "cccam", "dvbapi", 41 47 #ifdef CS_ANTICASC 42 48 "anticasc", … … 501 507 } 502 508 509 #ifdef CS_WITH_GBOX 503 510 static void chk_t_gbox(char *token, char *value) 504 511 { … … 524 531 fprintf(stderr, "Warning: keyword '%s' in gbox section not recognized\n",token); 525 532 } 533 #endif 526 534 527 535 static void chk_t_cccam(char *token, char *value) … … 557 565 case TAG_SERIAL : chk_t_serial(token, value); break; 558 566 case TAG_CS378X : chk_t_camd35_tcp(token, value); break; 567 #ifdef CS_WITH_GBOX 559 568 case TAG_GBOX : chk_t_gbox(token, value); break; 569 #endif 560 570 case TAG_CCCAM : chk_t_cccam(token, value); break; 561 571 #ifdef HAVE_DVBAPI … … 1076 1086 return; 1077 1087 } 1088 #ifdef CS_WITH_GBOX 1078 1089 if (!strcmp(token, "password")) { strncpy((char *)rdr->gbox_pwd, (const char *)i2b(4, a2i(value, 4)), 4); return; } 1079 1090 if (!strcmp(token, "premium")) { rdr->gbox_prem=1; return; } 1091 #endif 1080 1092 if (!strcmp(token, "account")) 1081 1093 { -
branches/smartreader/oscam-simples.c
r1144 r1158 235 235 return ((b[0]<<16) | (b[1]<<8) | b[2]); 236 236 case 4: 237 return (( b[0]<<24) | (b[1]<<16) | (b[2]<<8) | b[3]);237 return (((b[0]<<24) | (b[1]<<16) | (b[2]<<8) | b[3]) & 0xffffffffL); 238 238 default: 239 239 cs_log("Error in b2i, n=%i",n);
Note:
See TracChangeset
for help on using the changeset viewer.