diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-04-29 15:08:04 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-04-29 15:08:04 +0200 |
commit | 1eade92340968378afc390379b86590f335cb814 (patch) | |
tree | f994fb61ceaf00f7403488d14ceb3f809d558aca /src/include | |
parent | b21cab7cb9da43009df76acdb779f7c89a003378 (diff) | |
download | gnunet-1eade92340968378afc390379b86590f335cb814.tar.gz gnunet-1eade92340968378afc390379b86590f335cb814.zip |
fix comments, struct naming; version
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_revocation_service.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/include/gnunet_revocation_service.h b/src/include/gnunet_revocation_service.h index 9a8918b43..105bb1149 100644 --- a/src/include/gnunet_revocation_service.h +++ b/src/include/gnunet_revocation_service.h | |||
@@ -48,7 +48,7 @@ extern "C" | |||
48 | /** | 48 | /** |
49 | * Version of the key revocation API. | 49 | * Version of the key revocation API. |
50 | */ | 50 | */ |
51 | #define GNUNET_REVOCATION_VERSION 0x00000000 | 51 | #define GNUNET_REVOCATION_VERSION 0x00000001 |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * The proof-of-work narrowing factor. | 54 | * The proof-of-work narrowing factor. |
@@ -59,7 +59,10 @@ extern "C" | |||
59 | 59 | ||
60 | GNUNET_NETWORK_STRUCT_BEGIN | 60 | GNUNET_NETWORK_STRUCT_BEGIN |
61 | 61 | ||
62 | struct GNUNET_REVOCATION_Pow | 62 | /** |
63 | * Struct for a proof of work as part of the revocation. | ||
64 | */ | ||
65 | struct GNUNET_REVOCATION_PowP | ||
63 | { | 66 | { |
64 | /** | 67 | /** |
65 | * The timestamp of the revocation | 68 | * The timestamp of the revocation |
@@ -91,7 +94,7 @@ struct GNUNET_REVOCATION_Pow | |||
91 | /** | 94 | /** |
92 | * The signature object we use for the PoW | 95 | * The signature object we use for the PoW |
93 | */ | 96 | */ |
94 | struct GNUNET_REVOCATION_SignaturePurpose | 97 | struct GNUNET_REVOCATION_SignaturePurposePS |
95 | { | 98 | { |
96 | /** | 99 | /** |
97 | * The signature purpose | 100 | * The signature purpose |
@@ -180,7 +183,7 @@ struct GNUNET_REVOCATION_Handle; | |||
180 | */ | 183 | */ |
181 | struct GNUNET_REVOCATION_Handle * | 184 | struct GNUNET_REVOCATION_Handle * |
182 | GNUNET_REVOCATION_revoke (const struct GNUNET_CONFIGURATION_Handle *cfg, | 185 | GNUNET_REVOCATION_revoke (const struct GNUNET_CONFIGURATION_Handle *cfg, |
183 | const struct GNUNET_REVOCATION_Pow *pow, | 186 | const struct GNUNET_REVOCATION_PowP *pow, |
184 | GNUNET_REVOCATION_Callback func, void *func_cls); | 187 | GNUNET_REVOCATION_Callback func, void *func_cls); |
185 | 188 | ||
186 | 189 | ||
@@ -202,7 +205,7 @@ GNUNET_REVOCATION_revoke_cancel (struct GNUNET_REVOCATION_Handle *h); | |||
202 | * @return #GNUNET_YES if the @a pow is acceptable, #GNUNET_NO if not | 205 | * @return #GNUNET_YES if the @a pow is acceptable, #GNUNET_NO if not |
203 | */ | 206 | */ |
204 | enum GNUNET_GenericReturnValue | 207 | enum GNUNET_GenericReturnValue |
205 | GNUNET_REVOCATION_check_pow (const struct GNUNET_REVOCATION_Pow *pow, | 208 | GNUNET_REVOCATION_check_pow (const struct GNUNET_REVOCATION_PowP *pow, |
206 | unsigned int matching_bits, | 209 | unsigned int matching_bits, |
207 | struct GNUNET_TIME_Relative epoch_duration); | 210 | struct GNUNET_TIME_Relative epoch_duration); |
208 | 211 | ||
@@ -215,7 +218,7 @@ GNUNET_REVOCATION_check_pow (const struct GNUNET_REVOCATION_Pow *pow, | |||
215 | */ | 218 | */ |
216 | void | 219 | void |
217 | GNUNET_REVOCATION_pow_init (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, | 220 | GNUNET_REVOCATION_pow_init (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, |
218 | struct GNUNET_REVOCATION_Pow *pow); | 221 | struct GNUNET_REVOCATION_PowP *pow); |
219 | 222 | ||
220 | 223 | ||
221 | /** | 224 | /** |
@@ -228,7 +231,7 @@ GNUNET_REVOCATION_pow_init (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, | |||
228 | * @return a handle for use in PoW rounds | 231 | * @return a handle for use in PoW rounds |
229 | */ | 232 | */ |
230 | struct GNUNET_REVOCATION_PowCalculationHandle* | 233 | struct GNUNET_REVOCATION_PowCalculationHandle* |
231 | GNUNET_REVOCATION_pow_start (struct GNUNET_REVOCATION_Pow *pow, | 234 | GNUNET_REVOCATION_pow_start (struct GNUNET_REVOCATION_PowP *pow, |
232 | int epochs, | 235 | int epochs, |
233 | unsigned int difficulty); | 236 | unsigned int difficulty); |
234 | 237 | ||