diff options
Diffstat (limited to 'src/credential/credential.h')
-rw-r--r-- | src/credential/credential.h | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/src/credential/credential.h b/src/credential/credential.h index 23db51e99..fcc81de6c 100644 --- a/src/credential/credential.h +++ b/src/credential/credential.h | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -32,8 +32,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
32 | /** | 32 | /** |
33 | * Message from client to Credential service to collect credentials. | 33 | * Message from client to Credential service to collect credentials. |
34 | */ | 34 | */ |
35 | struct CollectMessage | 35 | struct CollectMessage { |
36 | { | ||
37 | /** | 36 | /** |
38 | * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY | 37 | * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY |
39 | */ | 38 | */ |
@@ -60,15 +59,13 @@ struct CollectMessage | |||
60 | uint32_t id GNUNET_PACKED; | 59 | uint32_t id GNUNET_PACKED; |
61 | 60 | ||
62 | /* Followed by the zero-terminated attribute */ | 61 | /* Followed by the zero-terminated attribute */ |
63 | |||
64 | }; | 62 | }; |
65 | 63 | ||
66 | 64 | ||
67 | /** | 65 | /** |
68 | * Message from client to Credential service to verify attributes. | 66 | * Message from client to Credential service to verify attributes. |
69 | */ | 67 | */ |
70 | struct VerifyMessage | 68 | struct VerifyMessage { |
71 | { | ||
72 | /** | 69 | /** |
73 | * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY | 70 | * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY |
74 | */ | 71 | */ |
@@ -100,17 +97,15 @@ struct VerifyMessage | |||
100 | uint32_t id GNUNET_PACKED; | 97 | uint32_t id GNUNET_PACKED; |
101 | 98 | ||
102 | /* Followed by the zero-terminated attribute and credentials to look up */ | 99 | /* Followed by the zero-terminated attribute and credentials to look up */ |
103 | |||
104 | }; | 100 | }; |
105 | 101 | ||
106 | 102 | ||
107 | /** | 103 | /** |
108 | * Message from CREDENTIAL service to client: new results. | 104 | * Message from CREDENTIAL service to client: new results. |
109 | */ | 105 | */ |
110 | struct DelegationChainResultMessage | 106 | struct DelegationChainResultMessage { |
111 | { | ||
112 | /** | 107 | /** |
113 | * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT | 108 | * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT |
114 | */ | 109 | */ |
115 | struct GNUNET_MessageHeader header; | 110 | struct GNUNET_MessageHeader header; |
116 | 111 | ||
@@ -118,7 +113,7 @@ struct DelegationChainResultMessage | |||
118 | * Unique identifier for this request (for key collisions). | 113 | * Unique identifier for this request (for key collisions). |
119 | */ | 114 | */ |
120 | uint32_t id GNUNET_PACKED; | 115 | uint32_t id GNUNET_PACKED; |
121 | 116 | ||
122 | /** | 117 | /** |
123 | * Indicates if credential has been found at all | 118 | * Indicates if credential has been found at all |
124 | */ | 119 | */ |
@@ -135,16 +130,14 @@ struct DelegationChainResultMessage | |||
135 | uint32_t c_count GNUNET_PACKED; | 130 | uint32_t c_count GNUNET_PACKED; |
136 | 131 | ||
137 | /* followed by ad_count GNUNET_CREDENTIAL_RecordData structs*/ | 132 | /* followed by ad_count GNUNET_CREDENTIAL_RecordData structs*/ |
138 | |||
139 | }; | 133 | }; |
140 | 134 | ||
141 | struct DelegationRecordData | 135 | struct DelegationRecordData { |
142 | { | ||
143 | /** | 136 | /** |
144 | * Subject key | 137 | * Subject key |
145 | */ | 138 | */ |
146 | struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; | 139 | struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; |
147 | 140 | ||
148 | /** | 141 | /** |
149 | * Subject attributes | 142 | * Subject attributes |
150 | */ | 143 | */ |
@@ -152,23 +145,22 @@ struct DelegationRecordData | |||
152 | }; | 145 | }; |
153 | 146 | ||
154 | 147 | ||
155 | struct ChainEntry | 148 | struct ChainEntry { |
156 | { | ||
157 | /** | 149 | /** |
158 | * Issuer key | 150 | * Issuer key |
159 | */ | 151 | */ |
160 | struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key; | 152 | struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key; |
161 | 153 | ||
162 | /** | 154 | /** |
163 | * Subject key | 155 | * Subject key |
164 | */ | 156 | */ |
165 | struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; | 157 | struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; |
166 | 158 | ||
167 | /** | 159 | /** |
168 | * Issuer attributes | 160 | * Issuer attributes |
169 | */ | 161 | */ |
170 | uint32_t issuer_attribute_len GNUNET_PACKED; | 162 | uint32_t issuer_attribute_len GNUNET_PACKED; |
171 | 163 | ||
172 | /** | 164 | /** |
173 | * Subject attributes | 165 | * Subject attributes |
174 | */ | 166 | */ |
@@ -176,9 +168,7 @@ struct ChainEntry | |||
176 | }; | 168 | }; |
177 | 169 | ||
178 | 170 | ||
179 | struct CredentialEntry | 171 | struct CredentialEntry { |
180 | { | ||
181 | |||
182 | /** | 172 | /** |
183 | * The signature for this credential by the issuer | 173 | * The signature for this credential by the issuer |
184 | */ | 174 | */ |
@@ -203,7 +193,7 @@ struct CredentialEntry | |||
203 | * Expiration time of this credential | 193 | * Expiration time of this credential |
204 | */ | 194 | */ |
205 | uint64_t expiration GNUNET_PACKED; | 195 | uint64_t expiration GNUNET_PACKED; |
206 | 196 | ||
207 | /** | 197 | /** |
208 | * Issuer attribute length | 198 | * Issuer attribute length |
209 | */ | 199 | */ |