GNUnet  0.11.x
Data Structures | Macros | Functions | Variables
gnunet_reclaim_lib.h File Reference
#include "gnunet_util_lib.h"
Include dependency graph for gnunet_reclaim_lib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GNUNET_RECLAIM_Identifier
 A reclaim identifier FIXME maybe put this in a different namespace. More...
 
struct  GNUNET_RECLAIM_Attribute
 An attribute. More...
 
struct  GNUNET_RECLAIM_Attestation
 An attestation. More...
 
struct  GNUNET_RECLAIM_AttributeList
 A list of GNUNET_RECLAIM_Attribute structures. More...
 
struct  GNUNET_RECLAIM_AttributeListEntry
 
struct  GNUNET_RECLAIM_AttestationList
 A list of GNUNET_RECLAIM_Attestation structures. More...
 
struct  GNUNET_RECLAIM_AttestationListEntry
 

Macros

#define GNUNET_RECLAIM_ATTRIBUTE_TYPE_NONE   0
 No value attribute. More...
 
#define GNUNET_RECLAIM_ATTRIBUTE_TYPE_STRING   1
 String attribute. More...
 
#define GNUNET_RECLAIM_ATTESTATION_TYPE_NONE   10
 No value attestation. More...
 
#define GNUNET_RECLAIM_ATTESTATION_TYPE_JWT   11
 A JSON Web Token attestation. More...
 
#define GNUNET_RECLAIM_ID_LENGTH   (256 / 8)
 We want an ID to be a 256-bit symmetric key. More...
 
#define GNUNET_RECLAIM_id_is_equal(a, b)
 
#define GNUNET_RECLAIM_id_is_zero(a)
 
#define GNUNET_RECLAIM_id_generate(id)
 

Functions

struct GNUNET_RECLAIM_AttributeGNUNET_RECLAIM_attribute_new (const char *attr_name, const struct GNUNET_RECLAIM_Identifier *attestation, uint32_t type, const void *data, size_t data_size)
 Create a new attribute claim. More...
 
size_t GNUNET_RECLAIM_attribute_list_serialize_get_size (const struct GNUNET_RECLAIM_AttributeList *attrs)
 Get required size for serialization buffer. More...
 
void GNUNET_RECLAIM_attribute_list_destroy (struct GNUNET_RECLAIM_AttributeList *attrs)
 Destroy claim list. More...
 
void GNUNET_RECLAIM_attribute_list_add (struct GNUNET_RECLAIM_AttributeList *attrs, const char *attr_name, const struct GNUNET_RECLAIM_Identifier *attestation, uint32_t type, const void *data, size_t data_size)
 Add a new attribute to a claim list. More...
 
size_t GNUNET_RECLAIM_attribute_list_serialize (const struct GNUNET_RECLAIM_AttributeList *attrs, char *result)
 Serialize an attribute list. More...
 
struct GNUNET_RECLAIM_AttributeListGNUNET_RECLAIM_attribute_list_deserialize (const char *data, size_t data_size)
 Deserialize an attribute list. More...
 
size_t GNUNET_RECLAIM_attribute_serialize_get_size (const struct GNUNET_RECLAIM_Attribute *attr)
 Get required size for serialization buffer. More...
 
size_t GNUNET_RECLAIM_attribute_serialize (const struct GNUNET_RECLAIM_Attribute *attr, char *result)
 Serialize an attribute. More...
 
struct GNUNET_RECLAIM_AttributeGNUNET_RECLAIM_attribute_deserialize (const char *data, size_t data_size)
 Deserialize an attribute. More...
 
struct GNUNET_RECLAIM_AttributeListGNUNET_RECLAIM_attribute_list_dup (const struct GNUNET_RECLAIM_AttributeList *attrs)
 Make a (deep) copy of a claim list. More...
 
uint32_t GNUNET_RECLAIM_attribute_typename_to_number (const char *typename)
 Convert a type name to the corresponding number. More...
 
int GNUNET_RECLAIM_attribute_string_to_value (uint32_t type, const char *s, void **data, size_t *data_size)
 Convert human-readable version of a 'claim' of an attribute to the binary representation. More...
 
char * GNUNET_RECLAIM_attribute_value_to_string (uint32_t type, const void *data, size_t data_size)
 Convert the 'claim' of an attribute to a string. More...
 
const char * GNUNET_RECLAIM_attribute_number_to_typename (uint32_t type)
 Convert a type number to the corresponding type string. More...
 
size_t GNUNET_RECLAIM_attestation_list_serialize_get_size (const struct GNUNET_RECLAIM_AttestationList *attestations)
 Get required size for serialization buffer. More...
 
void GNUNET_RECLAIM_attestation_list_destroy (struct GNUNET_RECLAIM_AttestationList *attestations)
 Destroy claim list. More...
 
void GNUNET_RECLAIM_attestation_list_add (struct GNUNET_RECLAIM_AttestationList *attrs, const char *att_name, uint32_t type, const void *data, size_t data_size)
 Add a new attribute to a claim list. More...
 
size_t GNUNET_RECLAIM_attestation_list_serialize (const struct GNUNET_RECLAIM_AttestationList *attrs, char *result)
 Serialize an attribute list. More...
 
struct GNUNET_RECLAIM_AttestationListGNUNET_RECLAIM_attestation_list_deserialize (const char *data, size_t data_size)
 Deserialize an attribute list. More...
 
size_t GNUNET_RECLAIM_attestation_serialize_get_size (const struct GNUNET_RECLAIM_Attestation *attestation)
 Get required size for serialization buffer. More...
 
size_t GNUNET_RECLAIM_attestation_serialize (const struct GNUNET_RECLAIM_Attestation *attestation, char *result)
 Serialize an attestation. More...
 
struct GNUNET_RECLAIM_AttestationGNUNET_RECLAIM_attestation_deserialize (const char *data, size_t data_size)
 Deserialize an attestation. More...
 
struct GNUNET_RECLAIM_AttestationGNUNET_RECLAIM_attestation_new (const char *name, uint32_t type, const void *data, size_t data_size)
 Create a new attestation. More...
 
char * GNUNET_RECLAIM_attestation_value_to_string (uint32_t type, const void *data, size_t data_size)
 Convert the 'claim' of an attestation to a string. More...
 
int GNUNET_RECLAIM_attestation_string_to_value (uint32_t type, const char *s, void **data, size_t *data_size)
 Convert human-readable version of a 'claim' of an attestation to the binary representation. More...
 
const char * GNUNET_RECLAIM_attestation_number_to_typename (uint32_t type)
 Convert an attestation type number to the corresponding attestation type string. More...
 
uint32_t GNUNET_RECLAIM_attestation_typename_to_number (const char *typename)
 Convert an attestation type name to the corresponding number. More...
 
struct GNUNET_RECLAIM_AttributeListGNUNET_RECLAIM_attestation_get_attributes (const struct GNUNET_RECLAIM_Attestation *attest)
 Convert an attestation type name to the corresponding number. More...
 
char * GNUNET_RECLAIM_attestation_get_issuer (const struct GNUNET_RECLAIM_Attestation *attest)
 
int GNUNET_RECLAIM_attestation_get_expiration (const struct GNUNET_RECLAIM_Attestation *attest, struct GNUNET_TIME_Absolute *exp)
 

Variables

static const struct GNUNET_RECLAIM_Identifier GNUNET_RECLAIM_ID_ZERO
 

Detailed Description

Author
Martin Schanzenbach

Identity attribute definitions

Definition in file gnunet_reclaim_lib.h.