aboutsummaryrefslogtreecommitdiff
path: root/src/hello/hello-ng.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-12-10 23:29:52 +0100
committerChristian Grothoff <christian@grothoff.org>2018-12-10 23:29:52 +0100
commit70ae2bd54ee0ff610d95a63856f38395920b804d (patch)
treeb08b1726bd4957a9dd0e55ff0057198087f3796d /src/hello/hello-ng.c
parent08e22453a438c8a3f6135632a6ce39239b47d9f5 (diff)
downloadgnunet-70ae2bd54ee0ff610d95a63856f38395920b804d.tar.gz
gnunet-70ae2bd54ee0ff610d95a63856f38395920b804d.zip
finish first draft of ats2 simple plugin (untested)
Diffstat (limited to 'src/hello/hello-ng.c')
-rw-r--r--src/hello/hello-ng.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hello/hello-ng.c b/src/hello/hello-ng.c
index a16ceb944..723ec0eaa 100644
--- a/src/hello/hello-ng.c
+++ b/src/hello/hello-ng.c
@@ -101,7 +101,7 @@ GNUNET_HELLO_sign_address (const char *address,
101 * 101 *
102 * @param raw raw signed address 102 * @param raw raw signed address
103 * @param raw_size size of @a raw 103 * @param raw_size size of @a raw
104 * @param public_key public key to use for signature verification 104 * @param pid public key to use for signature verification
105 * @param nt[out] set to network type 105 * @param nt[out] set to network type
106 * @param expiration[out] how long is the address valid 106 * @param expiration[out] how long is the address valid
107 * @return NULL on error, otherwise the address 107 * @return NULL on error, otherwise the address
@@ -109,10 +109,11 @@ GNUNET_HELLO_sign_address (const char *address,
109char * 109char *
110GNUNET_HELLO_extract_address (const void *raw, 110GNUNET_HELLO_extract_address (const void *raw,
111 size_t raw_size, 111 size_t raw_size,
112 const struct GNUNET_CRYPTO_EddsaPublicKey *public_key, 112 const struct GNUNET_PeerIdentity *pid,
113 enum GNUNET_NetworkType *nt, 113 enum GNUNET_NetworkType *nt,
114 struct GNUNET_TIME_Absolute *expiration) 114 struct GNUNET_TIME_Absolute *expiration)
115{ 115{
116 const struct GNUNET_CRYPTO_EddsaPublicKey *public_key = &pid->public_key;
116 const char *raws = raw; 117 const char *raws = raw;
117 unsigned long long raw_us; 118 unsigned long long raw_us;
118 unsigned int raw_nt; 119 unsigned int raw_nt;