diff options
author | Tristan Schwieren <tristan.schwieren@tum.de> | 2022-01-14 12:07:12 +0100 |
---|---|---|
committer | Tristan Schwieren <tristan.schwieren@tum.de> | 2022-01-14 12:07:12 +0100 |
commit | 72c767297c768ec062b3eb74b524f3941e585a7d (patch) | |
tree | 6e7df9e62a62f2edaf95c2d9f7c401d7fc3d7b94 | |
parent | 17ebd833fcffcf569cb488c020a3b38cbc154387 (diff) | |
download | gnunet-72c767297c768ec062b3eb74b524f3941e585a7d.tar.gz gnunet-72c767297c768ec062b3eb74b524f3941e585a7d.zip |
-w3cvc embedded proof
-rw-r--r-- | src/reclaim/Makefile.am | 17 | ||||
-rw-r--r-- | src/reclaim/libgnunet_reclaim_vc_crypto.c (renamed from src/reclaim/plugin_reclaim_vc_embedded_proof.c) | 8 | ||||
-rw-r--r-- | src/reclaim/libgnunet_reclaim_vc_crypto.h (renamed from src/reclaim/plugin_reclaim_vc_embedded_proof.h) | 4 | ||||
-rw-r--r-- | src/reclaim/plugin_reclaim_credential_vc.c | 2 |
4 files changed, 14 insertions, 17 deletions
diff --git a/src/reclaim/Makefile.am b/src/reclaim/Makefile.am index e7b5a578f..8f06282d8 100644 --- a/src/reclaim/Makefile.am +++ b/src/reclaim/Makefile.am | |||
@@ -15,6 +15,7 @@ REST_PLUGIN = \ | |||
15 | 15 | ||
16 | CREDENTIAL_PLUGIN = \ | 16 | CREDENTIAL_PLUGIN = \ |
17 | libgnunet_plugin_reclaim_credential_jwt.la \ | 17 | libgnunet_plugin_reclaim_credential_jwt.la \ |
18 | libgnunet_reclaim_vc_crypto.la \ | ||
18 | libgnunet_plugin_reclaim_credential_vc.la | 19 | libgnunet_plugin_reclaim_credential_vc.la |
19 | 20 | ||
20 | if HAVE_PABC | 21 | if HAVE_PABC |
@@ -172,26 +173,26 @@ libgnunet_plugin_reclaim_credential_jwt_la_LIBADD = \ | |||
172 | libgnunet_plugin_reclaim_credential_jwt_la_LDFLAGS = \ | 173 | libgnunet_plugin_reclaim_credential_jwt_la_LDFLAGS = \ |
173 | $(GN_PLUGIN_LDFLAGS) | 174 | $(GN_PLUGIN_LDFLAGS) |
174 | 175 | ||
176 | libgnunet_reclaim_vc_crypto_la_SOURCES = \ | ||
177 | libgnunet_reclaim_vc_crypto.c | ||
178 | libgnunet_reclaim_vc_crypto_la_LIBADD = \ | ||
179 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
180 | $(top_builddir)/src/identity/libgnunetidentity.la \ | ||
181 | -ljansson\ | ||
182 | $(LTLIBINTL) | ||
175 | 183 | ||
176 | libgnunet_plugin_reclaim_credential_vc_la_SOURCES = \ | 184 | libgnunet_plugin_reclaim_credential_vc_la_SOURCES = \ |
177 | plugin_reclaim_credential_vc.c | 185 | plugin_reclaim_credential_vc.c |
178 | libgnunet_plugin_reclaim_credential_vc_la_LIBADD = \ | 186 | libgnunet_plugin_reclaim_credential_vc_la_LIBADD = \ |
179 | $(top_builddir)/src/util/libgnunetutil.la \ | 187 | $(top_builddir)/src/util/libgnunetutil.la \ |
180 | $(top_builddir)/src/identity/libgnunetidentity.la \ | 188 | $(top_builddir)/src/identity/libgnunetidentity.la \ |
189 | $(top_builddir)/src/reclaim/libgnunetreclaimvccrypto.la \ | ||
181 | libgnunetreclaim.la \ | 190 | libgnunetreclaim.la \ |
182 | -ljansson\ | 191 | -ljansson\ |
183 | $(LTLIBINTL) | 192 | $(LTLIBINTL) |
184 | libgnunet_plugin_reclaim_credential_vc_la_LDFLAGS = \ | 193 | libgnunet_plugin_reclaim_credential_vc_la_LDFLAGS = \ |
185 | $(GN_PLUGIN_LDFLAGS) | 194 | $(GN_PLUGIN_LDFLAGS) |
186 | 195 | ||
187 | libgnunet_plugin_reclaim_vc_embedded_proof_la_SOURCES = \ | ||
188 | plugin_reclaim_vc_embedded_proof.c | ||
189 | libgnunet_plugin_reclaim_vc_embedded_proof_la_LIBADD = \ | ||
190 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
191 | $(top_builddir)/src/identity/libgnunetidentity.la \ | ||
192 | -ljansson\ | ||
193 | $(LTLIBINTL) | ||
194 | |||
195 | gnunet_reclaim_SOURCES = \ | 196 | gnunet_reclaim_SOURCES = \ |
196 | gnunet-reclaim.c | 197 | gnunet-reclaim.c |
197 | gnunet_reclaim_LDADD = \ | 198 | gnunet_reclaim_LDADD = \ |
diff --git a/src/reclaim/plugin_reclaim_vc_embedded_proof.c b/src/reclaim/libgnunet_reclaim_vc_crypto.c index 49bc710aa..018e9bd93 100644 --- a/src/reclaim/plugin_reclaim_vc_embedded_proof.c +++ b/src/reclaim/libgnunet_reclaim_vc_crypto.c | |||
@@ -19,14 +19,13 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file reclaim/reclaim_vc_embedded_proof.c | 22 | * @file reclaim/libgnunet_reclaim_vc_crypto.c |
23 | * @author Tristan Schwieren | 23 | * @author Tristan Schwieren |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "gnunet_util_lib.h" | 26 | #include "gnunet_util_lib.h" |
27 | #include "gnunet_identity_service.h" | 27 | #include "gnunet_identity_service.h" |
28 | #include "gnunet_signatures.h" | 28 | #include "gnunet_signatures.h" |
29 | #include "gnunet_strings_lib.h" | ||
30 | #include <jansson.h> | 29 | #include <jansson.h> |
31 | 30 | ||
32 | 31 | ||
@@ -101,7 +100,7 @@ verify_vp(char * vp) | |||
101 | 100 | ||
102 | char * data; | 101 | char * data; |
103 | json_t * proof; | 102 | json_t * proof; |
104 | char * verification_method; | 103 | const char * verification_method; |
105 | char * pubk_str; | 104 | char * pubk_str; |
106 | struct GNUNET_IDENTITY_PublicKey * pubk; | 105 | struct GNUNET_IDENTITY_PublicKey * pubk; |
107 | 106 | ||
@@ -114,7 +113,7 @@ verify_vp(char * vp) | |||
114 | void * sig_buf; | 113 | void * sig_buf; |
115 | ssize_t sig_buf_size; | 114 | ssize_t sig_buf_size; |
116 | 115 | ||
117 | char * sig_str; | 116 | const char * sig_str; |
118 | ssize_t sig_str_size; | 117 | ssize_t sig_str_size; |
119 | 118 | ||
120 | int valid; | 119 | int valid; |
@@ -144,7 +143,6 @@ verify_vp(char * vp) | |||
144 | 143 | ||
145 | free(proof); | 144 | free(proof); |
146 | free(pres); | 145 | free(pres); |
147 | free(sig_str); | ||
148 | free(sig_buf); | 146 | free(sig_buf); |
149 | 147 | ||
150 | // Generate Purpose | 148 | // Generate Purpose |
diff --git a/src/reclaim/plugin_reclaim_vc_embedded_proof.h b/src/reclaim/libgnunet_reclaim_vc_crypto.h index 8fb3a8390..a75ac104d 100644 --- a/src/reclaim/plugin_reclaim_vc_embedded_proof.h +++ b/src/reclaim/libgnunet_reclaim_vc_crypto.h | |||
@@ -19,14 +19,12 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file reclaim/reclaim_vc_embedded_proof.c | 22 | * @file reclaim/libgnunet_reclaim_vc_crypto.h |
23 | * @author Tristan Schwieren | 23 | * @author Tristan Schwieren |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "gnunet_util_lib.h" | 26 | #include "gnunet_util_lib.h" |
27 | #include "gnunet_identity_service.h" | 27 | #include "gnunet_identity_service.h" |
28 | #include "gnunet_signatures.h" | ||
29 | #include "gnunet_strings_lib.h" | ||
30 | #include <jansson.h> | 28 | #include <jansson.h> |
31 | 29 | ||
32 | 30 | ||
diff --git a/src/reclaim/plugin_reclaim_credential_vc.c b/src/reclaim/plugin_reclaim_credential_vc.c index 1ba702f7e..835c42f17 100644 --- a/src/reclaim/plugin_reclaim_credential_vc.c +++ b/src/reclaim/plugin_reclaim_credential_vc.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include "gnunet_reclaim_plugin.h" | 30 | #include "gnunet_reclaim_plugin.h" |
31 | #include "gnunet_identity_service.h" | 31 | #include "gnunet_identity_service.h" |
32 | #include "gnunet_signatures.h" | 32 | #include "gnunet_signatures.h" |
33 | #include "plugin_reclaim_vc_embedded_proof.h" | 33 | #include "libgnunet_reclaim_vc_crypto.h" |
34 | #include <inttypes.h> | 34 | #include <inttypes.h> |
35 | #include <jansson.h> | 35 | #include <jansson.h> |
36 | 36 | ||