SASC-NG
DVBSoftCAM

sc-viaccess.c File Reference

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

Go to the source code of this file.

Classes

class  cSystemScViaccess
class  cSystemLinkScViaccess
class  cSmartCardDataViaccess
class  cProviderScViaccess
class  cSmartCardViaccess
class  cSmartCardLinkViaccess

Defines

#define SYSTEM_VIACCESS   0x0500
#define SYSTEM_NAME   "SC-Viaccess"
#define SYSTEM_PRI   -5
#define SYSTEM_CAN_HANDLE(x)   ((x)==SYSTEM_VIACCESS)
#define SC_NAME   "Viaccess"
#define SC_ID   MAKE_SC_ID('V','i','a','s')
#define L_SC   13
#define L_SC_ALL   LALL(L_SC_LASTDEF)

Enumerations

enum  eDataType {
  dtPIN, dtIPK, dtUCPK, dtPIN,
  dtPIN, dtAES, dtBoxId, dtSeed
}

Functions

 SCAPIVERSTAG ()

Variables

static struct LogModule lm_sc
static int disableParental = 0
static cSystemLinkScViaccess staticInit
static struct StatusMsg msgs []
static struct CardConfig cardCfg
static cSmartCardLinkViaccess staticScInit

Define Documentation

#define L_SC   13

Definition at line 46 of file sc-viaccess.c.

#define L_SC_ALL   LALL(L_SC_LASTDEF)

Definition at line 47 of file sc-viaccess.c.

#define SC_ID   MAKE_SC_ID('V','i','a','s')

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

Referenced by cSystemLinkScViaccess::CanHandle().

#define SC_NAME   "Viaccess"

Definition at line 43 of file sc-viaccess.c.

Referenced by cSmartCardViaccess::Init().

#define SYSTEM_CAN_HANDLE (   x)    ((x)==SYSTEM_VIACCESS)

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

Referenced by cSystemLinkScViaccess::CanHandle().

#define SYSTEM_NAME   "SC-Viaccess"

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

Referenced by cSystemLinkScViaccess::cSystemLinkScViaccess().

#define SYSTEM_PRI   -5

Definition at line 40 of file sc-viaccess.c.

#define SYSTEM_VIACCESS   0x0500

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


Enumeration Type Documentation

enum eDataType
Enumerator:
dtPIN 
dtIPK 
dtUCPK 
dtPIN 
dtPIN 
dtAES 
dtBoxId 
dtSeed 

Definition at line 114 of file sc-viaccess.c.

{ dtPIN, dtAES };

Function Documentation

SCAPIVERSTAG ( )

Variable Documentation

struct CardConfig cardCfg [static]
Initial value:
 {
  SM_8O2,500,300
  }

Definition at line 223 of file sc-viaccess.c.

int disableParental = 0 [static]
struct LogModule lm_sc [static]
Initial value:

Definition at line 49 of file sc-viaccess.c.

struct StatusMsg msgs[] [static]
Initial value:
 {
  { { 0x6b,0x00 }, "Instruction not supported", false },
  { { 0x6d,0x00 }, "Instruction not supported", false },
  { { 0x90,0x00 }, "Instruction executed without errors", true },
  { { 0x90,0x08 }, "Instruction executed without errors", true },
  { { 0xFF,0xFF }, 0, false }
  }

Definition at line 215 of file sc-viaccess.c.

Definition at line 92 of file sc-viaccess.c.

Definition at line 571 of file sc-viaccess.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines