* Connection to the service.
*/
struct GNUNET_CLIENT_Connection *client;
-
+
/**
* Our configuration.
*/
*/
struct GNUNET_REVOCATION_Handle
{
-
+
/**
* Connection to the service.
*/
struct GNUNET_CLIENT_Connection *client;
-
+
/**
* Our configuration.
*/
rrm = (const struct RevocationResponseMessage *) msg;
h->func (h->func_cls, ntohl (rrm->is_valid));
GNUNET_REVOCATION_revoke_cancel (h);
-
+
}
GNUNET_REVOCATION_revoke_cancel (h);
return 0;
}
- rm.header.size = htons (sizeof (struct QueryMessage));
- rm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_QUERY);
+ rm.header.size = htons (sizeof (struct RevokeMessage));
+ rm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE);
rm.reserved = htonl (0);
rm.proof_of_work = h->pow;
rm.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_REVOCATION);
struct GNUNET_REVOCATION_Handle *h;
unsigned long long matching_bits;
- if ( (GNUNET_OK ==
+ if ( (GNUNET_OK ==
GNUNET_CONFIGURATION_get_value_number (cfg,
"REVOCATION",
"WORKBITS",
size_t buf_len,
struct GNUNET_HashCode *result)
{
- GNUNET_break (0 ==
+ GNUNET_break (0 ==
gcry_kdf_derive (buf, buf_len,
GCRY_KDF_SCRYPT,
1 /* subalgo */,
- "gnunet-revocation-proof-of-work",
+ "gnunet-revocation-proof-of-work",
strlen ("gnunet-revocation-proof-of-work"),
2 /* iterations; keep cost of individual op small */,
sizeof (struct GNUNET_HashCode), result));