along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
/**
* @author Martin Schanzenbach
GNUNET_NETWORK_STRUCT_BEGIN
+
/**
* Use to store an identity attribute
*/
struct GNUNET_CRYPTO_EcdsaPrivateKey identity;
/* followed by the serialized attribute */
+};
+
+
+/**
+ * Use to delete an identity attribute
+ */
+struct AttributeDeleteMessage
+{
+ /**
+ * Type: #GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Unique identifier for this request (for key collisions).
+ */
+ uint32_t id GNUNET_PACKED;
+
+ /**
+ * The length of the attribute
+ */
+ uint32_t attr_len GNUNET_PACKED;
+
+ /**
+ * Identity
+ */
+ struct GNUNET_CRYPTO_EcdsaPrivateKey identity;
+ /* followed by the serialized attribute */
};
+
/**
- * Attribute store response message
+ * Attribute store/delete response message
*/
-struct AttributeStoreResultMessage
+struct SuccessResultMessage
{
/**
* Message header
* #GNUNET_SYSERR on failure, #GNUNET_OK on success
*/
int32_t op_result GNUNET_PACKED;
-
};
/**
*/
struct GNUNET_MessageHeader header;
- /**
+ /**
* Unique identifier for this request (for key collisions).
*/
uint32_t id GNUNET_PACKED;
* Identity.
*/
struct GNUNET_CRYPTO_EcdsaPrivateKey identity;
-
};
* Unique identifier for this request (for key collisions).
*/
uint32_t id GNUNET_PACKED;
-
};
* Unique identifier for this request (for key collisions).
*/
uint32_t id GNUNET_PACKED;
-
};
/**
* Identity.
*/
struct GNUNET_CRYPTO_EcdsaPrivateKey identity;
-
};
* Unique identifier for this request (for key collisions).
*/
uint32_t id GNUNET_PACKED;
-
};
* Unique identifier for this request (for key collisions).
*/
uint32_t id GNUNET_PACKED;
-
};
-
/**
* Ticket issue message
*/
*/
uint32_t attr_len GNUNET_PACKED;
- //Followed by a serialized attribute list
+ // Followed by a serialized attribute list
};
/**
*/
uint32_t attrs_len GNUNET_PACKED;
- //Followed by a ticket and serialized attribute list
+ /**
+ * The ticket to revoke
+ */
+ struct GNUNET_RECLAIM_Ticket ticket;
};
/**
*/
uint32_t id GNUNET_PACKED;
+ /**
+ * The new ticket
+ */
+ struct GNUNET_RECLAIM_Ticket ticket;
};
/**
*/
struct GNUNET_CRYPTO_EcdsaPrivateKey identity;
- //Followed by a serialized ticket
+ /**
+ * The ticket to consume
+ */
+ struct GNUNET_RECLAIM_Ticket ticket;
};
/**
*/
struct GNUNET_MessageHeader header;
- /**
+ /**
* Unique identifier for this request (for key collisions).
*/
uint32_t id GNUNET_PACKED;
};
-
GNUNET_NETWORK_STRUCT_END
#endif