aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_signatures.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-25 12:57:38 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-25 12:57:38 +0000
commit4f56b105659c204874c7a8506d5d8dabaddf5963 (patch)
tree51b2dd6b08ce3fe107611d9704aaee0801682b12 /src/include/gnunet_signatures.h
parentdef2a4de4924055d7cbbfd876896631ca166892b (diff)
downloadgnunet-4f56b105659c204874c7a8506d5d8dabaddf5963.tar.gz
gnunet-4f56b105659c204874c7a8506d5d8dabaddf5963.zip
new transport address validation code -- see Mantis 1556
Diffstat (limited to 'src/include/gnunet_signatures.h')
-rw-r--r--src/include/gnunet_signatures.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/include/gnunet_signatures.h b/src/include/gnunet_signatures.h
index 0dd795dd2..a3199c735 100644
--- a/src/include/gnunet_signatures.h
+++ b/src/include/gnunet_signatures.h
@@ -43,53 +43,59 @@ extern "C"
43#define GNUNET_SIGNATURE_PURPOSE_TEST 0 43#define GNUNET_SIGNATURE_PURPOSE_TEST 0
44 44
45/** 45/**
46 * Signature for confirming HELLOs for transport. 46 * Signature for confirming that this peer uses a particular address.
47 */ 47 */
48#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PING 1 48#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN 1
49
50/**
51 * Signature for confirming that this peer connected to another peer
52 * using a particular address.
53 */
54#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_USING 2
49 55
50 56
51/** 57/**
52 * Purpose is to set a session key. 58 * Purpose is to set a session key.
53 */ 59 */
54#define GNUNET_SIGNATURE_PURPOSE_SET_KEY 2 60#define GNUNET_SIGNATURE_PURPOSE_SET_KEY 3
55 61
56/** 62/**
57 * Signature for a namespace/pseudonym advertisement (by 63 * Signature for a namespace/pseudonym advertisement (by
58 * the namespace owner). 64 * the namespace owner).
59 */ 65 */
60#define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 3 66#define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 4
61 67
62/** 68/**
63 * Signature by which a peer affirms that it is 69 * Signature by which a peer affirms that it is
64 * providing a certain bit of content (used 70 * providing a certain bit of content (used
65 * in LOCation URIs). 71 * in LOCation URIs).
66 */ 72 */
67#define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 4 73#define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 5
68 74
69/** 75/**
70 * Signature in a KBlock of the FS module. 76 * Signature in a KBlock of the FS module.
71 */ 77 */
72#define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 5 78#define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 6
73 79
74/** 80/**
75 * Signature of content URI placed into a namespace. 81 * Signature of content URI placed into a namespace.
76 */ 82 */
77#define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 6 83#define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 7
78 84
79/** 85/**
80 * Signature of advertisment for a namespace. 86 * Signature of advertisment for a namespace.
81 */ 87 */
82#define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 7 88#define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 8
83 89
84/** 90/**
85 * Keyword-based signature of advertisment for a namespace. 91 * Keyword-based signature of advertisment for a namespace.
86 */ 92 */
87#define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 8 93#define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 9
88 94
89/** 95/**
90 * 96 *
91 */ 97 */
92#define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 9 98#define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 10
93 99
94 100
95#if 0 /* keep Emacsens' auto-indent happy */ 101#if 0 /* keep Emacsens' auto-indent happy */