33#ifndef GNUNET_RECLAIM_PLUGIN_H
34#define GNUNET_RECLAIM_PLUGIN_H
58typedef char *(*GNUNET_RECLAIM_AttributeValueToStringFunction) (
95 const char *
typename);
106typedef const char *(*GNUNET_RECLAIM_AttributeNumberToTypenameFunction) (
120typedef char *(*GNUNET_RECLAIM_CredentialValueToStringFunction) (
157 const char *
typename);
168typedef const char *(*GNUNET_RECLAIM_CredentialNumberToTypenameFunction) (
192typedef char *(*GNUNET_RECLAIM_CredentialGetIssuerFunction) (
219typedef char *(*GNUNET_RECLAIM_PresentationValueToStringFunction) (
256 const char *
typename);
267typedef const char *(*GNUNET_RECLAIM_PresentationNumberToTypenameFunction) (
291typedef char *(*GNUNET_RECLAIM_PresentationGetIssuerFunction) (
static gnutls_certificate_credentials_t cred
The credential.
static char * data
The data to insert into the dht.
static struct GNUNET_TIME_Relative expiration
User supplied expiration value.
static uint32_t type
Type string converted to DNS type value.
static size_t data_size
Number of bytes in data.
Identity attribute definitions.
const char *(* GNUNET_RECLAIM_PresentationNumberToTypenameFunction)(void *cls, uint32_t type)
Function called to convert a type number to the corresponding type string (e.g.
char *(* GNUNET_RECLAIM_CredentialValueToStringFunction)(void *cls, uint32_t type, const void *data, size_t data_size)
Function called to convert the binary value data of an attribute of type type to a human-readable str...
char *(* GNUNET_RECLAIM_PresentationValueToStringFunction)(void *cls, uint32_t type, const void *data, size_t data_size)
Function called to convert the binary value data of an attribute of type type to a human-readable str...
uint32_t(* GNUNET_RECLAIM_PresentationTypenameToNumberFunction)(void *cls, const char *typename)
Function called to convert a type name to the corresponding number.
int(* GNUNET_RECLAIM_CredentialGetExpirationFunction)(void *cls, const struct GNUNET_RECLAIM_Credential *cred, struct GNUNET_TIME_Absolute *expiration)
Function called to get the expiration of the credential.
char *(* GNUNET_RECLAIM_PresentationGetIssuerFunction)(void *cls, const struct GNUNET_RECLAIM_Presentation *cred)
Function called to get the issuer of the credential (as string)
char *(* GNUNET_RECLAIM_AttributeValueToStringFunction)(void *cls, uint32_t type, const void *data, size_t data_size)
Function called to convert the binary value data of an attribute of type type to a human-readable str...
int(* GNUNET_RECLAIM_PresentationStringToValueFunction)(void *cls, uint32_t type, const char *s, void **data, size_t *data_size)
Function called to convert human-readable version of the value s of an attribute of type type to the ...
const char *(* GNUNET_RECLAIM_CredentialNumberToTypenameFunction)(void *cls, uint32_t type)
Function called to convert a type number to the corresponding type string (e.g.
uint32_t(* GNUNET_RECLAIM_CredentialTypenameToNumberFunction)(void *cls, const char *typename)
Function called to convert a type name to the corresponding number.
uint32_t(* GNUNET_RECLAIM_AttributeTypenameToNumberFunction)(void *cls, const char *typename)
Function called to convert a type name to the corresponding number.
int(* GNUNET_RECLAIM_CredentialToPresentation)(void *cls, const struct GNUNET_RECLAIM_Credential *cred, const struct GNUNET_RECLAIM_AttributeList *attrs, struct GNUNET_RECLAIM_Presentation **presentation)
const char *(* GNUNET_RECLAIM_AttributeNumberToTypenameFunction)(void *cls, uint32_t type)
Function called to convert a type number to the corresponding type string (e.g.
int(* GNUNET_RECLAIM_AttributeStringToValueFunction)(void *cls, uint32_t type, const char *s, void **data, size_t *data_size)
Function called to convert human-readable version of the value s of an attribute of type type to the ...
struct GNUNET_RECLAIM_AttributeList *(* GNUNET_RECLAIM_PresentationGetAttributesFunction)(void *cls, const struct GNUNET_RECLAIM_Presentation *cred)
Function called to extract attributes from a credential.
char *(* GNUNET_RECLAIM_CredentialGetIssuerFunction)(void *cls, const struct GNUNET_RECLAIM_Credential *cred)
Function called to get the issuer of the credential (as string)
int(* GNUNET_RECLAIM_CredentialStringToValueFunction)(void *cls, uint32_t type, const char *s, void **data, size_t *data_size)
Function called to convert human-readable version of the value s of an attribute of type type to the ...
struct GNUNET_RECLAIM_AttributeList *(* GNUNET_RECLAIM_CredentialGetAttributesFunction)(void *cls, const struct GNUNET_RECLAIM_Credential *cred)
Function called to extract attributes from a credential.
int(* GNUNET_RECLAIM_PresentationGetExpirationFunction)(void *cls, const struct GNUNET_RECLAIM_Presentation *cred, struct GNUNET_TIME_Absolute *expiration)
Function called to get the expiration of the credential.
A list of GNUNET_RECLAIM_Attribute structures.
Each plugin is required to return a pointer to a struct of this type as the return value from its ent...
GNUNET_RECLAIM_AttributeValueToStringFunction value_to_string
Conversion to string.
GNUNET_RECLAIM_AttributeTypenameToNumberFunction typename_to_number
Typename to number.
void * cls
Closure for all of the callbacks.
GNUNET_RECLAIM_AttributeStringToValueFunction string_to_value
Conversion to binary.
GNUNET_RECLAIM_AttributeNumberToTypenameFunction number_to_typename
Number to typename.
Each plugin is required to return a pointer to a struct of this type as the return value from its ent...
GNUNET_RECLAIM_CredentialValueToStringFunction value_to_string
Conversion to string.
GNUNET_RECLAIM_CredentialTypenameToNumberFunction typename_to_number
Typename to number.
GNUNET_RECLAIM_PresentationGetIssuerFunction get_issuer_p
Attesation issuer.
GNUNET_RECLAIM_CredentialNumberToTypenameFunction number_to_typename
Number to typename.
GNUNET_RECLAIM_CredentialGetIssuerFunction get_issuer
Attesation issuer.
GNUNET_RECLAIM_PresentationGetExpirationFunction get_expiration_p
Expiration.
GNUNET_RECLAIM_PresentationValueToStringFunction value_to_string_p
Conversion to string.
GNUNET_RECLAIM_CredentialStringToValueFunction string_to_value
Conversion to binary.
GNUNET_RECLAIM_CredentialGetExpirationFunction get_expiration
Expiration.
void * cls
Closure for all of the callbacks.
GNUNET_RECLAIM_CredentialGetAttributesFunction get_attributes
Attesation attributes.
GNUNET_RECLAIM_PresentationStringToValueFunction string_to_value_p
Conversion to binary.
GNUNET_RECLAIM_PresentationTypenameToNumberFunction typename_to_number_p
Typename to number.
GNUNET_RECLAIM_PresentationNumberToTypenameFunction number_to_typename_p
Number to typename.
GNUNET_RECLAIM_CredentialToPresentation create_presentation
Get presentation.
GNUNET_RECLAIM_PresentationGetAttributesFunction get_attributes_p
Attesation attributes.
A credential presentation.
Time for absolute times used by GNUnet, in microseconds.