aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/revocation.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-06 07:41:21 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-06 07:41:21 +0000
commitad989721684818bee9a0a1f81d5fb085241959ab (patch)
treed3761d4e3af72e1d9c67565b682271a4801436d6 /src/revocation/revocation.h
parent2315ef124c25961fc88eadbf6b9d396de5d8f992 (diff)
downloadgnunet-ad989721684818bee9a0a1f81d5fb085241959ab.tar.gz
gnunet-ad989721684818bee9a0a1f81d5fb085241959ab.zip
-implementing revocation library
Diffstat (limited to 'src/revocation/revocation.h')
-rw-r--r--src/revocation/revocation.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/revocation/revocation.h b/src/revocation/revocation.h
index c6c5d5e76..29235aeee 100644
--- a/src/revocation/revocation.h
+++ b/src/revocation/revocation.h
@@ -33,7 +33,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
33/** 33/**
34 * Query key revocation status. 34 * Query key revocation status.
35 */ 35 */
36struct GNUNET_REVOCATION_QueryMessage 36struct QueryMessage
37{ 37{
38 /** 38 /**
39 * Type: #GNUNET_MESSAGE_TYPE_REVOCATION_QUERY 39 * Type: #GNUNET_MESSAGE_TYPE_REVOCATION_QUERY
@@ -56,7 +56,7 @@ struct GNUNET_REVOCATION_QueryMessage
56/** 56/**
57 * Key revocation response. 57 * Key revocation response.
58 */ 58 */
59struct GNUNET_REVOCATION_QueryResponseMessage 59struct QueryResponseMessage
60{ 60{
61 /** 61 /**
62 * Type: #GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE 62 * Type: #GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE
@@ -78,7 +78,7 @@ struct GNUNET_REVOCATION_QueryResponseMessage
78 * #GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE (which is just 78 * #GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE (which is just
79 * in a `struct GNUNET_MessageHeader`. 79 * in a `struct GNUNET_MessageHeader`.
80 */ 80 */
81struct GNUNET_REVOCATION_RevokeMessage 81struct RevokeMessage
82{ 82{
83 /** 83 /**
84 * Type: #GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE 84 * Type: #GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE
@@ -114,6 +114,24 @@ struct GNUNET_REVOCATION_RevokeMessage
114}; 114};
115 115
116 116
117/**
118 * Key revocation response.
119 */
120struct RevocationResponseMessage
121{
122 /**
123 * Type: #GNUNET_MESSAGE_TYPE_REVOKE_RESPONSE
124 */
125 struct GNUNET_MessageHeader header;
126
127 /**
128 * #GNUNET_NO if revoked, #GNUNET_YES if valid.
129 */
130 uint32_t is_valid GNUNET_PACKED;
131
132};
133
134
117GNUNET_NETWORK_STRUCT_END 135GNUNET_NETWORK_STRUCT_END
118 136
119 137