fixing unchecked return values
[oweals/gnunet.git] / src / multicast / multicast.h
index 88cb2d99e812eca36616ff295af3560d943a6e73..facf8f54e25f6832f0eb4dfb7f1722101ee599bf 100644 (file)
@@ -22,6 +22,7 @@
  * @file multicast/multicast.h
  * @brief multicast IPC messages
  * @author Christian Grothoff
+ * @author Gabor X Toth
  */
 #ifndef MULTICAST_H
 #define MULTICAST_H
 GNUNET_NETWORK_STRUCT_BEGIN
 
 
+/**
+ * Header of a join request sent to the origin or another member.
+ */
+struct GNUNET_MULTICAST_JoinRequest
+{
+  /**
+   * Header for the join request.
+   */
+  struct GNUNET_MessageHeader header;
+
+  /**
+   * ECC signature of the rest of the fields of the join request.
+   *
+   * Signature must match the public key of the joining member.
+   */
+  struct GNUNET_CRYPTO_EddsaSignature signature;
+
+  /**
+   * Purpose for the signature and size of the signed data.
+   */
+  struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
+
+  /**
+   * Public key of the target group.
+   */
+  struct GNUNET_CRYPTO_EddsaPublicKey group_key;
+
+  /**
+   * Public key of the joining member.
+   */
+  struct GNUNET_CRYPTO_EddsaPublicKey member_key;
+
+  /**
+   * Peer identity of the joining member.
+   */
+  struct GNUNET_PeerIdentity member_peer;
+
+  /* Followed by request body. */
+};
+
+
 /**
  * Message sent from the client to the service to notify the service
  * about a join decision.
  */
 struct MulticastJoinDecisionMessage
 {
-
   /**
    *
    */
@@ -329,9 +370,6 @@ struct MulticastUnicastToOriginCancelMessage
 };
 
 
-
-
-
 GNUNET_NETWORK_STRUCT_END
 
 #endif