gwenhywfar 5.11.2beta
sighead.h
Go to the documentation of this file.
1/***************************************************************************
2 begin : Sun Nov 30 2008
3 copyright : (C) 2008 by Martin Preuss
4 email : martin@libchipcard.de
5
6 ***************************************************************************
7 * Please see toplevel file COPYING for license details *
8 ***************************************************************************/
9
10
11#ifndef GWEN_CRYPTMGR_SIGHEAD_H
12#define GWEN_CRYPTMGR_SIGHEAD_H
13
14#include <gwenhywfar/list1.h>
15#include <gwenhywfar/buffer.h>
16#include <gwenhywfar/gwentime.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22
25
26
29
32
34GWEN_SIGHEAD *GWEN_SigHead_fromBuffer(const uint8_t *p, uint32_t l);
35
37int GWEN_SigHead_toBuffer(const GWEN_SIGHEAD *sh, GWEN_BUFFER *buf, uint8_t tagType);
38
39
42
44void GWEN_SigHead_SetKeyName(GWEN_SIGHEAD *sh, const char *s);
45
48
51
54
57
60
63
66
69
72
75
76
77#ifdef __cplusplus
78}
79#endif
80
81
82#endif
83
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition buffer.h:38
#define GWENHYWFAR_API
struct GWEN_TIME GWEN_TIME
Definition gwentime.h:43
#define GWEN_LIST_FUNCTION_LIB_DEFS(t, pr, decl)
Definition list1.h:349
GWENHYWFAR_API int GWEN_SigHead_GetKeyNumber(const GWEN_SIGHEAD *sh)
struct GWEN_SIGHEAD GWEN_SIGHEAD
Definition sighead.h:23
GWENHYWFAR_API int GWEN_SigHead_GetSignatureNumber(const GWEN_SIGHEAD *sh)
GWENHYWFAR_API void GWEN_SigHead_SetDateTime(GWEN_SIGHEAD *sh, const GWEN_TIME *ti)
GWENHYWFAR_API int GWEN_SigHead_GetKeyVersion(const GWEN_SIGHEAD *sh)
GWENHYWFAR_API void GWEN_SigHead_SetKeyName(GWEN_SIGHEAD *sh, const char *s)
GWENHYWFAR_API int GWEN_SigHead_GetSignatureProfile(const GWEN_SIGHEAD *sh)
GWENHYWFAR_API int GWEN_SigHead_toBuffer(const GWEN_SIGHEAD *sh, GWEN_BUFFER *buf, uint8_t tagType)
GWENHYWFAR_API void GWEN_SigHead_SetKeyVersion(GWEN_SIGHEAD *sh, int i)
GWENHYWFAR_API const char * GWEN_SigHead_GetKeyName(const GWEN_SIGHEAD *sh)
GWENHYWFAR_API const GWEN_TIME * GWEN_SigHead_GetDateTime(const GWEN_SIGHEAD *sh)
GWENHYWFAR_API GWEN_SIGHEAD * GWEN_SigHead_fromBuffer(const uint8_t *p, uint32_t l)
GWENHYWFAR_API void GWEN_SigHead_SetSignatureProfile(GWEN_SIGHEAD *sh, int i)
GWENHYWFAR_API void GWEN_SigHead_SetSignatureNumber(GWEN_SIGHEAD *sh, int i)
GWENHYWFAR_API void GWEN_SigHead_SetKeyNumber(GWEN_SIGHEAD *sh, int i)
GWENHYWFAR_API void GWEN_SigHead_free(GWEN_SIGHEAD *sh)
GWENHYWFAR_API GWEN_SIGHEAD * GWEN_SigHead_new(void)