8f849403ae76c95ff27b56ab5a907ab972acf107
[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 a namespace/pseudonym advertisement (by
57  * the namespace owner).
58  */
59 #define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 4
60
61 /**
62  * Signature by which a peer affirms that it is
63  * providing a certain bit of content (used
64  * in LOCation URIs).
65  */
66 #define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 5
67
68 /**
69  * Obsolete, legacy value.
70  */
71 #define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 6
72
73 /**
74  * Obsolete, legacy value.
75  */
76 #define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 7
77
78 /**
79  * Obsolete, legacy value.
80  */
81 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 8
82
83 /**
84  * Obsolete, legacy value.
85  */
86 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 9
87
88 /**
89  *
90  */
91 #define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 10
92
93 /**
94  * Signature of an GNUNET_DNS_Record
95  */
96 #define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD 11
97
98 /**
99  * Signature of a chat message.
100  */
101 #define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE 12
102
103 /**
104  * Signature of confirmation receipt for a chat message.
105  */
106 #define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT 13
107
108 /**
109  * Signature of a network size estimate message.
110  */
111 #define GNUNET_SIGNATURE_PURPOSE_NSE_SEND 14
112
113 /**
114  * Signature of a gnunet naming system record block
115  */
116 #define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN 15
117
118 /**
119  * Purpose is to set a session key.
120  */
121 #define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY 16
122
123 /**
124  * UBlock Signature, done using DSS, not ECC
125  */
126 #define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK 17
127
128 /**
129  * Accept state in regex DFA.  Peer affirms that
130  * he offers the matching service.
131  */
132 #define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18
133
134
135
136 #if 0                           /* keep Emacsens' auto-indent happy */
137 {
138 #endif
139 #ifdef __cplusplus
140 }
141 #endif
142
143 /* ifndef GNUNET_SIGNATURES_H */
144 #endif
145 /* end of gnunet_signatures.h */