API to perform and access key revocations. More...
#include "platform.h"
#include "gnunet_revocation_service.h"
#include "gnunet_signatures.h"
#include "gnunet_protocols.h"
#include "revocation.h"
#include <inttypes.h>
Go to the source code of this file.
Data Structures | |
struct | GNUNET_REVOCATION_Query |
Handle for the key revocation query. More... | |
struct | GNUNET_REVOCATION_Handle |
Handle for the key revocation operation. More... | |
Functions | |
static void | query_mq_error_handler (void *cls, enum GNUNET_MQ_Error error) |
Generic error handler, called with the appropriate error code and the same closure specified at the creation of the message queue. More... | |
static void | handle_revocation_query_response (void *cls, const struct QueryResponseMessage *qrm) |
Handle response to our revocation query. More... | |
struct GNUNET_REVOCATION_Query * | GNUNET_REVOCATION_query (const struct GNUNET_CONFIGURATION_Handle *cfg, const struct GNUNET_CRYPTO_PublicKey *key, GNUNET_REVOCATION_Callback func, void *func_cls) |
Check if a key was revoked. More... | |
void | GNUNET_REVOCATION_query_cancel (struct GNUNET_REVOCATION_Query *q) |
Cancel key revocation check. More... | |
static void | revocation_mq_error_handler (void *cls, enum GNUNET_MQ_Error error) |
Generic error handler, called with the appropriate error code and the same closure specified at the creation of the message queue. More... | |
static void | handle_revocation_response (void *cls, const struct RevocationResponseMessage *rrm) |
Handle response to our revocation query. More... | |
struct GNUNET_REVOCATION_Handle * | GNUNET_REVOCATION_revoke (const struct GNUNET_CONFIGURATION_Handle *cfg, const struct GNUNET_GNSRECORD_PowP *pow, GNUNET_REVOCATION_Callback func, void *func_cls) |
Perform key revocation. More... | |
void | GNUNET_REVOCATION_revoke_cancel (struct GNUNET_REVOCATION_Handle *h) |
Cancel key revocation. More... | |
API to perform and access key revocations.
Definition in file revocation_api.c.
|
static |
Generic error handler, called with the appropriate error code and the same closure specified at the creation of the message queue.
Not every message queue implementation supports an error handler.
cls | closure with the struct GNUNET_NSE_Handle * |
error | error code |
Definition at line 64 of file revocation_api.c.
References GNUNET_REVOCATION_Query::func, GNUNET_REVOCATION_Query::func_cls, GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_REVOCATION_query_cancel(), GNUNET_SYSERR, and q.
Referenced by GNUNET_REVOCATION_query().
|
static |
Handle response to our revocation query.
cls | our struct GNUNET_REVOCATION_Query handle |
qrm | response we got |
Definition at line 84 of file revocation_api.c.
References GNUNET_REVOCATION_Query::func, GNUNET_REVOCATION_Query::func_cls, GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_REVOCATION_query_cancel(), QueryResponseMessage::is_valid, and q.
|
static |
Generic error handler, called with the appropriate error code and the same closure specified at the creation of the message queue.
Not every message queue implementation supports an error handler.
cls | closure with the struct GNUNET_NSE_Handle * |
error | error code |
Definition at line 198 of file revocation_api.c.
References GNUNET_ERROR_TYPE_WARNING, GNUNET_log, GNUNET_REVOCATION_revoke_cancel(), GNUNET_SYSERR, and h.
Referenced by GNUNET_REVOCATION_revoke().
|
static |
Handle response to our revocation query.
cls | our struct GNUNET_REVOCATION_Handle handle |
rrm | response we got |
Definition at line 218 of file revocation_api.c.
References GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_REVOCATION_revoke_cancel(), h, and RevocationResponseMessage::is_valid.