GNUnet  0.17.6
Data Structures | Functions
revocation.h File Reference

messages for key revocation More...

#include "gnunet_util_lib.h"
#include "gnunet_revocation_service.h"
Include dependency graph for revocation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  QueryMessage
 Query key revocation status. More...
struct  QueryResponseMessage
 Key revocation response. More...
struct  RevokeMessage
 Revoke key. More...
struct  RevocationResponseMessage
 Key revocation response. More...


GNUNET_NETWORK_STRUCT_END struct GNUNET_REVOCATION_SignaturePurposePSREV_create_signature_message (const struct GNUNET_REVOCATION_PowP *pow)
 Create the revocation metadata to sign for a revocation message. More...

Detailed Description

messages for key revocation

Christian Grothoff

Definition in file revocation.h.

Function Documentation

◆ REV_create_signature_message()

GNUNET_NETWORK_STRUCT_END struct GNUNET_REVOCATION_SignaturePurposePS* REV_create_signature_message ( const struct GNUNET_REVOCATION_PowP pow)

Create the revocation metadata to sign for a revocation message.

powthe PoW to sign
the signature purpose

Definition at line 408 of file revocation_api.c.

409 {
411  const struct GNUNET_IDENTITY_PublicKey *pk;
412  size_t ksize;
414  pk = (const struct GNUNET_IDENTITY_PublicKey *) &pow[1];
416  spurp = GNUNET_malloc (sizeof (*spurp) + ksize);
417  spurp->timestamp = pow->timestamp;
419  spurp->purpose.size = htonl (sizeof(*spurp) + ksize);
421  (char*) &spurp[1],
422  ksize);
423  return spurp;
424 }
Signature for confirming a key revocation.
struct GNUNET_IDENTITY_PrivateKey pk
Private key from command line option, or NULL.
ssize_t GNUNET_IDENTITY_write_key_to_buffer(const struct GNUNET_IDENTITY_PublicKey *key, void *buffer, size_t len)
Writes a GNUNET_IDENTITY_PublicKey to a compact buffer.
ssize_t GNUNET_IDENTITY_key_get_length(const struct GNUNET_IDENTITY_PublicKey *key)
Get the compacted length of a GNUNET_IDENTITY_PublicKey.
Definition: identity_api.c:991
#define GNUNET_malloc(size)
Wrapper around malloc.
uint32_t size
How many bytes does this signature sign? (including this purpose header); in network byte order (!...
uint32_t purpose
What does this signature vouch for? This must contain a GNUNET_SIGNATURE_PURPOSE_XXX constant (from g...
An identity key as per LSD0001.
struct GNUNET_TIME_AbsoluteNBO timestamp
The timestamp of the revocation.
The signature object we use for the PoW.
struct GNUNET_CRYPTO_EccSignaturePurpose purpose
The signature purpose.
struct GNUNET_TIME_AbsoluteNBO timestamp
The timestamp of the revocation.

Referenced by run().

Here is the caller graph for this function: