GNUnet  0.10.x
Data Structures | Typedefs | Enumerations | Functions
gnunet_credential_service.h File Reference
#include "gnunet_util_lib.h"
#include "gnunet_gns_service.h"
#include "gnunet_identity_service.h"
Include dependency graph for gnunet_credential_service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GNUNET_CREDENTIAL_DelegationRecord
 The attribute delegation record. More...
 
struct  GNUNET_CREDENTIAL_DelegationRecordSet
 The attribute delegation record. More...
 
struct  GNUNET_CREDENTIAL_DelegationSet
 The attribute delegation record. More...
 
struct  GNUNET_CREDENTIAL_Delegation
 A delegation. More...
 
struct  GNUNET_CREDENTIAL_Credential
 A credential. More...
 

Typedefs

typedef void(* GNUNET_CREDENTIAL_CredentialResultProcessor) (void *cls, unsigned int d_count, struct GNUNET_CREDENTIAL_Delegation *delegation_chain, unsigned int c_count, struct GNUNET_CREDENTIAL_Credential *credential)
 Iterator called on obtained result for an attribute verification. More...
 
typedef void(* GNUNET_CREDENTIAL_DelegateResultProcessor) (void *cls, uint32_t success)
 Iterator called on obtained result for an attribute delegation. More...
 
typedef void(* GNUNET_CREDENTIAL_RemoveDelegateResultProcessor) (void *cls, uint32_t success)
 Iterator called on obtained result for an attribute delegation removal. More...
 

Enumerations

enum  GNUNET_CREDENTIAL_CredentialFlags { GNUNET_CREDENTIAL_FLAG_REVOKED =0, GNUNET_CREDENTIAL_FLAG_SUBJECT =1, GNUNET_CREDENTIAL_FLAG_ISSUER =2 }
 

Functions

struct GNUNET_CREDENTIAL_HandleGNUNET_CREDENTIAL_connect (const struct GNUNET_CONFIGURATION_Handle *cfg)
 Initialize the connection with the Credential service. More...
 
void GNUNET_CREDENTIAL_disconnect (struct GNUNET_CREDENTIAL_Handle *handle)
 Shutdown connection with the Credentail service. More...
 
struct GNUNET_CREDENTIAL_RequestGNUNET_CREDENTIAL_verify (struct GNUNET_CREDENTIAL_Handle *handle, const struct GNUNET_CRYPTO_EcdsaPublicKey *issuer_key, const char *issuer_attribute, const struct GNUNET_CRYPTO_EcdsaPublicKey *subject_key, uint32_t credential_count, const struct GNUNET_CREDENTIAL_Credential *credentials, GNUNET_CREDENTIAL_CredentialResultProcessor proc, void *proc_cls)
 Performs attribute verification. More...
 
struct GNUNET_CREDENTIAL_RequestGNUNET_CREDENTIAL_collect (struct GNUNET_CREDENTIAL_Handle *handle, const struct GNUNET_CRYPTO_EcdsaPublicKey *issuer_key, const char *issuer_attribute, const struct GNUNET_CRYPTO_EcdsaPrivateKey *subject_key, GNUNET_CREDENTIAL_CredentialResultProcessor proc, void *proc_cls)
 Performs attribute collection. More...
 
struct GNUNET_CREDENTIAL_RequestGNUNET_CREDENTIAL_add_delegation (struct GNUNET_CREDENTIAL_Handle *handle, struct GNUNET_IDENTITY_Ego *issuer, const char *attribute, struct GNUNET_CRYPTO_EcdsaPublicKey *subject, const char *delegated_attribute, GNUNET_CREDENTIAL_DelegateResultProcessor proc, void *proc_cls)
 Delegate an attribute. More...
 
struct GNUNET_CREDENTIAL_RequestGNUNET_CREDENTIAL_remove_delegation (struct GNUNET_CREDENTIAL_Handle *handle, struct GNUNET_IDENTITY_Ego *issuer, const char *attribute, GNUNET_CREDENTIAL_RemoveDelegateResultProcessor proc, void *proc_cls)
 Remove a delegation. More...
 
struct GNUNET_CREDENTIAL_CredentialGNUNET_CREDENTIAL_credential_issue (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, struct GNUNET_CRYPTO_EcdsaPublicKey *subject, const char *attribute, struct GNUNET_TIME_Absolute *expiration)
 Issue an attribute to a subject. More...
 
void GNUNET_CREDENTIAL_request_cancel (struct GNUNET_CREDENTIAL_Request *lr)
 Cancel pending lookup request. More...
 

Detailed Description

Author
Martin Schanzenbach

API to the Credential service

Definition in file gnunet_credential_service.h.