Guardtime KSI c SDK
Functions
tlv.h File Reference
#include "types.h"

Go to the source code of this file.

Functions

int KSI_TLV_new (KSI_CTX *ctx, unsigned tag, int isLenient, int isForward, KSI_TLV **tlv)
 
int KSI_TLV_fromString (KSI_CTX *ctx, unsigned tag, int isLenient, int isForward, char *str, KSI_TLV **tlv)
 
int KSI_TLV_parseBlob (KSI_CTX *ctx, const unsigned char *data, size_t data_length, KSI_TLV **tlv)
 
int KSI_TLV_parseBlob2 (KSI_CTX *ctx, unsigned char *data, size_t data_length, int ownMemory, KSI_TLV **tlv)
 
int KSI_TLV_getRawValue (KSI_TLV *tlv, const unsigned char **buf, size_t *len)
 
int KSI_TLV_getInteger (KSI_TLV *tlv, KSI_Integer **value)
 
int KSI_TLV_getUInt64Value (const KSI_TLV *tlv, KSI_uint64_t *val)
 
int KSI_TLV_getNestedList (KSI_TLV *tlv, KSI_LIST(KSI_TLV)**list)
 
void KSI_TLV_free (KSI_TLV *tlv)
 
int KSI_TLV_isNonCritical (const KSI_TLV *tlv)
 
int KSI_TLV_isForward (const KSI_TLV *tlv)
 
unsigned KSI_TLV_getTag (const KSI_TLV *tlv)
 
int KSI_TLV_serialize_ex (const KSI_TLV *tlv, unsigned char *buf, size_t buf_size, size_t *len)
 
int KSI_TLV_serialize (const KSI_TLV *tlv, unsigned char **buf, size_t *buf_len)
 
int KSI_TLV_serializePayload (const KSI_TLV *tlv, unsigned char *buf, size_t *len)
 
int KSI_TLV_replaceNestedTlv (KSI_TLV *parentTlv, KSI_TLV *oldTlv, KSI_TLV *newTlv)
 
int KSI_TLV_appendNestedTlv (KSI_TLV *target, KSI_TLV *tlv)
 
int KSI_TLV_writeBytes (const KSI_TLV *tlv, unsigned char *buf, size_t buf_size, size_t *buf_len, int opt)
 
char * KSI_TLV_toString (const KSI_TLV *tlv, char *buffer, size_t buffer_len)
 
int KSI_TLV_clone (const KSI_TLV *tlv, KSI_TLV **clone)
 
int KSI_TLV_setRawValue (KSI_TLV *tlv, const void *data, size_t data_len)
 
size_t KSI_TLV_getAbsoluteOffset (const KSI_TLV *tlv)
 
size_t KSI_TLV_getRelativeOffset (const KSI_TLV *tlv)
 
 KSI_DEFINE_GET_CTX (KSI_TLV)