From f47fed8e1a5763ab4b36cd19ab4cecbe22a3d281 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 5 Apr 2013 13:02:04 +0000 Subject: print hello friend type --- src/hello/hello.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3