/usr/include/ctapimkt/ctapi.h is in libctapimkt1-dev 1.0.5~rc1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | /* ctapi-mkt
Copyright (C) Dr. Claudia Neumann
This program 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, or (at your option)
any later version.
This program 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 software; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
Contact: Dr. Claudia Neumann
Herderstr. 7
D - 26169 Friesoythe
dr. claudia.neumann@gmx.de
This is a CT API for MKT Version 1.0 for reading the german "Krankenversichertenkarte"
(KVK) und the german "elektronische Gesundheitskarte" (eGK) with card readers on
the serial port.
See documentations under http://www.kbv.de/ita/register_G.html and
http://www.gematik.de/upload/gematik_Qop_eGK_Spezifikation_Teil1_V1_1_0_Kommentare_4_1652.pdf
It works with:
Kernel > 2.6.8
tested on various card readers that are certified from the KBV with KVK,
eGK tested on Celectronic CardStar medic2.
Report bugs or comments to:
dr.claudia.neumann@gmx.de
Known Bugs:
none (hopefully) ;-)
*/
/* CT-API Errors */
#define OK 0
#define ERR_INVALID -1
#define ERR_CT -8
#define ERR_TRANS -10
#define ERR_MEMORY -11
#define ERR_HOST -127
#define ERR_HTSI -128
/* Prototypes */
char CT_init ( unsigned short ctn,
unsigned short pn);
char CT_data ( unsigned short ctn,
unsigned char * dad,
unsigned char * sad,
unsigned short lenc,
unsigned char * command,
unsigned short * lenr,
unsigned char * response );
char CT_close ( unsigned short ctn );
|