GNUnet  0.10.x
credential.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet
3  Copyright (C) 2012-2013 GNUnet e.V.
4 
5  GNUnet is free software: you can redistribute it and/or modify it
6  under the terms of the GNU Affero General Public License as published
7  by the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  GNUnet is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Affero General Public License for more details.
14 
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/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19  */
25 #ifndef CREDENTIAL_H
26 #define CREDENTIAL_H
27 
29 
31 
40 
45 
50 
55 
59  uint32_t id GNUNET_PACKED;
60 
61  /* Followed by the zero-terminated attribute */
62 };
63 
64 
68 struct VerifyMessage {
73 
78 
83 
87  uint32_t c_count;
88 
93 
97  uint32_t id GNUNET_PACKED;
98 
99  /* Followed by the zero-terminated attribute and credentials to look up */
100 };
101 
102 
111 
115  uint32_t id GNUNET_PACKED;
116 
120  uint32_t cred_found GNUNET_PACKED;
121 
125  uint32_t d_count GNUNET_PACKED;
126 
130  uint32_t c_count GNUNET_PACKED;
131 
132  /* followed by ad_count GNUNET_CREDENTIAL_RecordData structs*/
133 };
134 
140 
144  uint32_t subject_attribute_len GNUNET_PACKED;
145 };
146 
147 
148 struct ChainEntry {
153 
158 
163 
167  uint32_t subject_attribute_len GNUNET_PACKED;
168 };
169 
170 
176 
181 
186 
191 
196 
201 
205 };
206 
207 
209 
210 #endif
211 
Message from client to Credential service to verify attributes.
Definition: credential.h:68
uint32_t issuer_attribute_len
Issuer attribute length.
Definition: credential.h:200
static char * expiration
Credential TTL.
uint32_t purpose
What does this signature vouch for? This must contain a GNUNET_SIGNATURE_PURPOSE_XXX constant (from g...
uint16_t issuer_attribute_len
Length of the issuer attribute.
Definition: credential.h:92
Message from CREDENTIAL service to client: new results.
Definition: credential.h:106
struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key
Trust anchor.
Definition: credential.h:49
Message from client to Credential service to collect credentials.
Definition: credential.h:35
Private ECC key encoded for transmission.
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32.
header of what an ECC signature signs this must be followed by "size - 8" bytes of the actual signed ...
an ECC signature using ECDSA
struct GNUNET_MessageHeader header
Header of type GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY.
Definition: credential.h:39
struct GNUNET_CRYPTO_EcdsaPrivateKey subject_key
Subject public key.
Definition: credential.h:44
uint32_t c_count
Number of credentials.
Definition: credential.h:87
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
Public ECC key (always for Curve25519) encoded in a format suitable for network transmission and ECDS...
uint16_t issuer_attribute_len
Length of the issuer attribute.
Definition: credential.h:54
Header for all communications.