first batch of license fixes (boring)
[oweals/gnunet.git] / src / include / gnunet_signatures.h
1 /*
2      This file is part of GNUnet.
3      Copyright (C) 2009 GNUnet e.V.
4
5      GNUnet is free software: you can redistribute it and/or modify it
6      under the terms of the GNU 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
16 /**
17  * @author Christian Grothoff
18  *
19  * @file
20  * Constants for network signatures
21  *
22  * @defgroup signatures  Network signature definitions
23  * @{
24  */
25
26 #ifndef GNUNET_SIGNATURES_H
27 #define GNUNET_SIGNATURES_H
28
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #if 0                           /* keep Emacsens' auto-indent happy */
33 }
34 #endif
35 #endif
36
37 /**
38  * Test signature, not valid for anything other than writing
39  * a test. (Note that the signature verification code will
40  * accept this value).
41  */
42 #define GNUNET_SIGNATURE_PURPOSE_TEST 0
43
44 /**
45  * Signature for confirming that this peer uses a particular address.
46  */
47 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN 1
48
49 /**
50  * Signature for confirming that this peer intends to disconnect.
51  */
52 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT 2
53
54 /**
55  * Signature for confirming a key revocation.
56  */
57 #define GNUNET_SIGNATURE_PURPOSE_REVOCATION 3
58
59 /**
60  * Signature for a namespace/pseudonym advertisement (by
61  * the namespace owner).
62  */
63 #define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 4
64
65 /**
66  * Signature by which a peer affirms that it is
67  * providing a certain bit of content (used
68  * in LOCation URIs).
69  */
70 #define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 5
71
72 /**
73  * Obsolete, legacy value.
74  */
75 #define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 6
76
77 /**
78  * Obsolete, legacy value.
79  */
80 #define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 7
81
82 /**
83  * Obsolete, legacy value.
84  */
85 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 8
86
87 /**
88  * Obsolete, legacy value.
89  */
90 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 9
91
92 /**
93  *
94  */
95 #define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 10
96
97 /**
98  * Signature of an GNUNET_DNS_Advertisement
99  */
100 #define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD 11
101
102 /**
103  * Signature of a chat message.
104  */
105 #define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE 12
106
107 /**
108  * Signature of confirmation receipt for a chat message.
109  */
110 #define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT 13
111
112 /**
113  * Signature of a network size estimate message.
114  */
115 #define GNUNET_SIGNATURE_PURPOSE_NSE_SEND 14
116
117 /**
118  * Signature of a gnunet naming system record block
119  */
120 #define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN 15
121
122 /**
123  * Purpose is to set a session key.
124  */
125 #define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY 16
126
127 /**
128  * UBlock Signature, done using DSS, not ECC
129  */
130 #define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK 17
131
132 /**
133  * Accept state in regex DFA.  Peer affirms that
134  * he offers the matching service.
135  */
136 #define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18
137
138 /**
139  * Signature of a multicast message sent by the origin.
140  */
141 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE 19
142
143 /**
144  * Signature of a conversation ring.
145  */
146 #define GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING 20
147
148 /**
149  * Signature for the first round of distributed key generation.
150  */
151 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1 22
152
153 /**
154  * Signature for the second round of distributed key generation.
155  */
156 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2 23
157
158 /**
159  * Signature for cooperatice decryption.
160  */
161 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION 23
162
163 /**
164  * Signature of a multicast request sent by a member.
165  */
166 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST 24
167
168 /**
169  * Signature for a sensor anomaly report message.
170  */
171 #define GNUNET_SIGNATURE_PURPOSE_SENSOR_ANOMALY_REPORT 25
172
173 /**
174  * Signature for a GNUid Token
175  */
176 #define GNUNET_SIGNATURE_PURPOSE_GNUID_TOKEN 26
177
178 /**
179  * Signature for a GNUid Ticket
180  */
181 #define GNUNET_SIGNATURE_PURPOSE_GNUID_TICKET 27
182
183 /**
184  * Signature for a GNUnet credential
185  */
186 #define GNUNET_SIGNATURE_PURPOSE_CREDENTIAL 28
187
188 #if 0                           /* keep Emacsens' auto-indent happy */
189 {
190 #endif
191 #ifdef __cplusplus
192 }
193 #endif
194
195 /* ifndef GNUNET_SIGNATURES_H */
196 #endif
197
198 /** @} */  /* end of group */
199
200 /* end of gnunet_signatures.h */