GNUnet  0.20.0
revocation.h File Reference

messages for key revocation More...

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 406 of file revocation_api.c.

407 {
409  const struct GNUNET_IDENTITY_PublicKey *pk;
410  size_t ksize;
412  pk = (const struct GNUNET_IDENTITY_PublicKey *) &pow[1];
414  spurp = GNUNET_malloc (sizeof (*spurp) + ksize);
415  spurp->timestamp = pow->timestamp;
417  spurp->purpose.size = htonl (sizeof(*spurp) + ksize);
419  (char*) &spurp[1],
420  ksize);
421  return spurp;
422 }
GNS zone key revocation (GNS)
struct GNUNET_IDENTITY_PrivateKey pk
Private key from command line option, or NULL.
ssize_t GNUNET_IDENTITY_write_public_key_to_buffer(const struct GNUNET_IDENTITY_PublicKey *key, void *buffer, size_t len)
Writes a GNUNET_IDENTITY_PublicKey to a compact buffer.
Definition: identity_api.c:890
ssize_t GNUNET_IDENTITY_public_key_get_length(const struct GNUNET_IDENTITY_PublicKey *key)
Get the compacted length of a GNUNET_IDENTITY_PublicKey.
Definition: identity_api.c:830
#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_with_key().

Here is the caller graph for this function: