GNUnet  0.10.x
identity.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 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  */
20 
28 #ifndef IDENTITY_H
29 #define IDENTITY_H
30 
31 #include "gnunet_common.h"
32 
33 
35 
36 
47 
53 
54  /* followed by 0-terminated error message (on error) */
55 };
56 
57 
61 struct LookupMessage {
66  struct GNUNET_MessageHeader header;
67 
68  /* followed by 0-terminated ego name */
69 };
70 
71 
75 struct UpdateMessage {
79  struct GNUNET_MessageHeader header;
80 
85  uint16_t name_len GNUNET_PACKED;
86 
90  uint16_t end_of_list GNUNET_PACKED;
91 
95  struct GNUNET_CRYPTO_EcdsaPrivateKey private_key;
96 
97  /* followed by 0-terminated ego name */
98 };
99 
100 
109  struct GNUNET_MessageHeader header;
110 
114  uint16_t name_len GNUNET_PACKED;
115 
120 
121 
122  /* followed by 0-terminated service name */
123 };
124 
125 
134  struct GNUNET_MessageHeader header;
135 
139  uint16_t name_len GNUNET_PACKED;
140 
145 
149  struct GNUNET_CRYPTO_EcdsaPrivateKey private_key;
150 
151  /* followed by 0-terminated service name */
152 };
153 
154 
163  struct GNUNET_MessageHeader header;
164 
168  uint16_t name_len GNUNET_PACKED;
169 
174 
178  struct GNUNET_CRYPTO_EcdsaPrivateKey private_key;
179 
180  /* followed by 0-terminated identity name */
181 };
182 
183 
192  struct GNUNET_MessageHeader header;
193 
197  uint16_t old_name_len GNUNET_PACKED;
198 
202  uint16_t new_name_len GNUNET_PACKED;
203 
204  /* followed by 0-terminated old name */
205  /* followed by 0-terminated new name */
206 };
207 
208 
217  struct GNUNET_MessageHeader header;
218 
222  uint16_t name_len GNUNET_PACKED;
223 
228 
229  /* followed by 0-terminated name */
230 };
231 
233 
242 
246  char *name;
247 
251  void *ctx;
252 
257 };
258 
259 
260 #endif
Message from client to GNS service to lookup records.
Definition: gns.h:36
Used from service to client as a result to the GET_DEFAULT message, used from client to service to SE...
Definition: identity.h:130
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE.
Definition: identity.h:46
Client requests renaming of an identity.
Definition: identity.h:188
static struct GNUNET_IDENTITY_Handle * id
Handle to identity service.
Private ECC key encoded for transmission.
char * name
Current name associated with this ego.
Definition: identity.h:246
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32.
Handle for an ego.
Definition: identity.h:237
Client requests creation of an identity.
Definition: identity.h:159
A 512-bit hashcode.
Client requests deletion of an identity.
Definition: identity.h:213
void * ctx
Client context associated with this ego.
Definition: identity.h:251
uint32_t result_code
Status code for the last operation, in NBO.
Definition: identity.h:52
#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.
Header for all communications.
Client requests knowledge about default identity for a subsystem from identity service.
Definition: identity.h:105
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
static unsigned long long reserved
How much space have we currently reserved?
struct GNUNET_CRYPTO_EcdsaPrivateKey * pk
Private key associated with this ego.
Definition: identity.h:241
Answer from service to client about last operation; GET_DEFAULT maybe answered with this message on f...
Definition: identity.h:42
Service informs client about status of a pseudonym.
Definition: identity.h:75