ctapi-1.1/0000755000000000000000000000000011346304344007343 5ustar ctapi-1.1/debian/0000755000000000000000000000000011346304373010567 5ustar ctapi-1.1/debian/compat0000644000000000000000000000000211346277310011765 0ustar 7 ctapi-1.1/debian/copyright0000644000000000000000000000072611346302204012516 0ustar This work was packaged for Debian by: Simon Richter on Fri, 12 Mar 2010 00:37:43 +0100 Upstream Author: Simon Richter License: This work, where subject to copyright law at all, has been placed into the public domain. The Debian packaging is: Copyright (C) 2010 Simon Richter and is licensed under the GPL version 3, which can be found in the file /usr/share/common-licenses/GPL-3. ctapi-1.1/debian/changelog0000644000000000000000000000017511346277310012444 0ustar ctapi (1.1) unstable; urgency=low * Initial Release. -- Simon Richter Fri, 12 Mar 2010 00:37:43 +0100 ctapi-1.1/debian/ctapi-dev.install0000644000000000000000000000003511346300376014030 0ustar ctapi.h /usr/include ctapi-1.1/debian/source/0000755000000000000000000000000011346300360012057 5ustar ctapi-1.1/debian/source/format0000644000000000000000000000001511346277310013276 0ustar 3.0 (native) ctapi-1.1/debian/control0000644000000000000000000000105111346302233012160 0ustar Source: ctapi Section: devel Priority: extra Maintainer: Simon Richter Build-Depends: debhelper (>= 7) Standards-Version: 3.8.4 Package: ctapi-dev Architecture: all Depends: ${misc:Depends} Replaces: libtowitoko-dev (<< 2.0.7-9), libctapimkt0-dev (<< 1.0.1-2) Description: Card Terminal (CT) API definition This package contains the definition for the CT-API, a standard for interfacing ISO/IEC 7816 compatible smartcards. . Unless you are writing drivers for a smartcard terminal, it is unlikely that you will need this package. ctapi-1.1/debian/rules0000755000000000000000000000013711346300351011640 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ ctapi-1.1/ctapi.h0000644000000000000000000000231511346304344010615 0ustar /* CT-API 1.1 Card Terminal API definition * * This file was written by Simon Richter . * * As this is an interface definition, it is the author's opinion that it * is not protected as a creative work. * * Public Domain fallback: If copyright protection extends to this file, it * is hereby placed in the public domain. */ #ifndef ctapi_h_ #define ctapi_h_ 1 #ifdef __cplusplus extern "C" { #endif #include int8_t CT_init( uint16_t logical_terminal_number, uint16_t physical_interface ); int8_t CT_data( uint16_t logical_terminal_number, uint8_t *destination_address, uint8_t *source_address, uint16_t command_length, uint8_t *command, uint16_t *response_length, uint8_t *response ); int8_t CT_close( uint16_t logical_terminal_number ); enum { OK = 0, ERR_INVALID = -1, ERR_CT = -8, ERR_TRANS = -10, ERR_MEMORY = -11, ERR_HOST = -127, ERR_HTSI = -128 }; enum { HOST = 0x02, REMOTE_HOST = 0x05 }; enum { ICC1 = 0x00, CT = 0x01, ICC2 = 0x02, ICC3 = 0x03, ICC4 = 0x04, ICC5 = 0x05, ICC6 = 0x06, ICC7 = 0x07, ICC8 = 0x08, ICC9 = 0x09, ICC10 = 0x0a, ICC11 = 0x0b, ICC12 = 0x0c, ICC13 = 0x0d, ICC14 = 0x0e }; #ifdef __cplusplus } #endif #endif