From 434bd08c383c1128e4c95d84d8e546ced6dfb629 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 12 Jul 2009 22:11:16 +0000 Subject: transport fixes, hello API extension --- src/include/gnunet_hello_lib.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/include/gnunet_hello_lib.h') diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h index 2ba6df6ab..8978890f0 100644 --- a/src/include/gnunet_hello_lib.h +++ b/src/include/gnunet_hello_lib.h @@ -195,6 +195,18 @@ GNUNET_HELLO_get_key (const struct GNUNET_HELLO_Message *hello, *publicKey); +/** + * Get the peer identity from a HELLO message. + * + * @param hello the hello message + * @param peer where to store the peer's identity + * @return GNUNET_SYSERR if the HELLO was malformed + */ +int +GNUNET_HELLO_get_id (const struct GNUNET_HELLO_Message *hello, + struct GNUNET_PeerIdentity *peer); + + /* ifndef GNUNET_HELLO_LIB_H */ #endif -- cgit v1.2.3