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.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/include/gnunet_revocation_service.h b/src/include/gnunet_revocation_service.h
index 5fb2ed7c5..2acbe89d8 100644
--- a/src/include/gnunet_revocation_service.h
+++ b/src/include/gnunet_revocation_service.h
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -65,7 +65,7 @@ struct GNUNET_REVOCATION_Query;
65 * 65 *
66 */ 66 */
67typedef void (*GNUNET_REVOCATION_Callback) (void *cls, 67typedef void (*GNUNET_REVOCATION_Callback) (void *cls,
68 int is_valid); 68 int is_valid);
69 69
70 70
71/** 71/**
@@ -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,8 @@ 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 GNUNET_CRYPTO_EcdsaPrivateKey *key,
156 struct GNUNET_CRYPTO_EcdsaSignature *sig); 156 struct GNUNET_CRYPTO_EcdsaSignature *sig);
157 157
158 158
159#if 0 /* keep Emacsens' auto-indent happy */ 159#if 0 /* keep Emacsens' auto-indent happy */