[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 67/70: - DID lib; formatting
From: |
gnunet |
Subject: |
[gnunet] 67/70: - DID lib; formatting |
Date: |
Wed, 31 Aug 2022 18:01:01 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit dcdb638c4159602b0ddb7c6729e07d044e88392b
Author: Tristan Schwieren <tristan.schwieren@tum.de>
AuthorDate: Fri Jul 8 12:52:48 2022 +0200
- DID lib; formatting
---
src/reclaim/did_core.c | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/src/reclaim/did_core.c b/src/reclaim/did_core.c
index 574e3938d..69331c6ea 100644
--- a/src/reclaim/did_core.c
+++ b/src/reclaim/did_core.c
@@ -66,7 +66,8 @@ DID_resolve_gns_lookup_cb (
free (cls);
if (rd_count != 1)
- cb (GNUNET_NO, "An ego should only have one DID Document",
cls_did_resolve_cb);
+ cb (GNUNET_NO, "An ego should only have one DID Document",
+ cls_did_resolve_cb);
if (rd[0].record_type == GNUNET_DNSPARSER_TYPE_TXT)
{
@@ -100,13 +101,18 @@ DID_resolve (const char *did,
return GNUNET_NO;
// Create closure for lookup callback
- struct DID_resolve_return *cls_gns_lookup_cb = malloc (sizeof(struct
DID_resolve_return));
+ struct DID_resolve_return *cls_gns_lookup_cb
+ = malloc (sizeof(struct DID_resolve_return));
cls_gns_lookup_cb->cb = cont;
cls_gns_lookup_cb->cls = cls;
- GNUNET_GNS_lookup (gns_handle, DID_DOCUMENT_LABEL, &pkey,
+ GNUNET_GNS_lookup (gns_handle,
+ DID_DOCUMENT_LABEL,
+ &pkey,
GNUNET_DNSPARSER_TYPE_TXT,
- GNUNET_GNS_LO_DEFAULT, &DID_resolve_gns_lookup_cb,
cls_gns_lookup_cb);
+ GNUNET_GNS_LO_DEFAULT,
+ &DID_resolve_gns_lookup_cb,
+ cls_gns_lookup_cb);
return GNUNET_OK;
}
@@ -195,7 +201,8 @@ DID_create_namestore_lookup_cb (void *cls,
record_data.flags = GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION;
// Create closure for record store callback
- struct DID_action_return *cls_record_store_cb = malloc (sizeof(struct
DID_action_return));
+ struct DID_action_return *cls_record_store_cb
+ = malloc (sizeof(struct DID_action_return));
cls_record_store_cb->cb = cont;
cls_record_store_cb->cls = cls1;
@@ -209,8 +216,8 @@ DID_create_namestore_lookup_cb (void *cls,
(void *) cls_record_store_cb);
}
-
- free(cls);
+
+ free (cls);
}
/**
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] 60/70: - started with DID lib create func, (continued)
- [gnunet] 60/70: - started with DID lib create func, gnunet, 2022/08/31
- [gnunet] 54/70: - default did document test without multibase, gnunet, 2022/08/31
- [gnunet] 68/70: - DID lib; simplify closure, gnunet, 2022/08/31
- [gnunet] 30/70: -DID refactor, uncrustify, not working didd create, gnunet, 2022/08/31
- [gnunet] 31/70: - did not working create, gnunet, 2022/08/31
- [gnunet] 46/70: -code review, gnunet, 2022/08/31
- [gnunet] 53/70: - more tests, gnunet, 2022/08/31
- [gnunet] 61/70: - non working DID lib create func, gnunet, 2022/08/31
- [gnunet] 57/70: - changed did_core header, gnunet, 2022/08/31
- [gnunet] 59/70: - DID resolve using DID lib, gnunet, 2022/08/31
- [gnunet] 67/70: - DID lib; formatting,
gnunet <=
- [gnunet] 51/70: - trying to make did_helper a lib, gnunet, 2022/08/31
- [gnunet] 64/70: - didlib; use expire value, gnunet, 2022/08/31
- [gnunet] 69/70: - added gitignores, gnunet, 2022/08/31
- [gnunet] 65/70: -m DID lib; added check for existing DID document, gnunet, 2022/08/31
- [gnunet] 22/70: -did mulitbase key and assert method for VCs, gnunet, 2022/08/31
- [gnunet] 25/70: -forgot the .c..., gnunet, 2022/08/31