aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/revocation_api.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-29 15:08:04 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-29 15:08:04 +0200
commit1eade92340968378afc390379b86590f335cb814 (patch)
treef994fb61ceaf00f7403488d14ceb3f809d558aca /src/revocation/revocation_api.c
parentb21cab7cb9da43009df76acdb779f7c89a003378 (diff)
downloadgnunet-1eade92340968378afc390379b86590f335cb814.tar.gz
gnunet-1eade92340968378afc390379b86590f335cb814.zip
fix comments, struct naming; version
Diffstat (limited to 'src/revocation/revocation_api.c')
-rw-r--r--src/revocation/revocation_api.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c
index 18a312ab8..12cb63c57 100644
--- a/src/revocation/revocation_api.c
+++ b/src/revocation/revocation_api.c
@@ -83,7 +83,7 @@ struct GNUNET_REVOCATION_PowCalculationHandle
83 /** 83 /**
84 * The final PoW result data structure. 84 * The final PoW result data structure.
85 */ 85 */
86 struct GNUNET_REVOCATION_Pow *pow; 86 struct GNUNET_REVOCATION_PowP *pow;
87 87
88 /** 88 /**
89 * The current nonce to try 89 * The current nonce to try
@@ -297,7 +297,7 @@ handle_revocation_response (void *cls,
297 */ 297 */
298struct GNUNET_REVOCATION_Handle * 298struct GNUNET_REVOCATION_Handle *
299GNUNET_REVOCATION_revoke (const struct GNUNET_CONFIGURATION_Handle *cfg, 299GNUNET_REVOCATION_revoke (const struct GNUNET_CONFIGURATION_Handle *cfg,
300 const struct GNUNET_REVOCATION_Pow *pow, 300 const struct GNUNET_REVOCATION_PowP *pow,
301 GNUNET_REVOCATION_Callback func, 301 GNUNET_REVOCATION_Callback func,
302 void *func_cls) 302 void *func_cls)
303{ 303{
@@ -428,14 +428,14 @@ calculate_score (const struct GNUNET_REVOCATION_PowCalculationHandle *ph)
428 * @return #GNUNET_YES if the @a pow is acceptable, #GNUNET_NO if not 428 * @return #GNUNET_YES if the @a pow is acceptable, #GNUNET_NO if not
429 */ 429 */
430enum GNUNET_GenericReturnValue 430enum GNUNET_GenericReturnValue
431GNUNET_REVOCATION_check_pow (const struct GNUNET_REVOCATION_Pow *pow, 431GNUNET_REVOCATION_check_pow (const struct GNUNET_REVOCATION_PowP *pow,
432 unsigned int difficulty, 432 unsigned int difficulty,
433 struct GNUNET_TIME_Relative epoch_duration) 433 struct GNUNET_TIME_Relative epoch_duration)
434{ 434{
435 char buf[sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey) 435 char buf[sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey)
436 + sizeof (struct GNUNET_TIME_AbsoluteNBO) 436 + sizeof (struct GNUNET_TIME_AbsoluteNBO)
437 + sizeof (uint64_t)] GNUNET_ALIGN; 437 + sizeof (uint64_t)] GNUNET_ALIGN;
438 struct GNUNET_REVOCATION_SignaturePurpose spurp; 438 struct GNUNET_REVOCATION_SignaturePurposePS spurp;
439 struct GNUNET_HashCode result; 439 struct GNUNET_HashCode result;
440 struct GNUNET_TIME_Absolute ts; 440 struct GNUNET_TIME_Absolute ts;
441 struct GNUNET_TIME_Absolute exp; 441 struct GNUNET_TIME_Absolute exp;
@@ -538,10 +538,10 @@ GNUNET_REVOCATION_check_pow (const struct GNUNET_REVOCATION_Pow *pow,
538 */ 538 */
539void 539void
540GNUNET_REVOCATION_pow_init (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, 540GNUNET_REVOCATION_pow_init (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
541 struct GNUNET_REVOCATION_Pow *pow) 541 struct GNUNET_REVOCATION_PowP *pow)
542{ 542{
543 struct GNUNET_TIME_Absolute ts = GNUNET_TIME_absolute_get (); 543 struct GNUNET_TIME_Absolute ts = GNUNET_TIME_absolute_get ();
544 struct GNUNET_REVOCATION_SignaturePurpose rp; 544 struct GNUNET_REVOCATION_SignaturePurposePS rp;
545 545
546 /** 546 /**
547 * Predate the validity period to prevent rejections due to 547 * Predate the validity period to prevent rejections due to
@@ -575,7 +575,7 @@ GNUNET_REVOCATION_pow_init (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
575 * @return a handle for use in PoW rounds 575 * @return a handle for use in PoW rounds
576 */ 576 */
577struct GNUNET_REVOCATION_PowCalculationHandle* 577struct GNUNET_REVOCATION_PowCalculationHandle*
578GNUNET_REVOCATION_pow_start (struct GNUNET_REVOCATION_Pow *pow, 578GNUNET_REVOCATION_pow_start (struct GNUNET_REVOCATION_PowP *pow,
579 int epochs, 579 int epochs,
580 unsigned int difficulty) 580 unsigned int difficulty)
581{ 581{