SASC
DVBSoftCAM

sc-seca.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "system-common.h"
#include "smartcard.h"
#include "data.h"
#include "misc.h"
#include "opts.h"
#include "parse.h"
#include "log-sc.h"
#include "version.h"

Go to the source code of this file.

Classes

class  cSystemScSeca
class  cSystemLinkScSeca
class  cProviderScSeca
struct  SecaProvInfo
struct  SecaChannelInfo
class  cSmartCardSeca
class  cSmartCardLinkSeca

Defines

#define SYSTEM_SECA   0x0100
#define SYSTEM_NAME   "SC-Seca"
#define SYSTEM_PRI   -5
#define SYSTEM_CAN_HANDLE(x)   ((x)==SYSTEM_SECA)
#define SC_NAME   "Seca"
#define SC_ID   MAKE_SC_ID('S','e','c','a')
#define SECADATE(buff, len, odate)
#define L_SC   12
#define L_SC_PROC   LCLASS(L_SC,L_SC_LASTDEF<<1)
#define L_SC_ALL   LALL(L_SC_PROC)

Functions

 SCAPIVERSTAG ()

Variables

static struct LogModule lm_sc
static int blocker = 0
static const char * block []
static cSystemLinkScSeca staticInit
static struct StatusMsg msgs []
static struct CardConfig cardCfg
static cSmartCardLinkSeca staticScInit

Define Documentation

#define L_SC   12

Definition at line 52 of file sc-seca.c.

#define L_SC_ALL   LALL(L_SC_PROC)

Definition at line 54 of file sc-seca.c.

#define L_SC_PROC   LCLASS(L_SC,L_SC_LASTDEF<<1)

Definition at line 53 of file sc-seca.c.

Referenced by cSmartCardSeca::Decode(), and cSmartCardSeca::Update().

#define SC_ID   MAKE_SC_ID('S','e','c','a')

Definition at line 42 of file sc-seca.c.

Referenced by cSystemLinkScSeca::CanHandle().

#define SC_NAME   "Seca"

Definition at line 41 of file sc-seca.c.

Referenced by cSmartCardSeca::Init().

#define SECADATE (   buff,
  len,
  odate 
)
Value:
{ \
                                 const unsigned char *dd=(odate); \
                                 snprintf(buff,len,"%04d/%02d/%02d", \
                                   ((dd[0]&0xFE)>>1)+1990, \
                                   ((dd[0]&0x01)<<3) + ((dd[1]&0xE0)>>5), \
                                   dd[1]&0x1F); \
                                 }

Definition at line 44 of file sc-seca.c.

#define SYSTEM_CAN_HANDLE (   x)    ((x)==SYSTEM_SECA)

Definition at line 39 of file sc-seca.c.

Referenced by cSystemLinkScSeca::CanHandle().

#define SYSTEM_NAME   "SC-Seca"

Definition at line 37 of file sc-seca.c.

Referenced by cSystemLinkScSeca::cSystemLinkScSeca().

#define SYSTEM_PRI   -5

Definition at line 38 of file sc-seca.c.

#define SYSTEM_SECA   0x0100

Definition at line 35 of file sc-seca.c.


Function Documentation

SCAPIVERSTAG ( )

Variable Documentation

const char* block[] [static]
Initial value:
 {
  trNOOP("allow ALL"),
  trNOOP("block UNIQUE"),
  trNOOP("block SHARED"),
  trNOOP("block ALL")
  }

Definition at line 82 of file sc-seca.c.

Referenced by cSystemLinkScSeca::cSystemLinkScSeca(), and cSmartCardNagra::Init().

int blocker = 0 [static]

Definition at line 64 of file sc-seca.c.

Referenced by cSystemLinkScSeca::cSystemLinkScSeca(), and cSmartCardSeca::Update().

struct CardConfig cardCfg [static]
Initial value:
 {
  SM_8E2,2000,300
  }

Definition at line 174 of file sc-seca.c.

struct LogModule lm_sc [static]
Initial value:

Definition at line 56 of file sc-seca.c.

struct StatusMsg msgs[] [static]
Initial value:
 {
  
  { { 0x90,0x00 }, "Instruction executed without errors", true },
  { { 0x90,0x02 }, "Signature failed", false },
  { { 0x90,0x27 }, "Decoding the preview (non-error)", true },
  { { 0x93,0x02 }, "No access, check your subscription", false },
  { { 0x96,0x00 }, "Chain of nonvalid entrance or null event or all the nanos process, none decoding", false },
  
  { { 0x90,0x09 }, "Card update was not meant for this card", false },
  { { 0x90,0x19 }, "Card update successfull, PPUA updated", true },
  { { 0x97,0x00 }, "Card update was successful", true },
  { { 0x97,0x40 }, "Card update was successful", true },
  { { 0x97,0x50 }, "Card update was successful", true },
  { { 0x97,0x78 }, "Card update was not necessary", false },
  { { 0x97,0xe0 }, "EEPROM update was not necessary", false },
  
  { { 0xFF,0xFF }, 0, false }
  }

Definition at line 155 of file sc-seca.c.

Definition at line 96 of file sc-seca.c.

Definition at line 344 of file sc-seca.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines