ctfile_be.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id: crypttoken.h 1113 2007-01-10 09:14:16Z martin $
00005     begin       : Wed Mar 16 2005
00006     copyright   : (C) 2005 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *          Please see toplevel file COPYING for license details           *
00011  ***************************************************************************/
00012 
00013 
00014 #ifndef GWEN_CRYPT_TOKEN_FILE_BE_H
00015 #define GWEN_CRYPT_TOKEN_FILE_BE_H
00016 
00017 
00018 #include <gwenhywfar/ct_be.h>
00019 
00020 
00021 
00022 
00023 typedef int GWENHYWFAR_CB 
00024   (*GWEN_CRYPT_TOKEN_FILE_READ_FN)(GWEN_CRYPT_TOKEN *ct, int fd, uint32_t gid);
00025 
00026 typedef int GWENHYWFAR_CB 
00027   (*GWEN_CRYPT_TOKEN_FILE_WRITE_FN)(GWEN_CRYPT_TOKEN *ct, int fd, int cre, uint32_t gid);
00028 
00029 
00030 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047 
00048 
00049 GWENHYWFAR_API
00050 GWEN_CRYPT_TOKEN *GWEN_Crypt_TokenFile_new(const char *typeName,
00051                                            const char *tokenName);
00052 
00053 GWENHYWFAR_API 
00054 GWEN_CRYPT_TOKEN_FILE_READ_FN GWEN_Crypt_TokenFile_SetReadFn(GWEN_CRYPT_TOKEN *ct,
00055                                                              GWEN_CRYPT_TOKEN_FILE_READ_FN f);
00056 GWENHYWFAR_API 
00057 GWEN_CRYPT_TOKEN_FILE_WRITE_FN GWEN_Crypt_TokenFile_SetWriteFn(GWEN_CRYPT_TOKEN *ct,
00058                                                                GWEN_CRYPT_TOKEN_FILE_WRITE_FN f);
00059 
00060 GWENHYWFAR_API 
00061 void GWEN_Crypt_TokenFile_AddContext(GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_CONTEXT *ctx);
00062 
00063 GWENHYWFAR_API 
00064 GWEN_CRYPT_TOKEN_CONTEXT *GWEN_Crypt_TokenFile_GetContext(GWEN_CRYPT_TOKEN *ct, int idx);
00065 
00066 
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070 
00071 
00072 #endif

Generated on Mon Jan 25 12:56:01 2010 for gwenhywfar by  doxygen 1.5.6