Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

chipcard.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: chipcard.h.in,v $
00003                              -------------------
00004     cvs         : $Id: chipcard.h.in,v 1.14 2003/04/24 01:43:27 aquamaniac Exp $
00005     begin       : Tue Aug 28 2001
00006     copyright   : (C) 2001 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00024  *   MA  02111-1307  USA                                                   *
00025  *                                                                         *
00026  ***************************************************************************/
00027 
00028 /*
00029   Changes
00030  */
00031 
00032 #ifndef CHIPCARD_H
00033 #define CHIPCARD_H
00034 
00035 /* setup DLL imports/exports for Windoze */
00036 #ifdef __declspec
00037 # if BUILDING_CHIPCARD_DLL
00038 #  define CHIPCARD_API __declspec (dllexport)
00039 # else /* Not BUILDING_CHIPCARD_DLL */
00040 #  define CHIPCARD_API __declspec (dllimport)
00041 # endif /* Not BUILDING_CHIPCARD_DLL */
00042 #else
00043 # define CHIPCARD_API
00044 #endif
00045 
00046 
00047 /* define if LibChipCard uses encryption */
00048 #ifndef CT_USE_ENCRYPTION
00049 #define CT_USE_ENCRYPTION
00050 #endif
00051 
00052 /* provide PC/SC stuff */
00053 #ifndef WINSCARD_LIB
00054 # define WINSCARD_LIB "libpcsclite.so.0"
00055 #endif
00056 
00057 
00058 /* openSSL includes */
00059 #ifdef CT_USE_ENCRYPTION
00060 /* FIXME: This is needed for GCC 3.2, because unistd.h and openssl/des.h have
00061  * different declarations concerning the exceptions to be thrown
00062  * without this you can not compile libchipcard on RedHat 8 systems.
00063  */
00064 # define PERL5
00065 # include <openssl/des.h>
00066 # undef PERL5
00067 #endif
00068 
00069 /* define configuration files */
00070 //#define CHIPCARDC_CFGFILE "/etc/libchipcard/chipcardc.conf"
00071 #define CHIPCARDC_CFGFILE "/etc/libchipcard/chipcardc.conf"
00072 #define CHIPCARDD_CFGFILE "/etc/libchipcard/chipcardd.conf"
00073 #define CHIPCARD_COMMANDS "/usr/share/libchipcard/commands"
00074 #define CHIPCARD_DRIVERS "/usr/share/libchipcard/drivers"
00075 
00076 #define CHIPCARDD_LOGDIR "/var/log"
00077 #define CHIPCARDD_LOGFILE "chipcardd.log"
00078 
00079 /* include libchipcard stuff */
00080 #include <ctversion.h>
00081 #include <chipcard/libchipcard.h>
00082 #include <chameleon/logger.h>
00083 #ifdef __cplusplus
00084 # include <chipcard/cterror.h>
00085 # include <chipcard/ctpointer.h>
00086 # include <chipcard/cttlv.h>
00087 # include <chipcard/ctmisc.h>
00088 # include <chipcard/ctcommand.h>
00089 
00090 # include <chipcard/ctcardtrader.h>
00091 # include <chipcard/ctcard.h>
00092 # include <chipcard/ctmemorycard.h>
00093 # include <chipcard/ctprocessorcard.h>
00094 # include <chipcard/ctkvkcard.h>
00095 # include <chipcard/hbcicard.h>
00096 # include <chipcard/rsacard.h>
00097 # include <chipcard/ctgeldkarte.h>
00098 #endif /* __cplusplus */
00099 
00100 #endif /* CHIPCARD_H */
00101 
00102 

Generated on Mon Jan 5 20:56:27 2004 for libchipcard by doxygen 1.3.4