86 *data_size = strlen (s);
137 (0 != strcasecmp (dns_typename,
name_map[i].name)))
GNUNET_GNSRECORD_TypenameToNumberFunction typename_to_number
Typename to number.
GNUNET_GNSRECORD_ValueToStringFunction value_to_string
Conversion to string.
GNUNET_GNSRECORD_NumberToTypenameFunction number_to_typename
Number to typename.
#define GNUNET_GNSRECORD_TYPE_RECLAIM_MASTER
Record type for RECLAIM master.
GNUNET_GNSRECORD_StringToValueFunction string_to_value
Conversion to binary.
static size_t data_size
Number of bytes in data.
void * cls
Closure for all of the callbacks.
static int string_to_value(void *cls, uint32_t type, const char *s, void **data, size_t *data_size)
Convert human-readable version of a 'value' of a record to the binary representation.
void * libgnunet_plugin_gnsrecord_reclaim_init(void *cls)
Entry point for the plugin.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
static const char * number_to_typename(void *cls, uint32_t type)
Convert a type number (i.e.
#define GNUNET_strdup(a)
Wrapper around GNUNET_xstrdup_.
#define GNUNET_GNSRECORD_TYPE_RECLAIM_CREDENTIAL
Record type for an attribute attestation.
#define GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_CLIENT
Record type for reclaim OIDC clients.
#define GNUNET_GNSRECORD_TYPE_RECLAIM_ATTRIBUTE_REF
Record type for reclaim records.
static char * value_to_string(void *cls, uint32_t type, const void *data, size_t data_size)
Convert the 'value' of a record to a string.
static uint32_t typename_to_number(void *cls, const char *dns_typename)
Convert a type name (i.e.
#define GNUNET_GNSRECORD_TYPE_RECLAIM_PRESENTATION
Record type for a presentation of a credential (used in a ticket record set)
static struct @76 name_map[]
Mapping of record type numbers to human-readable record type names.
#define GNUNET_GNSRECORD_TYPE_RECLAIM_ATTRIBUTE
Record type for identity attributes (of RECLAIM).
#define GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_REDIRECT
Record type for reclaim OIDC redirect URIs.
#define GNUNET_strndup(a, length)
Wrapper around GNUNET_xstrndup_.
Each plugin is required to return a pointer to a struct of this type as the return value from its ent...
void * libgnunet_plugin_gnsrecord_reclaim_done(void *cls)
Exit point from the plugin.
#define GNUNET_GNSRECORD_TYPE_RECLAIM_TICKET
Record type for local ticket references.
enum GNUNET_TESTBED_UnderlayLinkModelType type
the type of this model
char * GNUNET_STRINGS_data_to_string_alloc(const void *buf, size_t size)
Return the base32crockford encoding of the given buffer.
uint32_t data
The data value.
int GNUNET_STRINGS_string_to_data(const char *enc, size_t enclen, void *out, size_t out_size)
Convert CrockfordBase32 encoding back to data.
#define GNUNET_free(ptr)
Wrapper around free.