Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef GWEN_CRYPT_TOKEN_FILE_BE_H
00012 #define GWEN_CRYPT_TOKEN_FILE_BE_H
00013
00014
00015 #include <gwenhywfar/ct_be.h>
00016
00017
00018
00019
00020 typedef int GWENHYWFAR_CB
00021 (*GWEN_CRYPT_TOKEN_FILE_READ_FN)(GWEN_CRYPT_TOKEN *ct, int fd, uint32_t gid);
00022
00023 typedef int GWENHYWFAR_CB
00024 (*GWEN_CRYPT_TOKEN_FILE_WRITE_FN)(GWEN_CRYPT_TOKEN *ct, int fd, int cre, uint32_t gid);
00025
00026
00027
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045
00046
00047 GWENHYWFAR_API
00048 GWEN_CRYPT_TOKEN *GWEN_Crypt_TokenFile_new(const char *typeName,
00049 const char *tokenName);
00050
00051 GWENHYWFAR_API
00052 GWEN_CRYPT_TOKEN_FILE_READ_FN GWEN_Crypt_TokenFile_SetReadFn(GWEN_CRYPT_TOKEN *ct,
00053 GWEN_CRYPT_TOKEN_FILE_READ_FN f);
00054 GWENHYWFAR_API
00055 GWEN_CRYPT_TOKEN_FILE_WRITE_FN GWEN_Crypt_TokenFile_SetWriteFn(GWEN_CRYPT_TOKEN *ct,
00056 GWEN_CRYPT_TOKEN_FILE_WRITE_FN f);
00057
00058 GWENHYWFAR_API
00059 void GWEN_Crypt_TokenFile_AddContext(GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_CONTEXT *ctx);
00060
00061 GWENHYWFAR_API
00062 GWEN_CRYPT_TOKEN_CONTEXT *GWEN_Crypt_TokenFile_GetContext(GWEN_CRYPT_TOKEN *ct, int idx);
00063
00064
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068
00069
00070 #endif