diff options
Diffstat (limited to 'src/revocation/revocation.h')
-rw-r--r-- | src/revocation/revocation.h | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/src/revocation/revocation.h b/src/revocation/revocation.h deleted file mode 100644 index c3a9c9e6b..000000000 --- a/src/revocation/revocation.h +++ /dev/null | |||
@@ -1,117 +0,0 @@ | |||
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 | |||
21 | /** | ||
22 | * @author Christian Grothoff | ||
23 | * @file revocation/revocation.h | ||
24 | * @brief messages for key revocation | ||
25 | */ | ||
26 | #ifndef REVOCATION_H | ||
27 | #define REVOCATION_H | ||
28 | |||
29 | #include "gnunet_util_lib.h" | ||
30 | #include "gnunet_revocation_service.h" | ||
31 | |||
32 | GNUNET_NETWORK_STRUCT_BEGIN | ||
33 | |||
34 | /** | ||
35 | * Query key revocation status. | ||
36 | */ | ||
37 | struct QueryMessage | ||
38 | { | ||
39 | /** | ||
40 | * Type: #GNUNET_MESSAGE_TYPE_REVOCATION_QUERY | ||
41 | */ | ||
42 | struct GNUNET_MessageHeader header; | ||
43 | |||
44 | /** | ||
45 | * For alignment. | ||
46 | */ | ||
47 | uint32_t reserved GNUNET_PACKED; | ||
48 | |||
49 | /** | ||
50 | * Key to check. | ||
51 | */ | ||
52 | struct GNUNET_IDENTITY_PublicKey key; | ||
53 | }; | ||
54 | |||
55 | |||
56 | /** | ||
57 | * Key revocation response. | ||
58 | */ | ||
59 | struct QueryResponseMessage | ||
60 | { | ||
61 | /** | ||
62 | * Type: #GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE | ||
63 | */ | ||
64 | struct GNUNET_MessageHeader header; | ||
65 | |||
66 | /** | ||
67 | * #GNUNET_NO if revoked, #GNUNET_YES if valid. | ||
68 | */ | ||
69 | uint32_t is_valid GNUNET_PACKED; | ||
70 | }; | ||
71 | |||
72 | |||
73 | /** | ||
74 | * Revoke key. These messages are exchanged between peers (during | ||
75 | * flooding) but also sent by the client to the service. When the | ||
76 | * client sends it to the service, the message is answered by a | ||
77 | * #GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE (which is just | ||
78 | * in a `struct GNUNET_MessageHeader`. | ||
79 | */ | ||
80 | struct RevokeMessage | ||
81 | { | ||
82 | /** | ||
83 | * Type: #GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE | ||
84 | */ | ||
85 | struct GNUNET_MessageHeader header; | ||
86 | |||
87 | /** | ||
88 | * Length of PoW with signature. | ||
89 | */ | ||
90 | uint32_t pow_size GNUNET_PACKED; | ||
91 | |||
92 | /** Followed by the PoW **/ | ||
93 | }; | ||
94 | |||
95 | |||
96 | /** | ||
97 | * Key revocation response. | ||
98 | */ | ||
99 | struct RevocationResponseMessage | ||
100 | { | ||
101 | /** | ||
102 | * Type: #GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE | ||
103 | */ | ||
104 | struct GNUNET_MessageHeader header; | ||
105 | |||
106 | /** | ||
107 | * #GNUNET_NO if revocation failed for internal reasons (e.g. disk full) | ||
108 | * #GNUNET_YES on success | ||
109 | */ | ||
110 | uint32_t is_valid GNUNET_PACKED; | ||
111 | }; | ||
112 | |||
113 | |||
114 | GNUNET_NETWORK_STRUCT_END | ||
115 | |||
116 | |||
117 | #endif | ||