aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_signatures.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_signatures.h')
-rw-r--r--src/include/gnunet_signatures.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/src/include/gnunet_signatures.h b/src/include/gnunet_signatures.h
new file mode 100644
index 000000000..adb00c1ac
--- /dev/null
+++ b/src/include/gnunet_signatures.h
@@ -0,0 +1,77 @@
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
31extern "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.
47 */
48#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_HELLO 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 */
65#define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 3
66
67
68#if 0 /* keep Emacsens' auto-indent happy */
69{
70#endif
71#ifdef __cplusplus
72}
73#endif
74
75/* ifndef GNUNET_SIGNATURES_H */
76#endif
77/* end of gnunet_signatures.h */