diff options
Diffstat (limited to 'src/include/gnunet_social_service.h')
-rw-r--r-- | src/include/gnunet_social_service.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h index 564bd6e87..cacbb85e3 100644 --- a/src/include/gnunet_social_service.h +++ b/src/include/gnunet_social_service.h | |||
@@ -153,17 +153,17 @@ GNUNET_SOCIAL_slicer_destroy (struct GNUNET_SOCIAL_Slicer *slicer); | |||
153 | 153 | ||
154 | 154 | ||
155 | /** | 155 | /** |
156 | * Create an ego. | 156 | * Create an ego using the given private key. |
157 | * | 157 | * |
158 | * Create an ego using the private key from the given file. If the file does | 158 | * The identity service is used to manage egos, the |
159 | * not exist, a fresh key is created. | 159 | * GNUNET_IDENTITY_ego_get_key() function returns an ego's private key that can |
160 | * be passed into this function. | ||
160 | * | 161 | * |
161 | * @param keyfile Name of the file with the private key for the ego, | 162 | * @param key Private key for the ego, NULL for ephemeral egos. |
162 | * NULL for ephemeral egos. | ||
163 | * @return Handle to the ego, NULL on error. | 163 | * @return Handle to the ego, NULL on error. |
164 | */ | 164 | */ |
165 | struct GNUNET_SOCIAL_Ego * | 165 | struct GNUNET_SOCIAL_Ego * |
166 | GNUNET_SOCIAL_ego_create (const char *keyfile); | 166 | GNUNET_SOCIAL_ego_create (const struct GNUNET_CRYPTO_EccPrivateKey *key); |
167 | 167 | ||
168 | 168 | ||
169 | /** | 169 | /** |
@@ -226,9 +226,8 @@ typedef void (*GNUNET_SOCIAL_FarewellCallback)(void *cls, | |||
226 | * | 226 | * |
227 | * @param cfg Configuration to contact the social service. | 227 | * @param cfg Configuration to contact the social service. |
228 | * @param home_keyfile File with the private key for the home, | 228 | * @param home_keyfile File with the private key for the home, |
229 | * created if the file does not exist; | 229 | * created if the file does not exist; pass NULL for ephemeral homes. |
230 | * pass NULL for ephemeral homes. | 230 | * @param policy Policy specifying entry and history restrictions of the home. |
231 | * @param join_policy What is our policy for allowing people in? | ||
232 | * @param ego Owner of the home (host). | 231 | * @param ego Owner of the home (host). |
233 | * @param slicer Slicer to handle guests talking. | 232 | * @param slicer Slicer to handle guests talking. |
234 | * @param listener_cb Function to handle new nyms that want to enter. | 233 | * @param listener_cb Function to handle new nyms that want to enter. |
@@ -239,7 +238,7 @@ typedef void (*GNUNET_SOCIAL_FarewellCallback)(void *cls, | |||
239 | struct GNUNET_SOCIAL_Home * | 238 | struct GNUNET_SOCIAL_Home * |
240 | GNUNET_SOCIAL_home_enter (const struct GNUNET_CONFIGURATION_Handle *cfg, | 239 | GNUNET_SOCIAL_home_enter (const struct GNUNET_CONFIGURATION_Handle *cfg, |
241 | const char *home_keyfile, | 240 | const char *home_keyfile, |
242 | enum GNUNET_MULTICAST_JoinPolicy join_policy, | 241 | enum GNUNET_MULTICAST_GroupPolicy policy, |
243 | struct GNUNET_SOCIAL_Ego *ego, | 242 | struct GNUNET_SOCIAL_Ego *ego, |
244 | struct GNUNET_SOCIAL_Slicer *slicer, | 243 | struct GNUNET_SOCIAL_Slicer *slicer, |
245 | GNUNET_SOCIAL_AnswerDoorCallback listener_cb, | 244 | GNUNET_SOCIAL_AnswerDoorCallback listener_cb, |