header
[oweals/gnunet.git] / src / include / gnunet_signatures.h
1 /*
2      This file is part of GNUnet.
3      (C) 2009 Christian Grothoff (and other contributing authors)
4
5      GNUnet is free software; you can redistribute it and/or modify
6      it under the terms of the GNU General Public License as published
7      by the Free Software Foundation; either version 3, or (at your
8      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      General Public License for more details.
14
15      You should have received a copy of the GNU General Public License
16      along with GNUnet; see the file COPYING.  If not, write to the
17      Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18      Boston, MA 02111-1307, USA.
19 */
20
21 /**
22  * @file include/gnunet_signatures.h
23  * @brief constants for network signatures
24  * @author Christian Grothoff
25  */
26
27 #ifndef GNUNET_SIGNATURES_H
28 #define GNUNET_SIGNATURES_H
29
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #if 0                           /* keep Emacsens' auto-indent happy */
34 }
35 #endif
36 #endif
37
38 /**
39  * Test signature, not valid for anything other than writing
40  * a test. (Note that the signature verification code will
41  * accept this value).
42  */
43 #define GNUNET_SIGNATURE_PURPOSE_TEST 0
44
45 /**
46  * Signature for confirming that this peer uses a particular address.
47  */
48 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN 1
49
50 /**
51  * Signature for confirming that this peer intends to disconnect.
52  */
53 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT 2
54
55 /**
56  * Signature for confirming a key revocation.
57  */
58 #define GNUNET_SIGNATURE_PURPOSE_REVOCATION 3
59
60 /**
61  * Signature for a namespace/pseudonym advertisement (by
62  * the namespace owner).
63  */
64 #define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 4
65
66 /**
67  * Signature by which a peer affirms that it is
68  * providing a certain bit of content (used
69  * in LOCation URIs).
70  */
71 #define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 5
72
73 /**
74  * Obsolete, legacy value.
75  */
76 #define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 6
77
78 /**
79  * Obsolete, legacy value.
80  */
81 #define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 7
82
83 /**
84  * Obsolete, legacy value.
85  */
86 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 8
87
88 /**
89  * Obsolete, legacy value.
90  */
91 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 9
92
93 /**
94  *
95  */
96 #define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 10
97
98 /**
99  * Signature of an GNUNET_DNS_Advertisement
100  */
101 #define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD 11
102
103 /**
104  * Signature of a chat message.
105  */
106 #define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE 12
107
108 /**
109  * Signature of confirmation receipt for a chat message.
110  */
111 #define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT 13
112
113 /**
114  * Signature of a network size estimate message.
115  */
116 #define GNUNET_SIGNATURE_PURPOSE_NSE_SEND 14
117
118 /**
119  * Signature of a gnunet naming system record block
120  */
121 #define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN 15
122
123 /**
124  * Purpose is to set a session key.
125  */
126 #define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY 16
127
128 /**
129  * UBlock Signature, done using DSS, not ECC
130  */
131 #define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK 17
132
133 /**
134  * Accept state in regex DFA.  Peer affirms that
135  * he offers the matching service.
136  */
137 #define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18
138
139 /**
140  * Signature of a multicast message.
141  */
142 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE 19
143
144 /**
145  * Signature of a conversation ring.
146  */
147 #define GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING 20
148
149 /**
150  * Key exchange in MESH
151  */
152 #define GNUNET_SIGNATURE_PURPOSE_MESH_KX                21
153
154
155 #if 0                           /* keep Emacsens' auto-indent happy */
156 {
157 #endif
158 #ifdef __cplusplus
159 }
160 #endif
161
162 /* ifndef GNUNET_SIGNATURES_H */
163 #endif
164 /* end of gnunet_signatures.h */