aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_revocation_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_revocation_service.h')
-rw-r--r--src/include/gnunet_revocation_service.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/include/gnunet_revocation_service.h b/src/include/gnunet_revocation_service.h
index 2acbe89d8..7222cedc1 100644
--- a/src/include/gnunet_revocation_service.h
+++ b/src/include/gnunet_revocation_service.h
@@ -78,9 +78,9 @@ typedef void (*GNUNET_REVOCATION_Callback) (void *cls,
78 * @return handle to use in #GNUNET_REVOCATION_query_cancel to stop REVOCATION from invoking the callback 78 * @return handle to use in #GNUNET_REVOCATION_query_cancel to stop REVOCATION from invoking the callback
79 */ 79 */
80struct GNUNET_REVOCATION_Query * 80struct GNUNET_REVOCATION_Query *
81GNUNET_REVOCATION_query(const struct GNUNET_CONFIGURATION_Handle *cfg, 81GNUNET_REVOCATION_query (const struct GNUNET_CONFIGURATION_Handle *cfg,
82 const struct GNUNET_CRYPTO_EcdsaPublicKey *key, 82 const struct GNUNET_CRYPTO_EcdsaPublicKey *key,
83 GNUNET_REVOCATION_Callback func, void *func_cls); 83 GNUNET_REVOCATION_Callback func, void *func_cls);
84 84
85 85
86/** 86/**
@@ -89,7 +89,7 @@ GNUNET_REVOCATION_query(const struct GNUNET_CONFIGURATION_Handle *cfg,
89 * @param q query to cancel 89 * @param q query to cancel
90 */ 90 */
91void 91void
92GNUNET_REVOCATION_query_cancel(struct GNUNET_REVOCATION_Query *q); 92GNUNET_REVOCATION_query_cancel (struct GNUNET_REVOCATION_Query *q);
93 93
94 94
95/** 95/**
@@ -114,11 +114,11 @@ struct GNUNET_REVOCATION_Handle;
114 * @return handle to use in #GNUNET_REVOCATION_revoke_cancel to stop REVOCATION from invoking the callback 114 * @return handle to use in #GNUNET_REVOCATION_revoke_cancel to stop REVOCATION from invoking the callback
115 */ 115 */
116struct GNUNET_REVOCATION_Handle * 116struct GNUNET_REVOCATION_Handle *
117GNUNET_REVOCATION_revoke(const struct GNUNET_CONFIGURATION_Handle *cfg, 117GNUNET_REVOCATION_revoke (const struct GNUNET_CONFIGURATION_Handle *cfg,
118 const struct GNUNET_CRYPTO_EcdsaPublicKey *key, 118 const struct GNUNET_CRYPTO_EcdsaPublicKey *key,
119 const struct GNUNET_CRYPTO_EcdsaSignature *sig, 119 const struct GNUNET_CRYPTO_EcdsaSignature *sig,
120 uint64_t pow, 120 uint64_t pow,
121 GNUNET_REVOCATION_Callback func, void *func_cls); 121 GNUNET_REVOCATION_Callback func, void *func_cls);
122 122
123 123
124/** 124/**
@@ -127,7 +127,7 @@ GNUNET_REVOCATION_revoke(const struct GNUNET_CONFIGURATION_Handle *cfg,
127 * @param h operation to cancel 127 * @param h operation to cancel
128 */ 128 */
129void 129void
130GNUNET_REVOCATION_revoke_cancel(struct GNUNET_REVOCATION_Handle *h); 130GNUNET_REVOCATION_revoke_cancel (struct GNUNET_REVOCATION_Handle *h);
131 131
132 132
133/** 133/**
@@ -140,9 +140,9 @@ GNUNET_REVOCATION_revoke_cancel(struct GNUNET_REVOCATION_Handle *h);
140 * @return #GNUNET_YES if the @a pow is acceptable, #GNUNET_NO if not 140 * @return #GNUNET_YES if the @a pow is acceptable, #GNUNET_NO if not
141 */ 141 */
142int 142int
143GNUNET_REVOCATION_check_pow(const struct GNUNET_CRYPTO_EcdsaPublicKey *key, 143GNUNET_REVOCATION_check_pow (const struct GNUNET_CRYPTO_EcdsaPublicKey *key,
144 uint64_t pow, 144 uint64_t pow,
145 unsigned int matching_bits); 145 unsigned int matching_bits);
146 146
147 147
148/** 148/**
@@ -152,8 +152,9 @@ GNUNET_REVOCATION_check_pow(const struct GNUNET_CRYPTO_EcdsaPublicKey *key,
152 * @param sig where to write the revocation signature 152 * @param sig where to write the revocation signature
153 */ 153 */
154void 154void
155GNUNET_REVOCATION_sign_revocation(const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, 155GNUNET_REVOCATION_sign_revocation (const struct
156 struct GNUNET_CRYPTO_EcdsaSignature *sig); 156 GNUNET_CRYPTO_EcdsaPrivateKey *key,
157 struct GNUNET_CRYPTO_EcdsaSignature *sig);
157 158
158 159
159#if 0 /* keep Emacsens' auto-indent happy */ 160#if 0 /* keep Emacsens' auto-indent happy */