diff options
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r-- | src/namestore/namestore.h | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h index 5e900dbcc..f403d589c 100644 --- a/src/namestore/namestore.h +++ b/src/namestore/namestore.h | |||
@@ -53,99 +53,6 @@ struct GNUNET_NAMESTORE_Header | |||
53 | 53 | ||
54 | 54 | ||
55 | /** | 55 | /** |
56 | * Lookup a block in the namestore | ||
57 | */ | ||
58 | struct LookupBlockMessage | ||
59 | { | ||
60 | /** | ||
61 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_BLOCK | ||
62 | */ | ||
63 | struct GNUNET_NAMESTORE_Header gns_header; | ||
64 | |||
65 | /** | ||
66 | * The query. | ||
67 | */ | ||
68 | struct GNUNET_HashCode query GNUNET_PACKED; | ||
69 | |||
70 | }; | ||
71 | |||
72 | |||
73 | /** | ||
74 | * Lookup response | ||
75 | */ | ||
76 | struct LookupBlockResponseMessage | ||
77 | { | ||
78 | /** | ||
79 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_BLOCK_RESPONSE | ||
80 | */ | ||
81 | struct GNUNET_NAMESTORE_Header gns_header; | ||
82 | |||
83 | /** | ||
84 | * Expiration time | ||
85 | */ | ||
86 | struct GNUNET_TIME_AbsoluteNBO expire; | ||
87 | |||
88 | /** | ||
89 | * Signature. | ||
90 | */ | ||
91 | struct GNUNET_CRYPTO_EcdsaSignature signature; | ||
92 | |||
93 | /** | ||
94 | * Derived public key. | ||
95 | */ | ||
96 | struct GNUNET_CRYPTO_EcdsaPublicKey derived_key; | ||
97 | |||
98 | /* followed by encrypted block data */ | ||
99 | }; | ||
100 | |||
101 | |||
102 | /** | ||
103 | * Cache a record in the namestore. | ||
104 | */ | ||
105 | struct BlockCacheMessage | ||
106 | { | ||
107 | /** | ||
108 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE | ||
109 | */ | ||
110 | struct GNUNET_NAMESTORE_Header gns_header; | ||
111 | |||
112 | /** | ||
113 | * Expiration time | ||
114 | */ | ||
115 | struct GNUNET_TIME_AbsoluteNBO expire; | ||
116 | |||
117 | /** | ||
118 | * Signature. | ||
119 | */ | ||
120 | struct GNUNET_CRYPTO_EcdsaSignature signature; | ||
121 | |||
122 | /** | ||
123 | * Derived public key. | ||
124 | */ | ||
125 | struct GNUNET_CRYPTO_EcdsaPublicKey derived_key; | ||
126 | |||
127 | /* follwed by encrypted block data */ | ||
128 | }; | ||
129 | |||
130 | |||
131 | /** | ||
132 | * Response to a request to cache a block. | ||
133 | */ | ||
134 | struct BlockCacheResponseMessage | ||
135 | { | ||
136 | /** | ||
137 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE_RESPONSE | ||
138 | */ | ||
139 | struct GNUNET_NAMESTORE_Header gns_header; | ||
140 | |||
141 | /** | ||
142 | * #GNUNET_OK on success, #GNUNET_SYSERR error | ||
143 | */ | ||
144 | int32_t op_result GNUNET_PACKED; | ||
145 | }; | ||
146 | |||
147 | |||
148 | /** | ||
149 | * Store a record to the namestore (as authority). | 56 | * Store a record to the namestore (as authority). |
150 | */ | 57 | */ |
151 | struct RecordStoreMessage | 58 | struct RecordStoreMessage |