summaryrefslogtreecommitdiff
path: root/src/include/gnunet_hello_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-22 18:37:35 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-22 18:37:35 +0100
commit67935982582a31e4a75dc431feceee9664bca839 (patch)
tree902431f5318c6a704ff5036b85391dcbb8792054 /src/include/gnunet_hello_lib.h
parentca90313490f4233ce9d209abbdcc2d78d16b8326 (diff)
more work on TNG
Diffstat (limited to 'src/include/gnunet_hello_lib.h')
-rw-r--r--src/include/gnunet_hello_lib.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h
index e19419f25..ceaa60466 100644
--- a/src/include/gnunet_hello_lib.h
+++ b/src/include/gnunet_hello_lib.h
@@ -42,7 +42,6 @@ extern "C"
#include "gnunet_util_lib.h"
-
/**
* Prefix that every HELLO URI must start with.
*/
@@ -475,11 +474,18 @@ GNUNET_HELLO_parse_uri (const char *uri,
/* NG API */
+/**
+ * Defined in gnunet_ats_service.h, but here we do not care about
+ * the details so are just giving the declaration.
+ */
+enum GNUNET_ATS_Network_Type;
+
/**
* Build address record by signing raw information with private key.
*
* @param address text address to sign
+ * @param nt network type of @a address
* @param expiration how long is @a address valid
* @param private_key signing key to use
* @param result[out] where to write address record (allocated)
@@ -487,6 +493,7 @@ GNUNET_HELLO_parse_uri (const char *uri,
*/
void
GNUNET_HELLO_sign_address (const char *address,
+ enum GNUNET_ATS_Network_Type nt,
struct GNUNET_TIME_Absolute expiration,
const struct GNUNET_CRYPTO_EddsaPrivateKey *private_key,
void **result,
@@ -499,6 +506,7 @@ GNUNET_HELLO_sign_address (const char *address,
* @param raw raw signed address
* @param raw_size size of @a raw
* @param public_key public key to use for signature verification
+ * @param nt[out] set to network type
* @param expiration[out] how long is the address valid
* @return NULL on error, otherwise the address
*/
@@ -506,6 +514,7 @@ char *
GNUNET_HELLO_extract_address (const void *raw,
size_t raw_size,
const struct GNUNET_CRYPTO_EddsaPublicKey *public_key,
+ enum GNUNET_ATS_Network_Type *nt,
struct GNUNET_TIME_Absolute *expiration);