📄 sctrc.h
字号:
/*-------------------------------------------------------+-----*/
/* | GMD */
/* SYSTEM STAMOD - Version 2.0 +-----*/
/* */
/*-------------------------------------------------------------*/
/* */
/* PACKAGE SCTINT VERSION 2.0 */
/* DATE November 1991 */
/* BY Levona Eckstein*/
/* */
/* FILENAME */
/* sctrc.h */
/* */
/* DESCRIPTION */
/* This file contains all returncodes from the t1-modul, */
/* SCT-interface-modules and the smartcard */
/*-------------------------------------------------------------*/
/* Returncodes from the sctinterface - Procedure */#define S_NOERR 0 /* no error */#define S_WAIT 1 /* SCT waiting */#define S_KEYREPL 2 /* Key in SCT replaced */#define S_SIGOK 3 /* Signatur correct, but Key too*/ /* short */#define S_PINOFF 4 /* PIN-CHECK off 90 01 */#define S_PINON 5 /* PIN-CHECK on */#define S_ERR -1 /* error (errornumber in sct_errno *//* Errors from the transmission - module */#define EREAD 1 /* Read error */#define EWRITE 2 /* Write error */#define EEDCERR 3 /* EDC - Error */#define EMEMO 4 /* Memory error */#define EOPEN 5 /* Open error */#define ECLOSE 6 /* Close error */#define EBWTERR 7 /* BWT - Timeout */#define ECWTERR 8 /* CWT - Timeout error */#define EINVLEN 9 /* Invalid length */#define ETPDULEN 10 /* TPDU-Length error */#define EINVALIDPORT 11 /* Not available port */#define ESYSCALL 12 /* Error from system call */#define EPROTRESYNCH 13 /* Protocol has been resynchronized. and communication can be started again with new protocol parameter state. */#define ESCTRESET 14/* Smart card terminal should be reset communication can be started again with new protocol parameter state. */#define ESYNTAX 15 /* Block format error *//* Errors from the SmartCard - Terminal *//*---------------------------------------------------------------------*//* SW1(41)=Parameter not correct or inconsistent *//*---------------------------------------------------------------------*/#define EINVCLASS 20 /* wrong CLASS 41 00*/#define EINVINS 21 /* wrong INS 41 01*/#define EINVKID 22 /* invalid KID 41 02*/#define EINVALGID 23 /* invalid algorithm identifier41 03*/#define EOPMODE 24 /* Operation Mode not allowed 41 04*/#define EPARMISSED 25 /* parameter in body missing 41 05*/#define EINVPAR 26 /* parameter in body invalid 41 06*/#define EDATALEN 27 /* incorrect datalength 41 07*/#define EUSERIN 28 /* user input incorrect 41 08*/#define EP1P2INC 29 /* P1 - P2 incorrect 41 09*/#define EDATL2INC 30 /* data length leve 2 incorrect 41 0A*/#define ECOMCOUNT 31 /* communication counter incorrect 41 0B*//*---------------------------------------------------------------------*//* SW1(42)=key access error *//*---------------------------------------------------------------------*/#define EKEYUNKNOWN 32 /* Key unknown 42 00*/#define EKEYALGINCON 33 /* KEY and ALGID inconsistent 42 01*/#define EKEYNOTREPL 34 /* Key not replaceable 42 02*/#define EKEYINFO 35 /* incorrect Key-Information at */ /* keycard 42 03*//*---------------------------------------------------------------------*//* SW1(43)=Parameter- or Dataerror *//*---------------------------------------------------------------------*/#define EDUMMY 36 /* RFU 43 00*/#define ESCCOM 37 /* SC-Command not allowed 43 01*/#define EDECLEN 38 /* incorrect length of ciphertext43 02*/#define EINVSIG 39 /* invalid signature 43 03*/#define EKEYLENINV 40 /* Keylength invalid 43 04*/#define ESCTNOMEM 41 /* no memory available 43 05*/#define EAUTH 42 /* Authentication failed 43 06*/#define ESCTRES 43 /* reset of SCT not successful 43 07*/#define EEXECDEN 44 /* execution denied 43 08*/#define ESERVNOTAVAIL 45 /* service not available 43 09*/#define ESECMESSKEY 46 /* secure messaging key undefined43 0A*/#define EAUTHKEY 47 /* authentication key undefined 43 0B*//*---------------------------------------------------------------------*//* SW1(44)=Communication-error with smartcard *//*---------------------------------------------------------------------*/#define ENOCARD 48 /* no smartcard 44 00*/#define ERESET 49 /* reset of SC not successful 44 01*/#define ESCREMOVED 50 /* SC removed 44 02*/#define ESCTIMEOUT 51 /* Timeout - no response from44 03*/ /* SC */#define EUSERBREAK 52 /* break from user 44 04*/#define EUSTIMEOUT 53 /* Timeout - no response from44 05*/ /* user *//*---------------------------------------------------------------------*//* SW1(45)=internal address-error *//*---------------------------------------------------------------------*/#define ESCTADDR 54 /* internal address-error 45 00*//* Errors from the Smartcard *//*---------------------------------------------------------------------*//* CLASS = Application independent error *//*---------------------------------------------------------------------*//* SW1 = 6x and 90 03 */#define EDATAINC_CLPEN 59 /* DATA_INCONSISTENCY 90 03 */ /* CLOSE_PENDING_LEVEL */ /* NO_DATA_FOUND */ #define ECLASS 60 /* INVALID_CLASS 6E 00 */#define ESCIN 61 /* INVALID_INS 6D 00 */#define EFCBUPDATE 62 /* FCB_UPDATE_ERROR 6F 00 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -