SASC-NG
DVBSoftCAM

newcamd.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <crypt.h>
#include <byteswap.h>
#include <vdr/thread.h>
#include "cc.h"
#include "misc.h"
#include "parse.h"
#include <openssl/des.h>

Go to the source code of this file.

Classes

class  cTripleDes
struct  CustomData
class  cCardClientNewCamd

Defines

#define CWS_NETMSGSIZE   272
#define USERLEN   32
#define PASSWDLEN   32
#define CWS_FIRSTCMDNO   0xe0

Enumerations

enum  net_msg_type_t {
  MSG_CLIENT_2_SERVER_LOGIN = CWS_FIRSTCMDNO, MSG_CLIENT_2_SERVER_LOGIN_ACK, MSG_CLIENT_2_SERVER_LOGIN_NAK, MSG_CARD_DATA_REQ,
  MSG_CARD_DATA, MSG_SERVER_2_CLIENT_NAME, MSG_SERVER_2_CLIENT_NAME_ACK, MSG_SERVER_2_CLIENT_NAME_NAK,
  MSG_SERVER_2_CLIENT_LOGIN, MSG_SERVER_2_CLIENT_LOGIN_ACK, MSG_SERVER_2_CLIENT_LOGIN_NAK, MSG_ADMIN,
  MSG_ADMIN_ACK, MSG_ADMIN_LOGIN, MSG_ADMIN_LOGIN_ACK, MSG_ADMIN_LOGIN_NAK,
  MSG_ADMIN_COMMAND, MSG_ADMIN_COMMAND_ACK, MSG_ADMIN_COMMAND_NAK
}
enum  comm_type_t { COMMTYPE_CLIENT, COMMTYPE_SERVER }

Functions

static cCardClientLinkReg
< cCardClientNewCamd > 
__ncd ("Newcamd")

Define Documentation

#define CWS_FIRSTCMDNO   0xe0

Definition at line 127 of file newcamd.c.

#define CWS_NETMSGSIZE   272
#define PASSWDLEN   32

Definition at line 126 of file newcamd.c.

#define USERLEN   32

Definition at line 125 of file newcamd.c.


Enumeration Type Documentation

Enumerator:
COMMTYPE_CLIENT 
COMMTYPE_SERVER 

Definition at line 151 of file newcamd.c.

Enumerator:
MSG_CLIENT_2_SERVER_LOGIN 
MSG_CLIENT_2_SERVER_LOGIN_ACK 
MSG_CLIENT_2_SERVER_LOGIN_NAK 
MSG_CARD_DATA_REQ 
MSG_CARD_DATA 
MSG_SERVER_2_CLIENT_NAME 
MSG_SERVER_2_CLIENT_NAME_ACK 
MSG_SERVER_2_CLIENT_NAME_NAK 
MSG_SERVER_2_CLIENT_LOGIN 
MSG_SERVER_2_CLIENT_LOGIN_ACK 
MSG_SERVER_2_CLIENT_LOGIN_NAK 
MSG_ADMIN 
MSG_ADMIN_ACK 
MSG_ADMIN_LOGIN 
MSG_ADMIN_LOGIN_ACK 
MSG_ADMIN_LOGIN_NAK 
MSG_ADMIN_COMMAND 
MSG_ADMIN_COMMAND_ACK 
MSG_ADMIN_COMMAND_NAK 

Definition at line 129 of file newcamd.c.


Function Documentation

static cCardClientLinkReg<cCardClientNewCamd> __ncd ( "Newcamd"  ) [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines