sighead.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     begin       : Sun Nov 30 2008
00003     copyright   : (C) 2008 by Martin Preuss
00004     email       : martin@libchipcard.de
00005 
00006  ***************************************************************************
00007  *          Please see toplevel file COPYING for license details           *
00008  ***************************************************************************/
00009 
00010 
00011 #ifndef GWEN_CRYPTMGR_SIGHEAD_H
00012 #define GWEN_CRYPTMGR_SIGHEAD_H
00013 
00014 #include <gwenhywfar/list1.h>
00015 #include <gwenhywfar/buffer.h>
00016 #include <gwenhywfar/gwentime.h>
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 
00023 typedef struct GWEN_SIGHEAD GWEN_SIGHEAD;
00024 GWEN_LIST_FUNCTION_LIB_DEFS(GWEN_SIGHEAD, GWEN_SigHead, GWENHYWFAR_API)
00025 
00026 
00027 GWENHYWFAR_API
00028 GWEN_SIGHEAD *GWEN_SigHead_new(void);
00029 
00030 GWENHYWFAR_API
00031 void GWEN_SigHead_free(GWEN_SIGHEAD *sh);
00032 
00033 GWENHYWFAR_API
00034 GWEN_SIGHEAD *GWEN_SigHead_fromBuffer(const uint8_t *p, uint32_t l);
00035 
00036 GWENHYWFAR_API
00037 int GWEN_SigHead_toBuffer(const GWEN_SIGHEAD *sh, GWEN_BUFFER *buf, uint8_t tagType);
00038 
00039 
00040 GWENHYWFAR_API
00041 const char *GWEN_SigHead_GetKeyName(const GWEN_SIGHEAD *sh);
00042 
00043 GWENHYWFAR_API
00044 void GWEN_SigHead_SetKeyName(GWEN_SIGHEAD *sh, const char *s);
00045 
00046 GWENHYWFAR_API
00047 int GWEN_SigHead_GetKeyNumber(const GWEN_SIGHEAD *sh);
00048 
00049 GWENHYWFAR_API
00050 void GWEN_SigHead_SetKeyNumber(GWEN_SIGHEAD *sh, int i);
00051 
00052 GWENHYWFAR_API
00053 int GWEN_SigHead_GetKeyVersion(const GWEN_SIGHEAD *sh);
00054 
00055 GWENHYWFAR_API
00056 void GWEN_SigHead_SetKeyVersion(GWEN_SIGHEAD *sh, int i);
00057 
00058 GWENHYWFAR_API
00059 const GWEN_TIME *GWEN_SigHead_GetDateTime(const GWEN_SIGHEAD *sh);
00060 
00061 GWENHYWFAR_API
00062 void GWEN_SigHead_SetDateTime(GWEN_SIGHEAD *sh, const GWEN_TIME *ti);
00063 
00064 GWENHYWFAR_API
00065 int GWEN_SigHead_GetSignatureProfile(const GWEN_SIGHEAD *sh);
00066 
00067 GWENHYWFAR_API
00068 void GWEN_SigHead_SetSignatureProfile(GWEN_SIGHEAD *sh, int i);
00069 
00070 GWENHYWFAR_API
00071 int GWEN_SigHead_GetSignatureNumber(const GWEN_SIGHEAD *sh);
00072 
00073 GWENHYWFAR_API
00074 void GWEN_SigHead_SetSignatureNumber(GWEN_SIGHEAD *sh, int i);
00075 
00076 
00077 #ifdef __cplusplus
00078 }
00079 #endif
00080 
00081 
00082 #endif
00083