aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/reclaim.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-11-06 22:32:17 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-11-06 22:32:17 +0900
commitbc3d776dd38651fae221a06a198d427d28693673 (patch)
tree431cc5c6bed61073ef9362937de41a74e95cc723 /src/reclaim/reclaim.h
parent4db7f94ce6c8d6aed2b834c050b983de42f98718 (diff)
downloadgnunet-bc3d776dd38651fae221a06a198d427d28693673.tar.gz
gnunet-bc3d776dd38651fae221a06a198d427d28693673.zip
IPC: Convert all message payload lengths to uint16_t types.
Diffstat (limited to 'src/reclaim/reclaim.h')
-rw-r--r--src/reclaim/reclaim.h78
1 files changed, 54 insertions, 24 deletions
diff --git a/src/reclaim/reclaim.h b/src/reclaim/reclaim.h
index f457f47a8..9d5118269 100644
--- a/src/reclaim/reclaim.h
+++ b/src/reclaim/reclaim.h
@@ -57,12 +57,12 @@ struct AttributeStoreMessage
57 /** 57 /**
58 * The length of the attribute 58 * The length of the attribute
59 */ 59 */
60 uint32_t attr_len GNUNET_PACKED; 60 uint16_t attr_len GNUNET_PACKED;
61 61
62 /** 62 /**
63 * The length of the private key 63 * The length of the private key
64 */ 64 */
65 uint32_t key_len GNUNET_PACKED; 65 uint16_t key_len GNUNET_PACKED;
66 66
67 /* 67 /*
68 * followed by the zone private key 68 * followed by the zone private key
@@ -88,12 +88,12 @@ struct AttributeDeleteMessage
88 /** 88 /**
89 * The length of the attribute 89 * The length of the attribute
90 */ 90 */
91 uint32_t attr_len GNUNET_PACKED; 91 uint16_t attr_len GNUNET_PACKED;
92 92
93 /** 93 /**
94 * The length of the private key 94 * The length of the private key
95 */ 95 */
96 uint32_t key_len GNUNET_PACKED; 96 uint16_t key_len GNUNET_PACKED;
97 97
98 /* followed by the serialized attribute */ 98 /* followed by the serialized attribute */
99}; 99};
@@ -136,19 +136,24 @@ struct AttributeResultMessage
136 uint32_t id GNUNET_PACKED; 136 uint32_t id GNUNET_PACKED;
137 137
138 /** 138 /**
139 * Reserved (alignment)
140 */
141 uint16_t reserved GNUNET_PACKED;
142
143 /**
139 * Length of serialized attribute data 144 * Length of serialized attribute data
140 */ 145 */
141 uint32_t attr_len GNUNET_PACKED; 146 uint16_t attr_len GNUNET_PACKED;
142 147
143 /** 148 /**
144 * Length of serialized credential data 149 * Length of serialized credential data
145 */ 150 */
146 uint32_t credential_len GNUNET_PACKED; 151 uint16_t credential_len GNUNET_PACKED;
147 152
148 /** 153 /**
149 * The length of the public key 154 * The length of the public key
150 */ 155 */
151 uint32_t pkey_len GNUNET_PACKED; 156 uint16_t pkey_len GNUNET_PACKED;
152 157
153 /** 158 /**
154 * followed by the public key key. 159 * followed by the public key key.
@@ -175,12 +180,12 @@ struct CredentialResultMessage
175 /** 180 /**
176 * Length of serialized attribute data 181 * Length of serialized attribute data
177 */ 182 */
178 uint32_t credential_len GNUNET_PACKED; 183 uint16_t credential_len GNUNET_PACKED;
179 184
180 /** 185 /**
181 * The length of the public key 186 * The length of the public key
182 */ 187 */
183 uint32_t key_len GNUNET_PACKED; 188 uint16_t key_len GNUNET_PACKED;
184 189
185 /** 190 /**
186 * followed by the private key. 191 * followed by the private key.
@@ -206,9 +211,14 @@ struct AttributeIterationStartMessage
206 uint32_t id GNUNET_PACKED; 211 uint32_t id GNUNET_PACKED;
207 212
208 /** 213 /**
214 * Reserved (alignment)
215 */
216 uint16_t reserved GNUNET_PACKED;
217
218 /**
209 * The length of the private key 219 * The length of the private key
210 */ 220 */
211 uint32_t key_len GNUNET_PACKED; 221 uint16_t key_len GNUNET_PACKED;
212 222
213 /** 223 /**
214 * followed by the private key. 224 * followed by the private key.
@@ -249,9 +259,14 @@ struct CredentialIterationStartMessage
249 uint32_t id GNUNET_PACKED; 259 uint32_t id GNUNET_PACKED;
250 260
251 /** 261 /**
262 * Reserved (alignment)
263 */
264 uint16_t reserved GNUNET_PACKED;
265
266 /**
252 * The length of the private key 267 * The length of the private key
253 */ 268 */
254 uint32_t key_len GNUNET_PACKED; 269 uint16_t key_len GNUNET_PACKED;
255 270
256 /** 271 /**
257 * followed by the private key. 272 * followed by the private key.
@@ -325,9 +340,14 @@ struct TicketIterationStartMessage
325 uint32_t id GNUNET_PACKED; 340 uint32_t id GNUNET_PACKED;
326 341
327 /** 342 /**
343 * Reserved (alignment)
344 */
345 uint16_t reserved GNUNET_PACKED;
346
347 /**
328 * The length of the private key 348 * The length of the private key
329 */ 349 */
330 uint32_t key_len GNUNET_PACKED; 350 uint16_t key_len GNUNET_PACKED;
331 351
332 /** 352 /**
333 * followed by the private key. 353 * followed by the private key.
@@ -385,19 +405,24 @@ struct IssueTicketMessage
385 uint32_t id GNUNET_PACKED; 405 uint32_t id GNUNET_PACKED;
386 406
387 /** 407 /**
408 * Reserved (alignment)
409 */
410 uint16_t reserved GNUNET_PACKED;
411
412 /**
388 * length of serialized attribute list 413 * length of serialized attribute list
389 */ 414 */
390 uint32_t attr_len GNUNET_PACKED; 415 uint16_t attr_len GNUNET_PACKED;
391 416
392 /** 417 /**
393 * The length of the identity private key 418 * The length of the identity private key
394 */ 419 */
395 uint32_t key_len GNUNET_PACKED; 420 uint16_t key_len GNUNET_PACKED;
396 421
397 /** 422 /**
398 * The length of the relying party public key 423 * The length of the relying party public key
399 */ 424 */
400 uint32_t pkey_len GNUNET_PACKED; 425 uint16_t pkey_len GNUNET_PACKED;
401 426
402 /** 427 /**
403 * Followed by the private key. 428 * Followed by the private key.
@@ -424,12 +449,12 @@ struct RevokeTicketMessage
424 /** 449 /**
425 * The length of the private key 450 * The length of the private key
426 */ 451 */
427 uint32_t key_len GNUNET_PACKED; 452 uint16_t key_len GNUNET_PACKED;
428 453
429 /** 454 /**
430 * The length of the ticket 455 * The length of the ticket
431 */ 456 */
432 uint32_t tkt_len GNUNET_PACKED; 457 uint16_t tkt_len GNUNET_PACKED;
433 458
434 /** 459 /**
435 * Followed by the serialized ticket. 460 * Followed by the serialized ticket.
@@ -478,12 +503,12 @@ struct TicketResultMessage
478 /** 503 /**
479 * Ticket length 504 * Ticket length
480 */ 505 */
481 uint32_t tkt_len GNUNET_PACKED; 506 uint16_t tkt_len GNUNET_PACKED;
482 507
483 /** 508 /**
484 * Length of new presentations created 509 * Length of new presentations created
485 */ 510 */
486 uint32_t presentations_len GNUNET_PACKED; 511 uint16_t presentations_len GNUNET_PACKED;
487 512
488 /* 513 /*
489 * Followed by the serialized ticket 514 * Followed by the serialized ticket
@@ -509,12 +534,12 @@ struct ConsumeTicketMessage
509 /** 534 /**
510 * The length of the private key 535 * The length of the private key
511 */ 536 */
512 uint32_t key_len GNUNET_PACKED; 537 uint16_t key_len GNUNET_PACKED;
513 538
514 /** 539 /**
515 * The length of the ticket 540 * The length of the ticket
516 */ 541 */
517 uint32_t tkt_len GNUNET_PACKED; 542 uint16_t tkt_len GNUNET_PACKED;
518 543
519 /** 544 /**
520 * Followed by the private key. 545 * Followed by the private key.
@@ -543,19 +568,24 @@ struct ConsumeTicketResultMessage
543 uint32_t result GNUNET_PACKED; 568 uint32_t result GNUNET_PACKED;
544 569
545 /** 570 /**
571 * Reserved (alignment)
572 */
573 uint16_t reserved GNUNET_PACKED;
574
575 /**
546 * Length of serialized attribute data 576 * Length of serialized attribute data
547 */ 577 */
548 uint32_t attrs_len GNUNET_PACKED; 578 uint16_t attrs_len GNUNET_PACKED;
549 579
550 /** 580 /**
551 * Length of presentation data 581 * Length of presentation data
552 */ 582 */
553 uint32_t presentations_len; 583 uint16_t presentations_len;
554 584
555 /** 585 /**
556 * The length of the private key 586 * The length of the private key
557 */ 587 */
558 uint32_t key_len GNUNET_PACKED; 588 uint16_t key_len GNUNET_PACKED;
559 589
560 /** 590 /**
561 * Followed by the private key. 591 * Followed by the private key.