diff options
Diffstat (limited to 'src/include/gnunet_revocation_service.h')
-rw-r--r-- | src/include/gnunet_revocation_service.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/include/gnunet_revocation_service.h b/src/include/gnunet_revocation_service.h index 105bb1149..479cc61d7 100644 --- a/src/include/gnunet_revocation_service.h +++ b/src/include/gnunet_revocation_service.h | |||
@@ -21,6 +21,8 @@ | |||
21 | #ifndef GNUNET_REVOCATION_SERVICE_H_ | 21 | #ifndef GNUNET_REVOCATION_SERVICE_H_ |
22 | #define GNUNET_REVOCATION_SERVICE_H_ | 22 | #define GNUNET_REVOCATION_SERVICE_H_ |
23 | 23 | ||
24 | #include "gnunet_identity_service.h" | ||
25 | |||
24 | /** | 26 | /** |
25 | * @author Christian Grothoff | 27 | * @author Christian Grothoff |
26 | * | 28 | * |
@@ -80,14 +82,16 @@ struct GNUNET_REVOCATION_PowP | |||
80 | uint64_t pow[POW_COUNT] GNUNET_PACKED; | 82 | uint64_t pow[POW_COUNT] GNUNET_PACKED; |
81 | 83 | ||
82 | /** | 84 | /** |
83 | * The signature | 85 | * The revoked public key |
84 | */ | 86 | */ |
85 | struct GNUNET_CRYPTO_EcdsaSignature signature; | 87 | struct GNUNET_IDENTITY_PublicKey key; |
86 | 88 | ||
87 | /** | 89 | /** |
88 | * The revoked public key | 90 | * Length of the signature |
89 | */ | 91 | */ |
90 | struct GNUNET_CRYPTO_EcdsaPublicKey key; | 92 | uint32_t sig_len; |
93 | |||
94 | /** followed by a signature **/ | ||
91 | }; | 95 | }; |
92 | 96 | ||
93 | 97 | ||
@@ -104,7 +108,7 @@ struct GNUNET_REVOCATION_SignaturePurposePS | |||
104 | /** | 108 | /** |
105 | * The revoked public key | 109 | * The revoked public key |
106 | */ | 110 | */ |
107 | struct GNUNET_CRYPTO_EcdsaPublicKey key; | 111 | struct GNUNET_IDENTITY_PublicKey key; |
108 | 112 | ||
109 | /** | 113 | /** |
110 | * The timestamp of the revocation | 114 | * The timestamp of the revocation |
@@ -150,7 +154,7 @@ typedef void (*GNUNET_REVOCATION_Callback) (void *cls, | |||
150 | */ | 154 | */ |
151 | struct GNUNET_REVOCATION_Query * | 155 | struct GNUNET_REVOCATION_Query * |
152 | GNUNET_REVOCATION_query (const struct GNUNET_CONFIGURATION_Handle *cfg, | 156 | GNUNET_REVOCATION_query (const struct GNUNET_CONFIGURATION_Handle *cfg, |
153 | const struct GNUNET_CRYPTO_EcdsaPublicKey *key, | 157 | const struct GNUNET_IDENTITY_PublicKey *key, |
154 | GNUNET_REVOCATION_Callback func, void *func_cls); | 158 | GNUNET_REVOCATION_Callback func, void *func_cls); |
155 | 159 | ||
156 | 160 | ||
@@ -217,7 +221,7 @@ GNUNET_REVOCATION_check_pow (const struct GNUNET_REVOCATION_PowP *pow, | |||
217 | * @param pow the pow object to work with in the calculation. | 221 | * @param pow the pow object to work with in the calculation. |
218 | */ | 222 | */ |
219 | void | 223 | void |
220 | GNUNET_REVOCATION_pow_init (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, | 224 | GNUNET_REVOCATION_pow_init (const struct GNUNET_IDENTITY_PrivateKey *key, |
221 | struct GNUNET_REVOCATION_PowP *pow); | 225 | struct GNUNET_REVOCATION_PowP *pow); |
222 | 226 | ||
223 | 227 | ||