⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sc-seca.c

📁 这是一个LINUX环境的 VDR 插件源代码,可支持Irdeto, Seca, Viaccess, Nagra, Conax & Cryptoworks等CA系统的读卡、共享等操作。
💻 C
字号:
/* * Softcam plugin to VDR (C++) * * This code is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This code is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Or, point your browser to http://www.gnu.org/copyleft/gpl.html */#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"#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) { \                                 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); \                                 }#define L_SC        12#define L_SC_PROC   LCLASS(L_SC,L_SC_LASTDEF<<1)#define L_SC_ALL    LALL(L_SC_PROC)static const struct LogModule lm_sc = {  (LMOD_ENABLE|L_SC_ALL)&LOPT_MASK,  (LMOD_ENABLE|L_SC_DEFDEF)&LOPT_MASK,  "sc-seca",  { L_SC_DEFNAMES,"process" }  };ADD_MODULE(L_SC,lm_sc)static int blocker=0;static int ppv=false;// -- cSystemScSeca ---------------------------------------------------------------class cSystemScSeca : public cSystemScCore {public:  cSystemScSeca(void);  };cSystemScSeca::cSystemScSeca(void):cSystemScCore(SYSTEM_NAME,SYSTEM_PRI,SC_ID,"SC Seca"){  hasLogger=true;  needsDescrData=true;}// -- cSystemLinkScSeca --------------------------------------------------------static const tI18nPhrase Phrases[] = {  { "SC-Seca: EMM updates",    "SC-Seca: EMM updates",    "",    "",    "SC-Seca: EMM updates",    "",    "SC-Seca: Mise 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -