eID middleware |

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# eidlibdefines.h

Go to the documentation of this file.

    00001 /* ****************************************************************************
    00002  * eID Middleware Project.
    00003  * Copyright (C) 2008-2009 FedICT.
    00004  *
    00005  * This is free software; you can redistribute it and/or modify it
    00006  * under the terms of the GNU Lesser General Public License version
    00007  * 3.0 as published by the Free Software Foundation.
    00008  *
    00009  * This software is distributed in the hope that it will be useful,
    00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    00012  * Lesser General Public License for more details.
    00013  *
    00014  * You should have received a copy of the GNU Lesser General Public
    00015  * License along with this software; if not, see
    00016  * http://www.gnu.org/licenses/.
    00017 **************************************************************************** */
    00018 #ifndef __EIDLIB_DEFINES_H__
    00019 #define __EIDLIB_DEFINES_H__
    00020
    00021 #ifndef SWIG
    00022         #ifdef WIN32
    00023                         #ifdef EIDMW_EIDLIB_WRAPPER
    00024                                 #define PTEIDSDK_API
    00025                         #elif EIDMW_EIDLIB_EXPORTS
    00026                                 #define PTEIDSDK_API  __declspec(dllexport)
    00027                         #else
    00028                                 #define PTEIDSDK_API  __declspec(dllimport)
    00029                         #endif
    00030         #else
    00031                 #define PTEIDSDK_API
    00032         #endif
    00033
    00034         #define NOEXPORT_PTEIDSDK
    00035 #endif
    00036
    00037 namespace eIDMW
    00038 {
    00039
    00040 enum PTEID_CardType
    00041 {
    00042         PTEID_CARDTYPE_UNKNOWN=0,        /**< Unknown card */
    00043         PTEID_CARDTYPE_EID,                      /**< Normal eid card */
    00044         PTEID_CARDTYPE_KIDS,                     /**< Kids eid card */
    00045         PTEID_CARDTYPE_FOREIGNER,        /**< Foreigner eid card */
    00046         PTEID_CARDTYPE_SIS                       /**< Sis card */
    00047 };
    00048
    00049 enum PTEID_DocumentType
    00050 {
    00051         PTEID_DOCTYPE_FULL=0,            /**< Full document : usefull for XML/CSV/TLV export */
    00052         PTEID_DOCTYPE_ID,                        /**< ID document : usefull to get value by field */
    00053         PTEID_DOCTYPE_ADDRESS,           /**< Address document : usefull to get value by field */
    00054         PTEID_DOCTYPE_SOD,                       /**< sod document (if available) */
    00055         PTEID_DOCTYPE_INFO,                      /**< info on the card (if available) */
    00056         PTEID_DOCTYPE_PINS,                      /**< pins containert (if available) */
    00057         PTEID_DOCTYPE_CERTIFICATES       /**< certificates containert (if available) */
    00058 };
    00059
    00060 enum PTEID_RawDataType
    00061 {
    00062         PTEID_RAWDATA_ID=0,
    00063         PTEID_RAWDATA_ID_SIG,
    00064         PTEID_RAWDATA_TRACE,
    00065         PTEID_RAWDATA_ADDR,
    00066         PTEID_RAWDATA_ADDR_SIG,
    00067         PTEID_RAWDATA_SOD,
    00068         PTEID_RAWDATA_CARD_INFO,
    00069         PTEID_RAWDATA_TOKEN_INFO,
    00070         PTEID_RAWDATA_CHALLENGE,
    00071         PTEID_RAWDATA_RESPONSE,
    00072         PTEID_RAWDATA_PERSO_DATA
    00073 };
    00074
    00075 enum PTEID_PinUsage
    00076 {
    00077         PTEID_PIN_USG_UNKNOWN,
    00078         PTEID_PIN_USG_AUTH,
    00079         PTEID_PIN_USG_SIGN,
    00080         PTEID_PIN_USG_ADDRESS,
    00081 };
    00082
    00083 enum PTEID_ValidationProcess
    00084 {
    00085         PTEID_VALIDATION_PROCESS_NONE=0,
    00086         PTEID_VALIDATION_PROCESS_CRL,
    00087         PTEID_VALIDATION_PROCESS_OCSP
    00088 };
    00089
    00090 enum PTEID_ValidationLevel
    00091 {
    00092         PTEID_VALIDATION_LEVEL_NONE=0,
    00093         PTEID_VALIDATION_LEVEL_OPTIONAL,
    00094         PTEID_VALIDATION_LEVEL_MANDATORY
    00095 };
    00096
    00097 enum PTEID_CertifStatus
    00098 {
    00099         PTEID_CERTIF_STATUS_UNKNOWN=0,           /**< Validity unknown */
    00100         PTEID_CERTIF_STATUS_REVOKED,             /**< Revoked certificate */
    00101         PTEID_CERTIF_STATUS_TEST,                /**< Test certificate */
    00102         PTEID_CERTIF_STATUS_DATE,                /**< Certificate no more valid */
    00103         PTEID_CERTIF_STATUS_CONNECT,             /**< Connection problem */
    00104         PTEID_CERTIF_STATUS_ISSUER,              /**< An issuer is missing in the chain */
    00105         PTEID_CERTIF_STATUS_ERROR,               /**< Error during validation */
    00106         PTEID_CERTIF_STATUS_VALID,               /**< Valid certificate */
    00107         PTEID_CERTIF_STATUS_VALID_CRL,           /**< Valid certificate through CRL process */
    00108         PTEID_CERTIF_STATUS_VALID_OCSP,          /**< Valid certificate through OCSP process */
    00109         PTEID_CERTIF_STATUS_OCSP_NOT_CHECKED     /**< OCSP was not performed */
    00110 };
    00111
    00112 enum PTEID_CertifType
    00113 {
    00114         PTEID_CERTIF_TYPE_UNKNOWN,                       /**< UNKNOWN certificate */
    00115         PTEID_CERTIF_TYPE_ROOT,                          /**< Root certificate */
    00116         PTEID_CERTIF_TYPE_CA,                            /**< CA certificate */
    00117         PTEID_CERTIF_TYPE_AUTHENTICATION,        /**< Authentication certificate */
    00118         PTEID_CERTIF_TYPE_SIGNATURE                      /**< Signature certificate */
    00119 };
    00120
    00121 enum PTEID_CrlStatus
    00122 {
    00123         PTEID_CRL_STATUS_UNKNOWN,                /**< Validity unknown */
    00124         PTEID_CRL_STATUS_VALID,                  /**< Valid Crl */
    00125         PTEID_CRL_STATUS_CONNECT,                /**< Connection problem */
    00126         PTEID_CRL_STATUS_ERROR                   /**< Error during validation */
    00127 };
    00128
    00129 enum PTEID_HashAlgo {
    00130         PTEID_ALGO_MD5,      /**< 16-byte hash */
    00131         PTEID_ALGO_SHA1,     /**< 20-byte hash */
    00132 };
    00133
    00134 enum PTEID_FileType
    00135 {
    00136         PTEID_FILETYPE_UNKNOWN=0,
    00137         PTEID_FILETYPE_TLV,
    00138         PTEID_FILETYPE_XML,
    00139         PTEID_FILETYPE_CSV
    00140 };
    00141
    00142 enum PTEID_Param
    00143 {
    00144         //GENERAL
    00145         PTEID_PARAM_GENERAL_INSTALLDIR,          //string, directory of the basic eid software; �c:/Program Files/pteid/�
    00146         PTEID_PARAM_GENERAL_INSTALL_PRO_DIR,             //string, directory of the pro eid software; �c:/Program Files/pteid/�
    00147         PTEID_PARAM_GENERAL_INSTALL_SDK_DIR,             //string, directory of the sdk eid software; �c:/Program Files/pteid/�
    00148         PTEID_PARAM_GENERAL_CACHEDIR,            //string, cache directory for card-file;
    00149         PTEID_PARAM_GENERAL_LANGUAGE,            //string, user language: fr, nl, en, de, �
    00150
    00151         //LOGGING
    00152         PTEID_PARAM_LOGGING_DIRNAME,                     //string, location of the log-file; $home/pteid/ Full path with volume name.
    00153         PTEID_PARAM_LOGGING_PREFIX,                      //string, prefix of the log files
    00154         PTEID_PARAM_LOGGING_FILENUMBER,          //number, Maximum number of log-files; 3
    00155         PTEID_PARAM_LOGGING_FILESIZE,            //number, Maximum number of log-files; 3
    00156         PTEID_PARAM_LOGGING_LEVEL,                       //string, Specify what should be logged; critical, error, warning, info or debug
    00157         PTEID_PARAM_LOGGING_GROUP,                       //number; 0=no (default), 1=yes (create on log file by module)
    00158
    00159         //CRL
    00160         PTEID_PARAM_CRL_SERVDOWNLOADNR,          //number
    00161         PTEID_PARAM_CRL_TIMEOUT,                         //number, timeout in seconds
    00162         PTEID_PARAM_CRL_CACHEDIR,                        //string
    00163         PTEID_PARAM_CRL_CACHEFILE,                       //string        �$common/crl/
    00164         PTEID_PARAM_CRL_LOCKFILE,                        //string
    00165
    00166         //CERTIFIACTE VALIDATION
    00167         PTEID_PARAM_CERTVALID_ALLOWTESTC,        //number; 0=no, 1=yes
    00168         PTEID_PARAM_CERTVALID_CRL,                       //number; 0=no, 1=optional, 2=always
    00169         PTEID_PARAM_CERTVALID_OCSP,                      //number; 0=no, 1=optional, 2=always
    00170
    00171         //CERTIFICATE CACHE
    00172         PTEID_PARAM_CERTCACHE_CACHEFILE,         //string;
    00173         PTEID_PARAM_CERTCACHE_LINENUMB,          //number
    00174         PTEID_PARAM_CERTCACHE_VALIDITY,          //number
    00175         PTEID_PARAM_CERTCACHE_WAITDELAY,         //number
    00176
    00177         //PROXY
    00178         PTEID_PARAM_PROXY_HOST,                          //string;
    00179         PTEID_PARAM_PROXY_PORT,                          //number
    00180         PTEID_PARAM_PROXY_PACFILE,                       //string
    00181
    00182         //SECURITY
    00183         PTEID_PARAM_SECURITY_SINGLESIGNON,       //number; 0=no, 1=yes; If yes, the PIN is requested by the driver and asked only once with multiple applications.
    00184
    00185         //GUITOOL
    00186         PTEID_PARAM_GUITOOL_STARTWIN,            //number; 0=no(default), 1=yes
    00187         PTEID_PARAM_GUITOOL_STARTMINI,           //number; 0=no(default), 1=yes
    00188         PTEID_PARAM_GUITOOL_SHOWPIC,                     //number; 0=no(default), 1=yes
    00189         PTEID_PARAM_GUITOOL_SHOWTBAR,            //number; 0=no, 1=yes
    00190         PTEID_PARAM_GUITOOL_VIRTUALKBD,          //number; 0=no, 1=yes
    00191         PTEID_PARAM_GUITOOL_AUTOCARDREAD,        //number; 0=no, 1=yes(default)
    00192         PTEID_PARAM_GUITOOL_CARDREADNUMB,        //number; -1(not specified), 0-10
    00193         PTEID_PARAM_GUITOOL_REGCERTIF,           //number; 0=no, 1=yes(default)
    00194         PTEID_PARAM_GUITOOL_REMOVECERTIF,        //number; 0=no, 1=yes(default)
    00195         PTEID_PARAM_GUITOOL_FILESAVE,            //string; path to directory where to save eid/xml/csv file
    00196
    00197         //XSIGN
    00198         PTEID_PARAM_XSIGN_TSAURL,                        //string;
    00199         PTEID_PARAM_XSIGN_ONLINE,                        //number
    00200         PTEID_PARAM_XSIGN_WORKINGDIR,            //string;
    00201         PTEID_PARAM_XSIGN_TIMEOUT,                       //number
    00202
    00203         //GUITOOL
    00204         PTEID_PARAM_GUITOOL_SHOWNOTIFICATION,//number; 0=no(default), 1=yes
    00205
    00206         //PROXY
    00207         PTEID_PARAM_PROXY_CONNECT_TIMEOUT,       //number
    00208
    00209 };
    00210
    00211 enum PTEID_LogLevel
    00212 {
    00213     PTEID_LOG_LEVEL_CRITICAL,
    00214     PTEID_LOG_LEVEL_ERROR,
    00215     PTEID_LOG_LEVEL_WARNING,
    00216     PTEID_LOG_LEVEL_INFO,
    00217     PTEID_LOG_LEVEL_DEBUG
    00218 };
    00219
    00220 }
    00221
    00222 #endif //__EIDLIBDEFINES_H__
    00223