aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_identity_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_identity_service.h')
-rw-r--r--src/include/gnunet_identity_service.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h
index 52ed1e908..8a77e76e0 100644
--- a/src/include/gnunet_identity_service.h
+++ b/src/include/gnunet_identity_service.h
@@ -16,7 +16,7 @@
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
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @author Christian Grothoff 22 * @author Christian Grothoff
@@ -80,7 +80,7 @@ struct GNUNET_IDENTITY_Operation;
80 * @return associated ECC key, valid as long as the ego is valid 80 * @return associated ECC key, valid as long as the ego is valid
81 */ 81 */
82const struct GNUNET_CRYPTO_EcdsaPrivateKey * 82const struct GNUNET_CRYPTO_EcdsaPrivateKey *
83GNUNET_IDENTITY_ego_get_private_key (const struct GNUNET_IDENTITY_Ego *ego); 83GNUNET_IDENTITY_ego_get_private_key(const struct GNUNET_IDENTITY_Ego *ego);
84 84
85 85
86/** 86/**
@@ -89,7 +89,7 @@ GNUNET_IDENTITY_ego_get_private_key (const struct GNUNET_IDENTITY_Ego *ego);
89 * @return handle for the anonymous user, must not be freed 89 * @return handle for the anonymous user, must not be freed
90 */ 90 */
91const struct GNUNET_IDENTITY_Ego * 91const struct GNUNET_IDENTITY_Ego *
92GNUNET_IDENTITY_ego_get_anonymous (void); 92GNUNET_IDENTITY_ego_get_anonymous(void);
93 93
94 94
95/** 95/**
@@ -99,8 +99,8 @@ GNUNET_IDENTITY_ego_get_anonymous (void);
99 * @param pk set to ego's public key 99 * @param pk set to ego's public key
100 */ 100 */
101void 101void
102GNUNET_IDENTITY_ego_get_public_key (const struct GNUNET_IDENTITY_Ego *ego, 102GNUNET_IDENTITY_ego_get_public_key(const struct GNUNET_IDENTITY_Ego *ego,
103 struct GNUNET_CRYPTO_EcdsaPublicKey *pk); 103 struct GNUNET_CRYPTO_EcdsaPublicKey *pk);
104 104
105 105
106/** 106/**
@@ -152,9 +152,9 @@ typedef void (*GNUNET_IDENTITY_Callback) (void *cls,
152 * @return handle to communicate with identity service 152 * @return handle to communicate with identity service
153 */ 153 */
154struct GNUNET_IDENTITY_Handle * 154struct GNUNET_IDENTITY_Handle *
155GNUNET_IDENTITY_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, 155GNUNET_IDENTITY_connect(const struct GNUNET_CONFIGURATION_Handle *cfg,
156 GNUNET_IDENTITY_Callback cb, 156 GNUNET_IDENTITY_Callback cb,
157 void *cb_cls); 157 void *cb_cls);
158 158
159 159
160/** 160/**
@@ -167,10 +167,10 @@ GNUNET_IDENTITY_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
167 * @return handle to abort the operation 167 * @return handle to abort the operation
168 */ 168 */
169struct GNUNET_IDENTITY_Operation * 169struct GNUNET_IDENTITY_Operation *
170GNUNET_IDENTITY_get (struct GNUNET_IDENTITY_Handle *id, 170GNUNET_IDENTITY_get(struct GNUNET_IDENTITY_Handle *id,
171 const char *service_name, 171 const char *service_name,
172 GNUNET_IDENTITY_Callback cb, 172 GNUNET_IDENTITY_Callback cb,
173 void *cb_cls); 173 void *cb_cls);
174 174
175 175
176/** 176/**
@@ -194,11 +194,11 @@ typedef void (*GNUNET_IDENTITY_Continuation) (void *cls, const char *emsg);
194 * @return handle to abort the operation 194 * @return handle to abort the operation
195 */ 195 */
196struct GNUNET_IDENTITY_Operation * 196struct GNUNET_IDENTITY_Operation *
197GNUNET_IDENTITY_set (struct GNUNET_IDENTITY_Handle *id, 197GNUNET_IDENTITY_set(struct GNUNET_IDENTITY_Handle *id,
198 const char *service_name, 198 const char *service_name,
199 struct GNUNET_IDENTITY_Ego *ego, 199 struct GNUNET_IDENTITY_Ego *ego,
200 GNUNET_IDENTITY_Continuation cont, 200 GNUNET_IDENTITY_Continuation cont,
201 void *cont_cls); 201 void *cont_cls);
202 202
203 203
204/** 204/**
@@ -207,7 +207,7 @@ GNUNET_IDENTITY_set (struct GNUNET_IDENTITY_Handle *id,
207 * @param h identity service to disconnect 207 * @param h identity service to disconnect
208 */ 208 */
209void 209void
210GNUNET_IDENTITY_disconnect (struct GNUNET_IDENTITY_Handle *h); 210GNUNET_IDENTITY_disconnect(struct GNUNET_IDENTITY_Handle *h);
211 211
212 212
213/** 213/**
@@ -234,10 +234,10 @@ typedef void (*GNUNET_IDENTITY_CreateContinuation) (
234 * @return handle to abort the operation 234 * @return handle to abort the operation
235 */ 235 */
236struct GNUNET_IDENTITY_Operation * 236struct GNUNET_IDENTITY_Operation *
237GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, 237GNUNET_IDENTITY_create(struct GNUNET_IDENTITY_Handle *id,
238 const char *name, 238 const char *name,
239 GNUNET_IDENTITY_CreateContinuation cont, 239 GNUNET_IDENTITY_CreateContinuation cont,
240 void *cont_cls); 240 void *cont_cls);
241 241
242 242
243/** 243/**
@@ -251,11 +251,11 @@ GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id,
251 * @return handle to abort the operation 251 * @return handle to abort the operation
252 */ 252 */
253struct GNUNET_IDENTITY_Operation * 253struct GNUNET_IDENTITY_Operation *
254GNUNET_IDENTITY_rename (struct GNUNET_IDENTITY_Handle *id, 254GNUNET_IDENTITY_rename(struct GNUNET_IDENTITY_Handle *id,
255 const char *old_name, 255 const char *old_name,
256 const char *new_name, 256 const char *new_name,
257 GNUNET_IDENTITY_Continuation cb, 257 GNUNET_IDENTITY_Continuation cb,
258 void *cb_cls); 258 void *cb_cls);
259 259
260 260
261/** 261/**
@@ -268,10 +268,10 @@ GNUNET_IDENTITY_rename (struct GNUNET_IDENTITY_Handle *id,
268 * @return handle to abort the operation 268 * @return handle to abort the operation
269 */ 269 */
270struct GNUNET_IDENTITY_Operation * 270struct GNUNET_IDENTITY_Operation *
271GNUNET_IDENTITY_delete (struct GNUNET_IDENTITY_Handle *id, 271GNUNET_IDENTITY_delete(struct GNUNET_IDENTITY_Handle *id,
272 const char *name, 272 const char *name,
273 GNUNET_IDENTITY_Continuation cb, 273 GNUNET_IDENTITY_Continuation cb,
274 void *cb_cls); 274 void *cb_cls);
275 275
276 276
277/** 277/**
@@ -283,7 +283,7 @@ GNUNET_IDENTITY_delete (struct GNUNET_IDENTITY_Handle *id,
283 * @param op operation to cancel 283 * @param op operation to cancel
284 */ 284 */
285void 285void
286GNUNET_IDENTITY_cancel (struct GNUNET_IDENTITY_Operation *op); 286GNUNET_IDENTITY_cancel(struct GNUNET_IDENTITY_Operation *op);
287 287
288 288
289/* ************* convenience API to lookup an ego ***************** */ 289/* ************* convenience API to lookup an ego ***************** */
@@ -314,10 +314,10 @@ struct GNUNET_IDENTITY_EgoLookup;
314 * @return NULL on error 314 * @return NULL on error
315 */ 315 */
316struct GNUNET_IDENTITY_EgoLookup * 316struct GNUNET_IDENTITY_EgoLookup *
317GNUNET_IDENTITY_ego_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg, 317GNUNET_IDENTITY_ego_lookup(const struct GNUNET_CONFIGURATION_Handle *cfg,
318 const char *name, 318 const char *name,
319 GNUNET_IDENTITY_EgoCallback cb, 319 GNUNET_IDENTITY_EgoCallback cb,
320 void *cb_cls); 320 void *cb_cls);
321 321
322 322
323/** 323/**
@@ -326,7 +326,7 @@ GNUNET_IDENTITY_ego_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg,
326 * @param el handle for lookup to abort 326 * @param el handle for lookup to abort
327 */ 327 */
328void 328void
329GNUNET_IDENTITY_ego_lookup_cancel (struct GNUNET_IDENTITY_EgoLookup *el); 329GNUNET_IDENTITY_ego_lookup_cancel(struct GNUNET_IDENTITY_EgoLookup *el);
330 330
331/** 331/**
332 * Function called with the result. 332 * Function called with the result.
@@ -360,10 +360,10 @@ struct GNUNET_IDENTITY_EgoSuffixLookup;
360 * @return handle to abort the operation 360 * @return handle to abort the operation
361 */ 361 */
362struct GNUNET_IDENTITY_EgoSuffixLookup * 362struct GNUNET_IDENTITY_EgoSuffixLookup *
363GNUNET_IDENTITY_ego_lookup_by_suffix (const struct GNUNET_CONFIGURATION_Handle *cfg, 363GNUNET_IDENTITY_ego_lookup_by_suffix(const struct GNUNET_CONFIGURATION_Handle *cfg,
364 const char *suffix, 364 const char *suffix,
365 GNUNET_IDENTITY_EgoSuffixCallback cb, 365 GNUNET_IDENTITY_EgoSuffixCallback cb,
366 void *cb_cls); 366 void *cb_cls);
367 367
368 368
369/** 369/**
@@ -372,7 +372,7 @@ GNUNET_IDENTITY_ego_lookup_by_suffix (const struct GNUNET_CONFIGURATION_Handle *
372 * @param el handle for lookup to abort 372 * @param el handle for lookup to abort
373 */ 373 */
374void 374void
375GNUNET_IDENTITY_ego_lookup_by_suffix_cancel (struct GNUNET_IDENTITY_EgoSuffixLookup *el); 375GNUNET_IDENTITY_ego_lookup_by_suffix_cancel(struct GNUNET_IDENTITY_EgoSuffixLookup *el);
376 376
377#if 0 /* keep Emacsens' auto-indent happy */ 377#if 0 /* keep Emacsens' auto-indent happy */
378{ 378{