libchipcard 5.1.6
tlv.h
Go to the documentation of this file.
1/***************************************************************************
2 begin : Sun Jun 13 2004
3 copyright : (C) 2004-2010 by Martin Preuss
4 email : martin@libchipcard.de
5
6 ***************************************************************************
7 * Please see toplevel file COPYING for license details *
8 ***************************************************************************/
9
10
11#ifndef CHIPCARD_CLIENT_TLV_H
12#define CHIPCARD_CLIENT_TLV_H
13
14#include <gwenhywfar/buffer.h>
15#include <gwenhywfar/misc.h>
16#include <chipcard/chipcard.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22typedef struct LC_TLV LC_TLV;
23
24GWEN_LIST_FUNCTION_LIB_DEFS(LC_TLV, LC_TLV, CHIPCARD_API)
25
26
31
33LC_TLV *LC_TLV_fromBuffer(GWEN_BUFFER *mbuf, int isBerTlv);
34
36int LC_TLV_IsBerTlv(const LC_TLV *tlv);
38unsigned int LC_TLV_GetTagType(const LC_TLV *tlv);
40unsigned int LC_TLV_GetTagLength(const LC_TLV *tlv);
42const void *LC_TLV_GetTagData(const LC_TLV *tlv);
43
47unsigned int LC_TLV_GetClass(const LC_TLV *tlv);
49unsigned int LC_TLV_GetTagSize(const LC_TLV *tlv);
50
51
52#ifdef __cplusplus
53}
54#endif
55
56
57#endif /* CHIPCARD_CLIENT_TLV_H */
58
#define CHIPCARD_API
Definition chipcard.h:50
CHIPCARD_API int LC_TLV_IsContructed(const LC_TLV *tlv)
CHIPCARD_API unsigned int LC_TLV_GetTagType(const LC_TLV *tlv)
CHIPCARD_API unsigned int LC_TLV_GetTagSize(const LC_TLV *tlv)
CHIPCARD_API unsigned int LC_TLV_GetClass(const LC_TLV *tlv)
CHIPCARD_API const void * LC_TLV_GetTagData(const LC_TLV *tlv)
CHIPCARD_API int LC_TLV_IsBerTlv(const LC_TLV *tlv)
struct LC_TLV LC_TLV
Definition tlv.h:22
CHIPCARD_API unsigned int LC_TLV_GetTagLength(const LC_TLV *tlv)
CHIPCARD_API void LC_TLV_free(LC_TLV *tlv)
CHIPCARD_API LC_TLV * LC_TLV_fromBuffer(GWEN_BUFFER *mbuf, int isBerTlv)
CHIPCARD_API LC_TLV * LC_TLV_new()