aboutsummaryrefslogtreecommitdiff
path: root/src/hello/hello-ng.c
diff options
context:
space:
mode:
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;