diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-10-23 07:26:30 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-23 07:26:30 +0200 |
commit | f94d9e793861c5e36d17f485c3c1a7053f86587e (patch) | |
tree | 2e992a5ad05d471ac34945eb768147a896d52d6a /src/pq/pq_result_helper.c | |
parent | be9b998b3369056c7c8fb0ae84fb4e2a064b496c (diff) | |
download | gnunet-f94d9e793861c5e36d17f485c3c1a7053f86587e.tar.gz gnunet-f94d9e793861c5e36d17f485c3c1a7053f86587e.zip |
-style fixes
Diffstat (limited to 'src/pq/pq_result_helper.c')
-rw-r--r-- | src/pq/pq_result_helper.c | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c index 23fb4f96e..f264603f4 100644 --- a/src/pq/pq_result_helper.c +++ b/src/pq/pq_result_helper.c | |||
@@ -127,10 +127,13 @@ GNUNET_PQ_result_spec_variable_size (const char *name, | |||
127 | void **dst, | 127 | void **dst, |
128 | size_t *sptr) | 128 | size_t *sptr) |
129 | { | 129 | { |
130 | struct GNUNET_PQ_ResultSpec res = | 130 | struct GNUNET_PQ_ResultSpec res = { |
131 | { &extract_varsize_blob, | 131 | .conv = &extract_varsize_blob, |
132 | &clean_varsize_blob, NULL, | 132 | .cleaner = &clean_varsize_blob, |
133 | (void *) (dst), 0, name, sptr }; | 133 | .dst = (void *) (dst), |
134 | .fname = name, | ||
135 | .result_size = sptr | ||
136 | }; | ||
134 | 137 | ||
135 | return res; | 138 | return res; |
136 | } | 139 | } |
@@ -207,10 +210,12 @@ GNUNET_PQ_result_spec_fixed_size (const char *name, | |||
207 | void *dst, | 210 | void *dst, |
208 | size_t dst_size) | 211 | size_t dst_size) |
209 | { | 212 | { |
210 | struct GNUNET_PQ_ResultSpec res = | 213 | struct GNUNET_PQ_ResultSpec res = { |
211 | { &extract_fixed_blob, | 214 | .conv = &extract_fixed_blob, |
212 | NULL, NULL, | 215 | .dst = (dst), |
213 | (dst), dst_size, name, NULL }; | 216 | .dst_size = dst_size, |
217 | .fname = name | ||
218 | }; | ||
214 | 219 | ||
215 | return res; | 220 | return res; |
216 | } | 221 | } |
@@ -301,11 +306,12 @@ struct GNUNET_PQ_ResultSpec | |||
301 | GNUNET_PQ_result_spec_rsa_public_key (const char *name, | 306 | GNUNET_PQ_result_spec_rsa_public_key (const char *name, |
302 | struct GNUNET_CRYPTO_RsaPublicKey **rsa) | 307 | struct GNUNET_CRYPTO_RsaPublicKey **rsa) |
303 | { | 308 | { |
304 | struct GNUNET_PQ_ResultSpec res = | 309 | struct GNUNET_PQ_ResultSpec res = { |
305 | { &extract_rsa_public_key, | 310 | .conv = &extract_rsa_public_key, |
306 | &clean_rsa_public_key, | 311 | .cleaner = &clean_rsa_public_key, |
307 | NULL, | 312 | .dst = (void *) rsa, |
308 | (void *) rsa, 0, name, NULL }; | 313 | .fname = name |
314 | }; | ||
309 | 315 | ||
310 | return res; | 316 | return res; |
311 | } | 317 | } |
@@ -395,11 +401,12 @@ struct GNUNET_PQ_ResultSpec | |||
395 | GNUNET_PQ_result_spec_rsa_signature (const char *name, | 401 | GNUNET_PQ_result_spec_rsa_signature (const char *name, |
396 | struct GNUNET_CRYPTO_RsaSignature **sig) | 402 | struct GNUNET_CRYPTO_RsaSignature **sig) |
397 | { | 403 | { |
398 | struct GNUNET_PQ_ResultSpec res = | 404 | struct GNUNET_PQ_ResultSpec res = { |
399 | { &extract_rsa_signature, | 405 | .conv = &extract_rsa_signature, |
400 | &clean_rsa_signature, | 406 | .cleaner = &clean_rsa_signature, |
401 | NULL, | 407 | .dst = (void *) sig, |
402 | (void *) sig, 0, (name), NULL }; | 408 | .fname = name |
409 | }; | ||
403 | 410 | ||
404 | return res; | 411 | return res; |
405 | } | 412 | } |