/usr/include/libchipcard5/chipcard/card_imp.h is in libchipcard-dev 5.0.3beta-4ubuntu1.
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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 | /***************************************************************************
$RCSfile$
-------------------
cvs : $Id: card.h 163 2006-02-15 19:31:45Z aquamaniac $
begin : Mon Mar 01 2004
copyright : (C) 2004 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef CHIPCARD_CLIENT_CARD_IMP_H
#define CHIPCARD_CLIENT_CARD_IMP_H
/** @addtogroup chipcardc_card_cd
*/
/*@{*/
#include <chipcard/card.h>
#ifdef __cplusplus
extern "C" {
#endif
GWEN_LIST_FUNCTION_LIB_DEFS(LC_CARD, LC_Card, CHIPCARD_API)
/** @name Prototypes of Virtual Functions
*
*/
/*@{*/
typedef LC_CLIENT_RESULT CHIPCARD_CB (*LC_CARD_OPEN_FN)(LC_CARD *card);
typedef LC_CLIENT_RESULT CHIPCARD_CB (*LC_CARD_CLOSE_FN)(LC_CARD *card);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_GETPINSTATUS_FN)(LC_CARD *card,
unsigned int pid,
int *maxErrors,
int *currentErrors);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_GETINITIALPIN_FN)(LC_CARD *card,
int id,
unsigned char *buffer,
unsigned int maxLen,
unsigned int *pinLength);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOREADBINARY_FN)(LC_CARD *card,
uint32_t flags,
int offset,
int size,
GWEN_BUFFER *buf);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOWRITEBINARY_FN)(LC_CARD *card,
uint32_t flags,
int offset,
const char *ptr,
unsigned int size);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOUPDATEBINARY_FN)(LC_CARD *card,
uint32_t flags,
int offset,
const char *ptr,
unsigned int size);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOERASEBINARY_FN)(LC_CARD *card,
uint32_t flags,
int offset,
unsigned int size);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOREADRECORD_FN)(LC_CARD *card,
uint32_t flags,
int recNum,
GWEN_BUFFER *buf);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOWRITERECORD_FN)(LC_CARD *card,
uint32_t flags,
int recNum,
const char *ptr,
unsigned int size);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOAPPENDRECORD_FN)(LC_CARD *card,
uint32_t flags,
const char *ptr,
unsigned int size);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOUPDATERECORD_FN)(LC_CARD *card,
uint32_t flags,
int recNum,
const char *ptr,
unsigned int size);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOVERIFYPIN_FN)(LC_CARD *card,
uint32_t flags,
const LC_PININFO *pi,
const unsigned char *ptr,
unsigned int size,
int *triesLeft);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOMODIFYPIN_FN)(LC_CARD *card,
uint32_t flags,
const LC_PININFO *pi,
const unsigned char *oldptr,
unsigned int oldsize,
const unsigned char *newptr,
unsigned int newsize,
int *triesLeft);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOPERFORMVERIFICATION_FN)(LC_CARD *card,
uint32_t flags,
const LC_PININFO *pi,
int *triesLeft);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOPERFORMMODIFICATION_FN)(LC_CARD *card,
uint32_t flags,
const LC_PININFO *pi,
int *triesLeft);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOMANAGESE_FN)(LC_CARD *card,
int tmpl,
int kids, int kidp,
int ar);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOSIGN_FN)(LC_CARD *card,
const char *ptr,
unsigned int size,
GWEN_BUFFER *sigBuf);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOVERIFY_FN)(LC_CARD *card,
const char *dptr,
unsigned int dsize,
const char *sigptr,
unsigned int sigsize);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOENCIPHER_FN)(LC_CARD *card,
const char *ptr,
unsigned int size,
GWEN_BUFFER *codeBuf);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISODECIPHER_FN)(LC_CARD *card,
const char *ptr,
unsigned int size,
GWEN_BUFFER *codeBuf);
typedef LC_CLIENT_RESULT CHIPCARD_CB
(*LC_CARD_ISOINTERNALAUTH_FN)(LC_CARD *card,
int kid,
const unsigned char *ptr,
unsigned int size,
GWEN_BUFFER *rBuf);
/*@}*/
CHIPCARD_API
void LC_Card_SetReaderType(LC_CARD *cd, const char *s);
CHIPCARD_API
void LC_Card_SetDriverType(LC_CARD *cd, const char *s);
CHIPCARD_API
void LC_Card_ResetCardId(LC_CARD *cd);
CHIPCARD_API
int LC_Card_AddCardType(LC_CARD *cd, const char *s);
CHIPCARD_API
void LC_Card_SetLastResult(LC_CARD *cd,
const char *result,
const char *text,
int sw1, int sw2);
/** @name Setters for Virtual Functions
*
* Functions in this group set or get pointers for virtual functions and
* will only be used by inheriting classes.
*/
/*@{*/
CHIPCARD_API
LC_CARD_OPEN_FN LC_Card_GetOpenFn(const LC_CARD *card);
CHIPCARD_API
void LC_Card_SetOpenFn(LC_CARD *card, LC_CARD_OPEN_FN fn);
CHIPCARD_API
LC_CARD_CLOSE_FN LC_Card_GetCloseFn(const LC_CARD *card);
CHIPCARD_API
void LC_Card_SetCloseFn(LC_CARD *card, LC_CARD_CLOSE_FN fn);
CHIPCARD_API
LC_CARD_OPEN_FN LC_Card_GetOpenFn(const LC_CARD *card);
CHIPCARD_API
void LC_Card_SetOpenFn(LC_CARD *card, LC_CARD_OPEN_FN fn);
CHIPCARD_API
LC_CARD_CLOSE_FN LC_Card_GetCloseFn(const LC_CARD *card);
CHIPCARD_API
void LC_Card_SetCloseFn(LC_CARD *card, LC_CARD_CLOSE_FN fn);
CHIPCARD_API
void LC_Card_SetGetInitialPinFn(LC_CARD *card, LC_CARD_GETINITIALPIN_FN fn);
CHIPCARD_API
void LC_Card_SetGetPinStatusFn(LC_CARD *card, LC_CARD_GETPINSTATUS_FN fn);
CHIPCARD_API
void LC_Card_SetIsoReadBinaryFn(LC_CARD *card, LC_CARD_ISOREADBINARY_FN f);
CHIPCARD_API
void LC_Card_SetIsoWriteBinaryFn(LC_CARD *card, LC_CARD_ISOWRITEBINARY_FN f);
CHIPCARD_API
void LC_Card_SetIsoUpdateBinaryFn(LC_CARD *card, LC_CARD_ISOUPDATEBINARY_FN f);
CHIPCARD_API
void LC_Card_SetIsoEraseBinaryFn(LC_CARD *card, LC_CARD_ISOERASEBINARY_FN f);
CHIPCARD_API
void LC_Card_SetIsoReadRecordFn(LC_CARD *card, LC_CARD_ISOREADRECORD_FN f);
CHIPCARD_API
void LC_Card_SetIsoWriteRecordFn(LC_CARD *card, LC_CARD_ISOWRITERECORD_FN f);
CHIPCARD_API
void LC_Card_SetIsoUpdateRecordFn(LC_CARD *card, LC_CARD_ISOUPDATERECORD_FN f);
CHIPCARD_API
void LC_Card_SetIsoAppendRecordFn(LC_CARD *card, LC_CARD_ISOAPPENDRECORD_FN f);
CHIPCARD_API
void LC_Card_SetIsoVerifyPinFn(LC_CARD *card, LC_CARD_ISOVERIFYPIN_FN f);
CHIPCARD_API
void LC_Card_SetIsoModifyPinFn(LC_CARD *card, LC_CARD_ISOMODIFYPIN_FN f);
CHIPCARD_API
void LC_Card_SetIsoPerformVerificationFn(LC_CARD *card,
LC_CARD_ISOPERFORMVERIFICATION_FN f);
CHIPCARD_API
void LC_Card_SetIsoPerformModificationFn(LC_CARD *card,
LC_CARD_ISOPERFORMMODIFICATION_FN f);
CHIPCARD_API
void LC_Card_SetIsoManageSeFn(LC_CARD *card, LC_CARD_ISOMANAGESE_FN f);
CHIPCARD_API
void LC_Card_SetIsoSignFn(LC_CARD *card, LC_CARD_ISOSIGN_FN f);
CHIPCARD_API
void LC_Card_SetIsoVerifyFn(LC_CARD *card, LC_CARD_ISOVERIFY_FN f);
CHIPCARD_API
void LC_Card_SetIsoEncipherFn(LC_CARD *card, LC_CARD_ISOENCIPHER_FN f);
CHIPCARD_API
void LC_Card_SetIsoDecipherFn(LC_CARD *card, LC_CARD_ISODECIPHER_FN f);
CHIPCARD_API
void LC_Card_SetIsoInternalAuthFn(LC_CARD *card, LC_CARD_ISOINTERNALAUTH_FN f);
/*@}*/
/*@}*/
#ifdef __cplusplus
}
#endif
/*@}*/ /* addtogroup */
#endif /* CHIPCARD_CLIENT_CARD_IMP_H */
|