syn
[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 TCP plugins.
47  */
48 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_TCP_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 /**
64  * Signature of content URI placed into a namespace.
65  */
66 #define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_PLACEMENT 4
67
68 /**
69  *
70  */
71 #define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 5
72
73
74 #if 0                           /* keep Emacsens' auto-indent happy */
75 {
76 #endif
77 #ifdef __cplusplus
78 }
79 #endif
80
81 /* ifndef GNUNET_SIGNATURES_H */
82 #endif
83 /* end of gnunet_signatures.h */