allow file hashing cancellation -- and make use of it
[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 2, 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 HELLOs for transport.
47  */
48 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PING 1
49
50
51 /**
52  * Purpose is to set a session key.
53  */
54 #define GNUNET_SIGNATURE_PURPOSE_SET_KEY 2
55
56 /**
57  * Signature for a namespace/pseudonym advertisement (by
58  * the namespace owner).
59  */
60 #define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 3
61
62 /**
63  * Signature by which a peer affirms that it is
64  * providing a certain bit of content (used
65  * in LOCation URIs).
66  */
67 #define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 4
68
69 /**
70  * Signature in a KBlock of the FS module.
71  */
72 #define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 5
73
74 /**
75  * Signature of content URI placed into a namespace.
76  */
77 #define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 6
78
79 /**
80  * Signature of advertisment for a namespace.
81  */
82 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 7
83
84 /**
85  * Keyword-based signature of advertisment for a namespace.
86  */
87 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 8
88
89 /**
90  *
91  */
92 #define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 9
93
94
95 #if 0                           /* keep Emacsens' auto-indent happy */
96 {
97 #endif
98 #ifdef __cplusplus
99 }
100 #endif
101
102 /* ifndef GNUNET_SIGNATURES_H */
103 #endif
104 /* end of gnunet_signatures.h */