summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-05 13:02:04 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-05 13:02:04 +0000
commitf47fed8e1a5763ab4b36cd19ab4cecbe22a3d281 (patch)
treed28068edf54123e69753d569a067e7ee9b254f80 /src
parentb7b9aa01111acd66b8f22cb9d4c10edfaf999a03 (diff)
print hello friend type
Diffstat (limited to 'src')
-rw-r--r--src/hello/hello.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hello/hello.c b/src/hello/hello.c
index fc27e446b..44a1c55e9 100644
--- a/src/hello/hello.c
+++ b/src/hello/hello.c
@@ -864,9 +864,10 @@ GNUNET_HELLO_compose_uri (const struct GNUNET_HELLO_Message *hello,
ctx.plugins_find = plugins_find;
char *pkey = GNUNET_CRYPTO_ecc_public_key_to_string (&(hello->publicKey));
+
GNUNET_asprintf (&(ctx.uri),
"%s%s",
- GNUNET_HELLO_URI_PREFIX,
+ (GNUNET_YES == GNUNET_HELLO_is_friend_only (hello)) ? GNUNET_FRIEND_HELLO_URI_PREFIX : GNUNET_HELLO_URI_PREFIX,
pkey);
GNUNET_free (pkey);