summaryrefslogtreecommitdiff
path: root/src/reclaim/reclaim.h
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-02-04 18:42:04 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-02-09 20:38:10 +0100
commit55f6d26b7424d660c99bc89f3677b20294e87a27 (patch)
treea8080fdcf0d9688c154417e50c58055e364f8b6b /src/reclaim/reclaim.h
parent5b6bb2ce4d60635b2af950d72b45f12686fd5218 (diff)
Refactoring reclaim attestations
Diffstat (limited to 'src/reclaim/reclaim.h')
-rw-r--r--src/reclaim/reclaim.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/reclaim/reclaim.h b/src/reclaim/reclaim.h
index ff953a096..3da49fe7a 100644
--- a/src/reclaim/reclaim.h
+++ b/src/reclaim/reclaim.h
@@ -139,6 +139,11 @@ struct AttributeResultMessage
uint16_t attr_len GNUNET_PACKED;
/**
+ * Length of serialized attestation data
+ */
+ uint16_t attestation_len GNUNET_PACKED;
+
+ /**
* always zero (for alignment)
*/
uint16_t reserved GNUNET_PACKED;
@@ -154,6 +159,42 @@ struct AttributeResultMessage
};
/**
+ * Attestation is returned from the idp.
+ */
+struct AttestationResultMessage
+{
+ /**
+ * Message header
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Unique identifier for this request (for key collisions).
+ */
+ uint32_t id GNUNET_PACKED;
+
+ /**
+ * Length of serialized attribute data
+ */
+ uint16_t attestation_len GNUNET_PACKED;
+
+ /**
+ * always zero (for alignment)
+ */
+ uint16_t reserved GNUNET_PACKED;
+
+ /**
+ * The public key of the identity.
+ */
+ struct GNUNET_CRYPTO_EcdsaPublicKey identity;
+
+ /* followed by:
+ * serialized attestation data
+ */
+};
+
+
+/**
* Reference plus Attestation is returned from the idp.
*/
struct ReferenceResultMessage
@@ -463,6 +504,11 @@ struct ConsumeTicketResultMessage
uint16_t attrs_len GNUNET_PACKED;
/**
+ * Length of attestation data
+ */
+ uint16_t attestations_len;
+
+ /**
* always zero (for alignment)
*/
uint16_t reserved GNUNET_PACKED;