sighead.h
Go to the documentation of this file.
/***************************************************************************
begin : Sun Nov 30 2008
copyright : (C) 2008 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef GWEN_CRYPTMGR_SIGHEAD_H
#define GWEN_CRYPTMGR_SIGHEAD_H
#include <gwenhywfar/list1.h>
#include <gwenhywfar/buffer.h>
#include <gwenhywfar/gwentime.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct GWEN_SIGHEAD GWEN_SIGHEAD;
GWEN_LIST_FUNCTION_LIB_DEFS(GWEN_SIGHEAD, GWEN_SigHead, GWENHYWFAR_API)
GWENHYWFAR_API
GWEN_SIGHEAD *GWEN_SigHead_new(void);
GWENHYWFAR_API
void GWEN_SigHead_free(GWEN_SIGHEAD *sh);
GWENHYWFAR_API
GWEN_SIGHEAD *GWEN_SigHead_fromBuffer(const uint8_t *p, uint32_t l);
GWENHYWFAR_API
int GWEN_SigHead_toBuffer(const GWEN_SIGHEAD *sh, GWEN_BUFFER *buf, uint8_t tagType);
GWENHYWFAR_API
const char *GWEN_SigHead_GetKeyName(const GWEN_SIGHEAD *sh);
GWENHYWFAR_API
void GWEN_SigHead_SetKeyName(GWEN_SIGHEAD *sh, const char *s);
GWENHYWFAR_API
int GWEN_SigHead_GetKeyNumber(const GWEN_SIGHEAD *sh);
GWENHYWFAR_API
void GWEN_SigHead_SetKeyNumber(GWEN_SIGHEAD *sh, int i);
GWENHYWFAR_API
int GWEN_SigHead_GetKeyVersion(const GWEN_SIGHEAD *sh);
GWENHYWFAR_API
void GWEN_SigHead_SetKeyVersion(GWEN_SIGHEAD *sh, int i);
GWENHYWFAR_API
const GWEN_TIME *GWEN_SigHead_GetDateTime(const GWEN_SIGHEAD *sh);
GWENHYWFAR_API
void GWEN_SigHead_SetDateTime(GWEN_SIGHEAD *sh, const GWEN_TIME *ti);
GWENHYWFAR_API
int GWEN_SigHead_GetSignatureProfile(const GWEN_SIGHEAD *sh);
GWENHYWFAR_API
void GWEN_SigHead_SetSignatureProfile(GWEN_SIGHEAD *sh, int i);
GWENHYWFAR_API
int GWEN_SigHead_GetSignatureNumber(const GWEN_SIGHEAD *sh);
GWENHYWFAR_API
void GWEN_SigHead_SetSignatureNumber(GWEN_SIGHEAD *sh, int i);
#ifdef __cplusplus
}
#endif
#endif
buffer.h
GWEN_BUFFER
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition buffer.h:38
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition gwenhywfarapi.h:67
gwentime.h
GWEN_TIME
struct GWEN_TIME GWEN_TIME
Definition gwentime.h:43
list1.h
GWEN_LIST_FUNCTION_LIB_DEFS
#define GWEN_LIST_FUNCTION_LIB_DEFS(t, pr, decl)
Definition list1.h:349
GWEN_SigHead_GetKeyNumber
GWENHYWFAR_API int GWEN_SigHead_GetKeyNumber(const GWEN_SIGHEAD *sh)
GWEN_SIGHEAD
struct GWEN_SIGHEAD GWEN_SIGHEAD
Definition sighead.h:23
GWEN_SigHead_GetSignatureNumber
GWENHYWFAR_API int GWEN_SigHead_GetSignatureNumber(const GWEN_SIGHEAD *sh)
GWEN_SigHead_SetDateTime
GWENHYWFAR_API void GWEN_SigHead_SetDateTime(GWEN_SIGHEAD *sh, const GWEN_TIME *ti)
GWEN_SigHead_GetKeyVersion
GWENHYWFAR_API int GWEN_SigHead_GetKeyVersion(const GWEN_SIGHEAD *sh)
GWEN_SigHead_SetKeyName
GWENHYWFAR_API void GWEN_SigHead_SetKeyName(GWEN_SIGHEAD *sh, const char *s)
GWEN_SigHead_GetSignatureProfile
GWENHYWFAR_API int GWEN_SigHead_GetSignatureProfile(const GWEN_SIGHEAD *sh)
GWEN_SigHead_toBuffer
GWENHYWFAR_API int GWEN_SigHead_toBuffer(const GWEN_SIGHEAD *sh, GWEN_BUFFER *buf, uint8_t tagType)
GWEN_SigHead_SetKeyVersion
GWENHYWFAR_API void GWEN_SigHead_SetKeyVersion(GWEN_SIGHEAD *sh, int i)
GWEN_SigHead_GetKeyName
GWENHYWFAR_API const char * GWEN_SigHead_GetKeyName(const GWEN_SIGHEAD *sh)
GWEN_SigHead_GetDateTime
GWENHYWFAR_API const GWEN_TIME * GWEN_SigHead_GetDateTime(const GWEN_SIGHEAD *sh)
GWEN_SigHead_fromBuffer
GWENHYWFAR_API GWEN_SIGHEAD * GWEN_SigHead_fromBuffer(const uint8_t *p, uint32_t l)
GWEN_SigHead_SetSignatureProfile
GWENHYWFAR_API void GWEN_SigHead_SetSignatureProfile(GWEN_SIGHEAD *sh, int i)
GWEN_SigHead_SetSignatureNumber
GWENHYWFAR_API void GWEN_SigHead_SetSignatureNumber(GWEN_SIGHEAD *sh, int i)
GWEN_SigHead_SetKeyNumber
GWENHYWFAR_API void GWEN_SigHead_SetKeyNumber(GWEN_SIGHEAD *sh, int i)
GWEN_SigHead_free
GWENHYWFAR_API void GWEN_SigHead_free(GWEN_SIGHEAD *sh)
GWEN_SigHead_new
GWENHYWFAR_API GWEN_SIGHEAD * GWEN_SigHead_new(void)