aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_hello_uri_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_hello_uri_lib.h')
-rw-r--r--src/include/gnunet_hello_uri_lib.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/include/gnunet_hello_uri_lib.h b/src/include/gnunet_hello_uri_lib.h
index dbf4dc35e..ec9cdfa5e 100644
--- a/src/include/gnunet_hello_uri_lib.h
+++ b/src/include/gnunet_hello_uri_lib.h
@@ -103,26 +103,30 @@ GNUNET_HELLO_builder_from_url (const char *url);
103 * Generate HELLO message from a @a builder 103 * Generate HELLO message from a @a builder
104 * 104 *
105 * @param builder builder to serialize 105 * @param builder builder to serialize
106 * @param priv private key to use to sign the result
106 * @return HELLO message matching @a builder 107 * @return HELLO message matching @a builder
107 */ 108 */
108struct GNUNET_MQ_Envelope * 109struct GNUNET_MQ_Envelope *
109GNUNET_HELLO_builder_to_env (struct GNUNET_HELLO_Builder *builder); 110GNUNET_HELLO_builder_to_env (const struct GNUNET_HELLO_Builder *builder,
111 const struct GNUNET_CRYPTO_EddsaPrivateKey *priv);
110 112
111 113
112/** 114/**
113 * Generate GNUnet HELLO URI from a @a builder 115 * Generate GNUnet HELLO URI from a @a builder
114 * 116 *
115 * @param builder builder to serialize 117 * @param builder builder to serialize
118 * @param priv private key to use to sign the result
116 * @return hello URI 119 * @return hello URI
117 */ 120 */
118char * 121char *
119GNUNET_HELLO_builder_to_url (struct GNUNET_HELLO_Builder *builder); 122GNUNET_HELLO_builder_to_url (const struct GNUNET_HELLO_Builder *builder,
120 123 const struct GNUNET_CRYPTO_EddsaPrivateKey *priv);
121 124
122/** 125/**
123 * Generate DHT block from a @a builder 126 * Generate DHT block from a @a builder
124 * 127 *
125 * @param builder the builder to serialize 128 * @param builder the builder to serialize
129 * @param priv private key to use to sign the result
126 * @param[out] block where to write the block, NULL to only calculate @a block_size 130 * @param[out] block where to write the block, NULL to only calculate @a block_size
127 * @param[in,out] block_size input is number of bytes available in @a block, 131 * @param[in,out] block_size input is number of bytes available in @a block,
128 * output is number of bytes needed in @a block 132 * output is number of bytes needed in @a block
@@ -130,7 +134,8 @@ GNUNET_HELLO_builder_to_url (struct GNUNET_HELLO_Builder *builder);
130 * or if @a block was NULL 134 * or if @a block was NULL
131 */ 135 */
132enum GNUNET_GenericReturnValue 136enum GNUNET_GenericReturnValue
133GNUNET_HELLO_builder_to_block (struct GNUNET_HELLO_Builder *builder, 137GNUNET_HELLO_builder_to_block (const struct GNUNET_HELLO_Builder *builder,
138 const struct GNUNET_CRYPTO_EddsaPrivateKey *priv,
134 void *block, 139 void *block,
135 size_t *block_size); 140 size_t *block_size);
136 141