/usr/include/gwenhywfar4/gwenhywfar/ctfile_be.h is in libgwenhywfar60-dev 4.15.2beta-2build1.
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 | /***************************************************************************
begin : Wed Mar 16 2005
copyright : (C) 2005-2010 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef GWEN_CRYPT_TOKEN_FILE_BE_H
#define GWEN_CRYPT_TOKEN_FILE_BE_H
#include <gwenhywfar/ct_be.h>
typedef int GWENHYWFAR_CB
(*GWEN_CRYPT_TOKEN_FILE_READ_FN)(GWEN_CRYPT_TOKEN *ct, int fd, uint32_t gid);
typedef int GWENHYWFAR_CB
(*GWEN_CRYPT_TOKEN_FILE_WRITE_FN)(GWEN_CRYPT_TOKEN *ct, int fd, int cre, uint32_t gid);
/**
* Key ids: The left 16 bits contain the context index, the right 16 bits contain the
* key number:
* <ul>
* <li>xx01=localSignKey</li>
* <li>xx02=localCryptKey</li>
* <li>xx03=remoteSignKey</li>
* <li>xx04=remoteCryptKey</li>
* <li>xx05=localAuthKey</li>
* <li>xx06=remoteAuthKey</li>
* <li>xx07=tempLocalSignKey</li>
* </ul>
*/
#ifdef __cplusplus
extern "C" {
#endif
GWENHYWFAR_API
GWEN_CRYPT_TOKEN *GWEN_Crypt_TokenFile_new(const char *typeName,
const char *tokenName);
GWENHYWFAR_API
GWEN_CRYPT_TOKEN_FILE_READ_FN GWEN_Crypt_TokenFile_SetReadFn(GWEN_CRYPT_TOKEN *ct,
GWEN_CRYPT_TOKEN_FILE_READ_FN f);
GWENHYWFAR_API
GWEN_CRYPT_TOKEN_FILE_WRITE_FN GWEN_Crypt_TokenFile_SetWriteFn(GWEN_CRYPT_TOKEN *ct,
GWEN_CRYPT_TOKEN_FILE_WRITE_FN f);
GWENHYWFAR_API
void GWEN_Crypt_TokenFile_AddContext(GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_CONTEXT *ctx);
GWENHYWFAR_API
GWEN_CRYPT_TOKEN_CONTEXT *GWEN_Crypt_TokenFile_GetContext(GWEN_CRYPT_TOKEN *ct, int idx);
#ifdef __cplusplus
}
#endif
#endif
|