| 1 |
/*
|
| 2 |
ccid_ifdhandler.h: non-generic ifdhandler functions
|
| 3 |
Copyright (C) 2004 Ludovic Rousseau
|
| 4 |
|
| 5 |
This library is free software; you can redistribute it and/or
|
| 6 |
modify it under the terms of the GNU Lesser General Public
|
| 7 |
License as published by the Free Software Foundation; either
|
| 8 |
version 2.1 of the License, or (at your option) any later version.
|
| 9 |
|
| 10 |
This library is distributed in the hope that it will be useful,
|
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 13 |
Lesser General Public License for more details.
|
| 14 |
|
| 15 |
You should have received a copy of the GNU Lesser General Public License
|
| 16 |
along with this library; if not, write to the Free Software Foundation,
|
| 17 |
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
| 18 |
*/
|
| 19 |
|
| 20 |
/*
|
| 21 |
* $Id$
|
| 22 |
*/
|
| 23 |
|
| 24 |
#ifndef _ccid_ifd_handler_h_
|
| 25 |
#define _ccid_ifd_handler_h_
|
| 26 |
|
| 27 |
#define IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE SCARD_CTL_CODE(1)
|
| 28 |
|
| 29 |
#define CLASS2_IOCTL_MAGIC 0x330000
|
| 30 |
#define IOCTL_FEATURE_VERIFY_PIN_DIRECT \
|
| 31 |
SCARD_CTL_CODE(FEATURE_VERIFY_PIN_DIRECT + CLASS2_IOCTL_MAGIC)
|
| 32 |
#define IOCTL_FEATURE_MODIFY_PIN_DIRECT \
|
| 33 |
SCARD_CTL_CODE(FEATURE_MODIFY_PIN_DIRECT + CLASS2_IOCTL_MAGIC)
|
| 34 |
|
| 35 |
#define DRIVER_OPTION_CCID_EXCHANGE_AUTHORIZED 1
|
| 36 |
#define DRIVER_OPTION_GEMPC_TWIN_KEY_APDU 2
|
| 37 |
#define DRIVER_OPTION_USE_BOGUS_FIRMWARE 4
|
| 38 |
#define DRIVER_OPTION_RESET_ON_CLOSE 8
|
| 39 |
|
| 40 |
extern int DriverOptions;
|
| 41 |
|
| 42 |
/*
|
| 43 |
* Maximum number of CCID readers supported simultaneously
|
| 44 |
*
|
| 45 |
* The maximum number of readers is also limited in pcsc-lite (16 by default)
|
| 46 |
* see the definition of PCSCLITE_MAX_READERS_CONTEXTS in src/PCSC/pcsclite.h
|
| 47 |
*/
|
| 48 |
#define CCID_DRIVER_MAX_READERS 16
|
| 49 |
|
| 50 |
/*
|
| 51 |
* CCID driver specific functions
|
| 52 |
*/
|
| 53 |
CcidDesc *get_ccid_slot(unsigned int reader_index);
|
| 54 |
|
| 55 |
#endif
|
| 56 |
|