diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-12 19:07:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-12 19:07:40 +0000 |
commit | 6c471eeb15e27f8226492b4860a3c2acb94c5f25 (patch) | |
tree | a3a9dcba12ee5356c03056c10b7aba5367b2ef34 /src/core | |
parent | 16bcbbea7133fd2265d46bd2ae1dc70e8c9ba96f (diff) | |
download | gnunet-6c471eeb15e27f8226492b4860a3c2acb94c5f25.tar.gz gnunet-6c471eeb15e27f8226492b4860a3c2acb94c5f25.zip |
-consistently use struct GNUNET_HashCode
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_api.c | 2 | ||||
-rw-r--r-- | src/core/gnunet-service-core_clients.c | 2 | ||||
-rw-r--r-- | src/core/gnunet-service-core_kx.c | 6 | ||||
-rw-r--r-- | src/core/gnunet-service-core_neighbours.c | 2 | ||||
-rw-r--r-- | src/core/gnunet-service-core_sessions.c | 8 |
5 files changed, 10 insertions, 10 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index 616528b5d..42077f3a3 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -357,7 +357,7 @@ reconnect_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
357 | * @return GNUNET_YES (continue) | 357 | * @return GNUNET_YES (continue) |
358 | */ | 358 | */ |
359 | static int | 359 | static int |
360 | disconnect_and_free_peer_entry (void *cls, const GNUNET_HashCode * key, | 360 | disconnect_and_free_peer_entry (void *cls, const struct GNUNET_HashCode * key, |
361 | void *value) | 361 | void *value) |
362 | { | 362 | { |
363 | struct GNUNET_CORE_Handle *h = cls; | 363 | struct GNUNET_CORE_Handle *h = cls; |
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index 72b5b8803..2f04ba57d 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c | |||
@@ -559,7 +559,7 @@ client_tokenizer_callback (void *cls, void *client, | |||
559 | * @return GNUNET_YES (continue iteration) | 559 | * @return GNUNET_YES (continue iteration) |
560 | */ | 560 | */ |
561 | static int | 561 | static int |
562 | destroy_active_client_request (void *cls, const GNUNET_HashCode * key, | 562 | destroy_active_client_request (void *cls, const struct GNUNET_HashCode * key, |
563 | void *value) | 563 | void *value) |
564 | { | 564 | { |
565 | struct GSC_ClientActiveRequest *car = value; | 565 | struct GSC_ClientActiveRequest *car = value; |
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index 1fce2e528..31f5bb494 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c | |||
@@ -207,7 +207,7 @@ struct EncryptedMessage | |||
207 | * (excluding this value itself) will be encrypted and authenticated. | 207 | * (excluding this value itself) will be encrypted and authenticated. |
208 | * ENCRYPTED_HEADER_SIZE must be set to the offset of the *next* field. | 208 | * ENCRYPTED_HEADER_SIZE must be set to the offset of the *next* field. |
209 | */ | 209 | */ |
210 | GNUNET_HashCode hmac; | 210 | struct GNUNET_HashCode hmac; |
211 | 211 | ||
212 | /** | 212 | /** |
213 | * Sequence number, in network byte order. This field | 213 | * Sequence number, in network byte order. This field |
@@ -1513,7 +1513,7 @@ GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx, | |||
1513 | { | 1513 | { |
1514 | const struct EncryptedMessage *m; | 1514 | const struct EncryptedMessage *m; |
1515 | struct EncryptedMessage *pt; /* plaintext */ | 1515 | struct EncryptedMessage *pt; /* plaintext */ |
1516 | GNUNET_HashCode ph; | 1516 | struct GNUNET_HashCode ph; |
1517 | uint32_t snum; | 1517 | uint32_t snum; |
1518 | struct GNUNET_TIME_Absolute t; | 1518 | struct GNUNET_TIME_Absolute t; |
1519 | struct GNUNET_CRYPTO_AesInitializationVector iv; | 1519 | struct GNUNET_CRYPTO_AesInitializationVector iv; |
@@ -1550,7 +1550,7 @@ GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx, | |||
1550 | kx->decrypt_key_created); | 1550 | kx->decrypt_key_created); |
1551 | GNUNET_CRYPTO_hmac (&auth_key, &m->sequence_number, | 1551 | GNUNET_CRYPTO_hmac (&auth_key, &m->sequence_number, |
1552 | size - ENCRYPTED_HEADER_SIZE, &ph); | 1552 | size - ENCRYPTED_HEADER_SIZE, &ph); |
1553 | if (0 != memcmp (&ph, &m->hmac, sizeof (GNUNET_HashCode))) | 1553 | if (0 != memcmp (&ph, &m->hmac, sizeof (struct GNUNET_HashCode))) |
1554 | { | 1554 | { |
1555 | /* checksum failed */ | 1555 | /* checksum failed */ |
1556 | GNUNET_break_op (0); | 1556 | GNUNET_break_op (0); |
diff --git a/src/core/gnunet-service-core_neighbours.c b/src/core/gnunet-service-core_neighbours.c index 97737a63a..65b4ba41a 100644 --- a/src/core/gnunet-service-core_neighbours.c +++ b/src/core/gnunet-service-core_neighbours.c | |||
@@ -486,7 +486,7 @@ GSC_NEIGHBOURS_init () | |||
486 | * @return GNUNET_OK (continue to iterate) | 486 | * @return GNUNET_OK (continue to iterate) |
487 | */ | 487 | */ |
488 | static int | 488 | static int |
489 | free_neighbour_helper (void *cls, const GNUNET_HashCode * key, void *value) | 489 | free_neighbour_helper (void *cls, const struct GNUNET_HashCode * key, void *value) |
490 | { | 490 | { |
491 | struct Neighbour *n = value; | 491 | struct Neighbour *n = value; |
492 | 492 | ||
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c index 054ad97f4..fa69134cb 100644 --- a/src/core/gnunet-service-core_sessions.c +++ b/src/core/gnunet-service-core_sessions.c | |||
@@ -283,7 +283,7 @@ GSC_SESSIONS_create (const struct GNUNET_PeerIdentity *peer, | |||
283 | * @return GNUNET_OK (continue to iterate) | 283 | * @return GNUNET_OK (continue to iterate) |
284 | */ | 284 | */ |
285 | static int | 285 | static int |
286 | notify_client_about_session (void *cls, const GNUNET_HashCode * key, | 286 | notify_client_about_session (void *cls, const struct GNUNET_HashCode * key, |
287 | void *value) | 287 | void *value) |
288 | { | 288 | { |
289 | struct GSC_Client *client = cls; | 289 | struct GSC_Client *client = cls; |
@@ -549,7 +549,7 @@ try_transmission (struct Session *session) | |||
549 | * @return always GNUNET_OK | 549 | * @return always GNUNET_OK |
550 | */ | 550 | */ |
551 | static int | 551 | static int |
552 | do_send_message (void *cls, const GNUNET_HashCode * key, void *value) | 552 | do_send_message (void *cls, const struct GNUNET_HashCode * key, void *value) |
553 | { | 553 | { |
554 | const struct GNUNET_MessageHeader *hdr = cls; | 554 | const struct GNUNET_MessageHeader *hdr = cls; |
555 | struct Session *session = value; | 555 | struct Session *session = value; |
@@ -642,7 +642,7 @@ GSC_SESSIONS_transmit (struct GSC_ClientActiveRequest *car, | |||
642 | */ | 642 | */ |
643 | #include "core.h" | 643 | #include "core.h" |
644 | static int | 644 | static int |
645 | queue_connect_message (void *cls, const GNUNET_HashCode * key, void *value) | 645 | queue_connect_message (void *cls, const struct GNUNET_HashCode * key, void *value) |
646 | { | 646 | { |
647 | struct GNUNET_SERVER_TransmitContext *tc = cls; | 647 | struct GNUNET_SERVER_TransmitContext *tc = cls; |
648 | struct Session *session = value; | 648 | struct Session *session = value; |
@@ -795,7 +795,7 @@ GSC_SESSIONS_init () | |||
795 | * @return GNUNET_OK (continue to iterate) | 795 | * @return GNUNET_OK (continue to iterate) |
796 | */ | 796 | */ |
797 | static int | 797 | static int |
798 | free_session_helper (void *cls, const GNUNET_HashCode * key, void *value) | 798 | free_session_helper (void *cls, const struct GNUNET_HashCode * key, void *value) |
799 | { | 799 | { |
800 | struct Session *session = value; | 800 | struct Session *session = value; |
801 | 801 | ||