aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-06 14:18:31 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-06 14:18:31 +0000
commitfe76c075e315c0351e2fe465434ae39087daf014 (patch)
tree436887ccaf331932a3c13a8b9d2a2a710dad4be6 /src/transport/gnunet-service-transport_validation.c
parent7eb2835d8a494c83aedb720a2ac6f6e5ba23f22f (diff)
downloadgnunet-fe76c075e315c0351e2fe465434ae39087daf014.tar.gz
gnunet-fe76c075e315c0351e2fe465434ae39087daf014.zip
moving to new, fixed-size encoding of public and private ECC keys everywhere, also improving ECC API to better support ECRS/GADS operations
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r--src/transport/gnunet-service-transport_validation.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index 4ea0f07a6..087c52411 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -189,7 +189,7 @@ struct ValidationEntry
189 /** 189 /**
190 * Public key of the peer. 190 * Public key of the peer.
191 */ 191 */
192 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key; 192 struct GNUNET_CRYPTO_EccPublicKey public_key;
193 193
194 /** 194 /**
195 * The identity of the peer. FIXME: duplicated (also in 'address') 195 * The identity of the peer. FIXME: duplicated (also in 'address')
@@ -682,8 +682,8 @@ revalidate_address (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
682 * if we don't have an existing entry and no public key was given 682 * if we don't have an existing entry and no public key was given
683 */ 683 */
684static struct ValidationEntry * 684static struct ValidationEntry *
685find_validation_entry (const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded 685find_validation_entry (const struct GNUNET_CRYPTO_EccPublicKey *public_key,
686 *public_key, const struct GNUNET_HELLO_Address *address) 686 const struct GNUNET_HELLO_Address *address)
687{ 687{
688 struct ValidationEntryMatchContext vemc; 688 struct ValidationEntryMatchContext vemc;
689 struct ValidationEntry *ve; 689 struct ValidationEntry *ve;
@@ -737,7 +737,7 @@ add_valid_address (void *cls, const struct GNUNET_HELLO_Address *address,
737 struct ValidationEntry *ve; 737 struct ValidationEntry *ve;
738 struct GNUNET_PeerIdentity pid; 738 struct GNUNET_PeerIdentity pid;
739 struct GNUNET_ATS_Information ats; 739 struct GNUNET_ATS_Information ats;
740 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key; 740 struct GNUNET_CRYPTO_EccPublicKey public_key;
741 741
742 if (GNUNET_TIME_absolute_get_remaining (expiration).rel_value == 0) 742 if (GNUNET_TIME_absolute_get_remaining (expiration).rel_value == 0)
743 return GNUNET_OK; /* expired */ 743 return GNUNET_OK; /* expired */
@@ -857,8 +857,8 @@ GST_validation_stop ()
857 */ 857 */
858static void 858static void
859multicast_pong (void *cls, 859multicast_pong (void *cls,
860 const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded 860 const struct GNUNET_CRYPTO_EccPublicKey *public_key,
861 *public_key, struct GNUNET_TIME_Absolute valid_until, 861 struct GNUNET_TIME_Absolute valid_until,
862 struct GNUNET_TIME_Absolute validation_block, 862 struct GNUNET_TIME_Absolute validation_block,
863 const struct GNUNET_HELLO_Address *address) 863 const struct GNUNET_HELLO_Address *address)
864{ 864{
@@ -1139,7 +1139,7 @@ struct ValidateAddressContext
1139 /** 1139 /**
1140 * Public key of the peer whose address is being validated. 1140 * Public key of the peer whose address is being validated.
1141 */ 1141 */
1142 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key; 1142 struct GNUNET_CRYPTO_EccPublicKey public_key;
1143}; 1143};
1144 1144
1145 1145