diff options
author | Willow Liquorice <willow@howhill.com> | 2022-08-31 22:52:31 +0100 |
---|---|---|
committer | Willow Liquorice <willow@howhill.com> | 2022-10-03 00:44:24 +0100 |
commit | 308d54a985e18dd8765bf9cc394c16a21d2ee456 (patch) | |
tree | 4ade00858d44c92708a8b8061f0672883690b047 /src/reclaim | |
parent | 8367a2ac29f3c439df13391ac95e6785583888c1 (diff) | |
download | gnunet-308d54a985e18dd8765bf9cc394c16a21d2ee456.tar.gz gnunet-308d54a985e18dd8765bf9cc394c16a21d2ee456.zip |
-DOC: Pass through RECLAIM subsystem
Diffstat (limited to 'src/reclaim')
-rw-r--r-- | src/reclaim/reclaim_api.c | 50 | ||||
-rw-r--r-- | src/reclaim/reclaim_attribute.c | 8 | ||||
-rw-r--r-- | src/reclaim/reclaim_credential.c | 43 |
3 files changed, 0 insertions, 101 deletions
diff --git a/src/reclaim/reclaim_api.c b/src/reclaim/reclaim_api.c index bc6b835c9..a61505d62 100644 --- a/src/reclaim/reclaim_api.c +++ b/src/reclaim/reclaim_api.c | |||
@@ -1076,14 +1076,6 @@ GNUNET_RECLAIM_connect (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
1076 | } | 1076 | } |
1077 | 1077 | ||
1078 | 1078 | ||
1079 | /** | ||
1080 | * Cancel an operation. Note that the operation MAY still | ||
1081 | * be executed; this merely cancels the continuation; if the request | ||
1082 | * was already transmitted, the service may still choose to complete | ||
1083 | * the operation. | ||
1084 | * | ||
1085 | * @param op operation to cancel | ||
1086 | */ | ||
1087 | void | 1079 | void |
1088 | GNUNET_RECLAIM_cancel (struct GNUNET_RECLAIM_Operation *op) | 1080 | GNUNET_RECLAIM_cancel (struct GNUNET_RECLAIM_Operation *op) |
1089 | { | 1081 | { |
@@ -1210,18 +1202,6 @@ GNUNET_RECLAIM_attribute_delete ( | |||
1210 | } | 1202 | } |
1211 | 1203 | ||
1212 | 1204 | ||
1213 | /** | ||
1214 | * Store an credential. If the credential is already present, | ||
1215 | * it is replaced with the new credential. | ||
1216 | * | ||
1217 | * @param h handle to the re:claimID service | ||
1218 | * @param pkey private key of the identity | ||
1219 | * @param attr the credential value | ||
1220 | * @param exp_interval the relative expiration interval for the credential | ||
1221 | * @param cont continuation to call when done | ||
1222 | * @param cont_cls closure for @a cont | ||
1223 | * @return handle to abort the request | ||
1224 | */ | ||
1225 | struct GNUNET_RECLAIM_Operation * | 1205 | struct GNUNET_RECLAIM_Operation * |
1226 | GNUNET_RECLAIM_credential_store ( | 1206 | GNUNET_RECLAIM_credential_store ( |
1227 | struct GNUNET_RECLAIM_Handle *h, | 1207 | struct GNUNET_RECLAIM_Handle *h, |
@@ -1258,17 +1238,6 @@ GNUNET_RECLAIM_credential_store ( | |||
1258 | } | 1238 | } |
1259 | 1239 | ||
1260 | 1240 | ||
1261 | /** | ||
1262 | * Delete an credential. Tickets used to share this credential are updated | ||
1263 | * accordingly. | ||
1264 | * | ||
1265 | * @param h handle to the re:claimID service | ||
1266 | * @param pkey Private key of the identity to add an attribute to | ||
1267 | * @param attr The credential | ||
1268 | * @param cont Continuation to call when done | ||
1269 | * @param cont_cls Closure for @a cont | ||
1270 | * @return handle Used to to abort the request | ||
1271 | */ | ||
1272 | struct GNUNET_RECLAIM_Operation * | 1241 | struct GNUNET_RECLAIM_Operation * |
1273 | GNUNET_RECLAIM_credential_delete ( | 1242 | GNUNET_RECLAIM_credential_delete ( |
1274 | struct GNUNET_RECLAIM_Handle *h, | 1243 | struct GNUNET_RECLAIM_Handle *h, |
@@ -1366,12 +1335,6 @@ GNUNET_RECLAIM_get_attributes_start ( | |||
1366 | } | 1335 | } |
1367 | 1336 | ||
1368 | 1337 | ||
1369 | /** | ||
1370 | * Calls the record processor specified in #GNUNET_RECLAIM_get_attributes_start | ||
1371 | * for the next record. | ||
1372 | * | ||
1373 | * @param it the iterator | ||
1374 | */ | ||
1375 | void | 1338 | void |
1376 | GNUNET_RECLAIM_get_attributes_next (struct GNUNET_RECLAIM_AttributeIterator *it) | 1339 | GNUNET_RECLAIM_get_attributes_next (struct GNUNET_RECLAIM_AttributeIterator *it) |
1377 | { | 1340 | { |
@@ -1524,19 +1487,6 @@ GNUNET_RECLAIM_get_credentials_stop (struct | |||
1524 | } | 1487 | } |
1525 | 1488 | ||
1526 | 1489 | ||
1527 | /** | ||
1528 | * Issues a ticket to another relying party. The identity may use | ||
1529 | * @GNUNET_RECLAIM_ticket_consume to consume the ticket | ||
1530 | * and retrieve the attributes specified in the attribute list. | ||
1531 | * | ||
1532 | * @param h the reclaim to use | ||
1533 | * @param iss the issuing identity (= the user) | ||
1534 | * @param rp the subject of the ticket (= the relying party) | ||
1535 | * @param attrs the attributes that the relying party is given access to | ||
1536 | * @param cb the callback | ||
1537 | * @param cb_cls the callback closure | ||
1538 | * @return handle to abort the operation | ||
1539 | */ | ||
1540 | struct GNUNET_RECLAIM_Operation * | 1490 | struct GNUNET_RECLAIM_Operation * |
1541 | GNUNET_RECLAIM_ticket_issue ( | 1491 | GNUNET_RECLAIM_ticket_issue ( |
1542 | struct GNUNET_RECLAIM_Handle *h, | 1492 | struct GNUNET_RECLAIM_Handle *h, |
diff --git a/src/reclaim/reclaim_attribute.c b/src/reclaim/reclaim_attribute.c index 560267578..5d7adb7e6 100644 --- a/src/reclaim/reclaim_attribute.c +++ b/src/reclaim/reclaim_attribute.c | |||
@@ -282,14 +282,6 @@ GNUNET_RECLAIM_attribute_new (const char *attr_name, | |||
282 | } | 282 | } |
283 | 283 | ||
284 | 284 | ||
285 | /** | ||
286 | * Add a new attribute to a claim list | ||
287 | * | ||
288 | * @param attr_name the name of the new attribute claim | ||
289 | * @param type the type of the claim | ||
290 | * @param data claim payload | ||
291 | * @param data_size claim payload size | ||
292 | */ | ||
293 | void | 285 | void |
294 | GNUNET_RECLAIM_attribute_list_add ( | 286 | GNUNET_RECLAIM_attribute_list_add ( |
295 | struct GNUNET_RECLAIM_AttributeList *al, | 287 | struct GNUNET_RECLAIM_AttributeList *al, |
diff --git a/src/reclaim/reclaim_credential.c b/src/reclaim/reclaim_credential.c index b4aeedf29..b1312f403 100644 --- a/src/reclaim/reclaim_credential.c +++ b/src/reclaim/reclaim_credential.c | |||
@@ -250,15 +250,6 @@ GNUNET_RECLAIM_credential_value_to_string (uint32_t type, | |||
250 | } | 250 | } |
251 | 251 | ||
252 | 252 | ||
253 | /** | ||
254 | * Create a new credential. | ||
255 | * | ||
256 | * @param attr_name the credential name | ||
257 | * @param type the credential type | ||
258 | * @param data the credential value | ||
259 | * @param data_size the credential value size | ||
260 | * @return the new credential | ||
261 | */ | ||
262 | struct GNUNET_RECLAIM_Credential * | 253 | struct GNUNET_RECLAIM_Credential * |
263 | GNUNET_RECLAIM_credential_new (const char *attr_name, | 254 | GNUNET_RECLAIM_credential_new (const char *attr_name, |
264 | uint32_t type, | 255 | uint32_t type, |
@@ -339,13 +330,6 @@ GNUNET_RECLAIM_credential_list_serialize ( | |||
339 | } | 330 | } |
340 | 331 | ||
341 | 332 | ||
342 | /** | ||
343 | * Deserialize an credential list | ||
344 | * | ||
345 | * @param data the serialized attribute list | ||
346 | * @param data_size the length of the serialized data | ||
347 | * @return a GNUNET_IDENTITY_PROVIDER_AttributeList, must be free'd by caller | ||
348 | */ | ||
349 | struct GNUNET_RECLAIM_CredentialList * | 333 | struct GNUNET_RECLAIM_CredentialList * |
350 | GNUNET_RECLAIM_credential_list_deserialize (const char *data, size_t data_size) | 334 | GNUNET_RECLAIM_credential_list_deserialize (const char *data, size_t data_size) |
351 | { | 335 | { |
@@ -454,13 +438,6 @@ GNUNET_RECLAIM_credential_serialize_get_size ( | |||
454 | } | 438 | } |
455 | 439 | ||
456 | 440 | ||
457 | /** | ||
458 | * Serialize an credential | ||
459 | * | ||
460 | * @param attr the credential to serialize | ||
461 | * @param result the serialized credential | ||
462 | * @return length of serialized data | ||
463 | */ | ||
464 | size_t | 441 | size_t |
465 | GNUNET_RECLAIM_credential_serialize ( | 442 | GNUNET_RECLAIM_credential_serialize ( |
466 | const struct GNUNET_RECLAIM_Credential *credential, | 443 | const struct GNUNET_RECLAIM_Credential *credential, |
@@ -627,12 +604,6 @@ GNUNET_RECLAIM_presentation_typename_to_number (const char *typename) | |||
627 | } | 604 | } |
628 | 605 | ||
629 | 606 | ||
630 | /** | ||
631 | * Convert an presentation type number to the corresponding presentation type string | ||
632 | * | ||
633 | * @param type number of a type | ||
634 | * @return corresponding typestring, NULL on error | ||
635 | */ | ||
636 | const char * | 607 | const char * |
637 | GNUNET_RECLAIM_presentation_number_to_typename (uint32_t type) | 608 | GNUNET_RECLAIM_presentation_number_to_typename (uint32_t type) |
638 | { | 609 | { |
@@ -758,13 +729,6 @@ GNUNET_RECLAIM_presentation_list_serialize_get_size ( | |||
758 | } | 729 | } |
759 | 730 | ||
760 | 731 | ||
761 | /** | ||
762 | * Serialize an attribute list | ||
763 | * | ||
764 | * @param attrs the attribute list to serialize | ||
765 | * @param result the serialized attribute | ||
766 | * @return length of serialized data | ||
767 | */ | ||
768 | size_t | 732 | size_t |
769 | GNUNET_RECLAIM_presentation_list_serialize ( | 733 | GNUNET_RECLAIM_presentation_list_serialize ( |
770 | const struct GNUNET_RECLAIM_PresentationList *presentations, | 734 | const struct GNUNET_RECLAIM_PresentationList *presentations, |
@@ -900,13 +864,6 @@ GNUNET_RECLAIM_presentation_serialize_get_size ( | |||
900 | } | 864 | } |
901 | 865 | ||
902 | 866 | ||
903 | /** | ||
904 | * Serialize an presentation | ||
905 | * | ||
906 | * @param attr the presentation to serialize | ||
907 | * @param result the serialized presentation | ||
908 | * @return length of serialized data | ||
909 | */ | ||
910 | size_t | 867 | size_t |
911 | GNUNET_RECLAIM_presentation_serialize ( | 868 | GNUNET_RECLAIM_presentation_serialize ( |
912 | const struct GNUNET_RECLAIM_Presentation *presentation, | 869 | const struct GNUNET_RECLAIM_Presentation *presentation, |