diff options
Diffstat (limited to 'src/revocation/gnunet-service-revocation.c')
-rw-r--r-- | src/revocation/gnunet-service-revocation.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c index 56ec9f489..0fa92f4a6 100644 --- a/src/revocation/gnunet-service-revocation.c +++ b/src/revocation/gnunet-service-revocation.c | |||
@@ -306,10 +306,12 @@ publicize_rm (const struct RevokeMessage *rm) | |||
306 | struct RevokeMessage *cp; | 306 | struct RevokeMessage *cp; |
307 | struct GNUNET_HashCode hc; | 307 | struct GNUNET_HashCode hc; |
308 | struct GNUNET_SETU_Element e; | 308 | struct GNUNET_SETU_Element e; |
309 | const struct GNUNET_IDENTITY_PublicKey *pk; | ||
309 | 310 | ||
310 | struct GNUNET_REVOCATION_PowP *pow = (struct GNUNET_REVOCATION_PowP *) &rm[1]; | 311 | struct GNUNET_REVOCATION_PowP *pow = (struct GNUNET_REVOCATION_PowP *) &rm[1]; |
311 | GNUNET_CRYPTO_hash (&pow->key, | 312 | pk = (const struct GNUNET_IDENTITY_PublicKey *) &pow[1]; |
312 | sizeof(struct GNUNET_IDENTITY_PublicKey), | 313 | GNUNET_CRYPTO_hash (pk, |
314 | GNUNET_IDENTITY_key_get_length (pk), | ||
313 | &hc); | 315 | &hc); |
314 | if (GNUNET_YES == | 316 | if (GNUNET_YES == |
315 | GNUNET_CONTAINER_multihashmap_contains (revocation_map, | 317 | GNUNET_CONTAINER_multihashmap_contains (revocation_map, |
@@ -832,6 +834,7 @@ run (void *cls, | |||
832 | uint64_t left; | 834 | uint64_t left; |
833 | struct RevokeMessage *rm; | 835 | struct RevokeMessage *rm; |
834 | struct GNUNET_HashCode hc; | 836 | struct GNUNET_HashCode hc; |
837 | const struct GNUNET_IDENTITY_PublicKey *pk; | ||
835 | 838 | ||
836 | GNUNET_CRYPTO_hash ("revocation-set-union-application-id", | 839 | GNUNET_CRYPTO_hash ("revocation-set-union-application-id", |
837 | strlen ("revocation-set-union-application-id"), | 840 | strlen ("revocation-set-union-application-id"), |
@@ -932,8 +935,9 @@ run (void *cls, | |||
932 | } | 935 | } |
933 | struct GNUNET_REVOCATION_PowP *pow = (struct | 936 | struct GNUNET_REVOCATION_PowP *pow = (struct |
934 | GNUNET_REVOCATION_PowP *) &rm[1]; | 937 | GNUNET_REVOCATION_PowP *) &rm[1]; |
935 | GNUNET_CRYPTO_hash (&pow->key, | 938 | pk = (const struct GNUNET_IDENTITY_PublicKey *) &pow[1]; |
936 | sizeof(struct GNUNET_IDENTITY_PublicKey), | 939 | GNUNET_CRYPTO_hash (pk, |
940 | GNUNET_IDENTITY_key_get_length (pk), | ||
937 | &hc); | 941 | &hc); |
938 | GNUNET_break (GNUNET_OK == | 942 | GNUNET_break (GNUNET_OK == |
939 | GNUNET_CONTAINER_multihashmap_put (revocation_map, | 943 | GNUNET_CONTAINER_multihashmap_put (revocation_map, |