[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 37/70: -did not working remove
From: |
gnunet |
Subject: |
[gnunet] 37/70: -did not working remove |
Date: |
Wed, 31 Aug 2022 18:00:31 +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 74803406fced5b327af034d52621ddc2e105f0aa
Author: Tristan Schwieren <tristan.schwieren@tum.de>
AuthorDate: Tue Dec 14 19:39:22 2021 +0100
-did not working remove
---
src/did/gnunet-did.c | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/src/did/gnunet-did.c b/src/did/gnunet-did.c
index 62047beaf..f5dfc4f43 100644
--- a/src/did/gnunet-did.c
+++ b/src/did/gnunet-did.c
@@ -231,7 +231,7 @@ resolve_did_document()
typedef void
(*remove_did_document_callback) (void * cls);
-struct remove_did_document_cont_cls {
+struct event {
remove_did_document_callback cont;
void * cls;
};
@@ -240,7 +240,7 @@ struct remove_did_document_cont_cls {
* @brief Callback after the DID has been removed
*/
static void
-remove_did_cb(void * cls){
+remove_did_cb(void * arg){
// Test if record was removed from Namestore
printf("DID Document has been removed\n");
GNUNET_SCHEDULER_add_now(cleanup, NULL);
@@ -266,8 +266,7 @@ remove_did_ego_lookup_cb(void * cls, struct
GNUNET_IDENTITY_Ego * ego){
// .flags = GNUNET_GNSRECORD_RF_NONE
//};
- struct remove_did_document_cont_cls * blob = (struct
remove_did_document_cont_cls *) cls;
- printf("2: %d\n", * ((int *) (blob->cls)));
+ printf("2: %d\n", * (int *) cls);
//GNUNET_NAMESTORE_records_store (namestore_handle,
// skey,
@@ -291,13 +290,23 @@ remove_did_document(remove_did_document_callback cont,
void * cls)
ret = 1;
return;
} else {
- struct remove_did_document_cont_cls blob = {cont, cls};
- printf("1: %d\n", * (int *) blob.cls);
+ //struct remove_did_document_cont_cls * blob = malloc(sizeof(*
blob));
+ //blob->cont = (remove_did_document_callback *)
malloc(sizeof(*cont));
+ //memcpy(blob->cont, cont, sizeof(*cont));
+
+ struct event * blob = malloc(sizeof(struct event));
+ //blob->cont = malloc(sizeof(remove_did_document_callback));
+ blob->cls = malloc(sizeof(*cls));
+
+ //memcpy(blob->cont, cont, sizeof(*cont));
+ memcpy(blob->cls, cls, sizeof(*cls));
+
+ printf("1: %d\n", * (int *) blob->cls);
GNUNET_IDENTITY_ego_lookup(my_cfg,
attr_ego,
&remove_did_ego_lookup_cb,
- (void *) &blob);
+ blob);
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] 26/70: - DID remove, (continued)
- [gnunet] 26/70: - DID remove, gnunet, 2022/08/31
- [gnunet] 16/70: -did not working remove abstraction, gnunet, 2022/08/31
- [gnunet] 14/70: -did show did and refactor, gnunet, 2022/08/31
- [gnunet] 15/70: Merge branch 'dev/trizuz/dids' of git+ssh://git.gnunet.org/gnunet into dev/trizuz/dids, gnunet, 2022/08/31
- [gnunet] 20/70: -did not working key check, gnunet, 2022/08/31
- [gnunet] 29/70: - did working remove, gnunet, 2022/08/31
- [gnunet] 32/70: -did show did and refactor, gnunet, 2022/08/31
- [gnunet] 23/70: DID:Initial commit, gnunet, 2022/08/31
- [gnunet] 34/70: -proper license header, gnunet, 2022/08/31
- [gnunet] 28/70: - Not working did remove, gnunet, 2022/08/31
- [gnunet] 37/70: -did not working remove,
gnunet <=
- [gnunet] 40/70: -did not working key check, gnunet, 2022/08/31
- [gnunet] 48/70: - started DID refactor, gnunet, 2022/08/31
- [gnunet] 41/70: -did key check, gnunet, 2022/08/31
- [gnunet] 56/70: -header DID core, gnunet, 2022/08/31
- [gnunet] 58/70: - missing lib bug, gnunet, 2022/08/31
- [gnunet] 70/70: -fixup merge, gnunet, 2022/08/31
- [gnunet] 52/70: - working did lib and 1. test for did helper, gnunet, 2022/08/31
- [gnunet] 62/70: - refactored DID create, gnunet, 2022/08/31
- [gnunet] 49/70: - init did test, gnunet, 2022/08/31
- [gnunet] 42/70: -did mulitbase key and assert method for VCs, gnunet, 2022/08/31