2 This file is part of GNUnet.
3 (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Christian Grothoff (and other contributing authors)
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.
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.
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.
23 * @brief definitions for the entire fs module
24 * @author Igor Wronsky, Christian Grothoff
30 * Size of the individual blocks used for file-sharing.
32 #define GNUNET_FS_DBLOCK_SIZE (32*1024)
35 * @brief content hash key
40 GNUNET_HashCode query;
45 * @brief complete information needed
52 * Total size of the file in bytes. (network byte order (!))
54 unsigned long long file_length;
57 * Query and key of the top GNUNET_EC_IBlock.
59 struct ContentHashKey chk;
65 * Information about a file and its location
66 * (peer claiming to share the file).
71 * Information about the shared file.
73 struct FileIdentifier fi;
76 * Identity of the peer sharing the file.
78 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded peer;
81 * Time when this location URI expires.
83 struct GNUNET_TIME_Absolute expirationTime;
86 * RSA signature over the GNUNET_EC_FileIdentifier,
87 * GNUNET_hash of the peer and expiration time.
89 struct GNUNET_CRYPTO_RsaSignature contentSignature;
94 { chk, sks, ksk, loc };
97 * A Universal Resource Identifier (URI), opaque.
107 * Keywords start with a '+' if they are
108 * mandatory (in which case the '+' is NOT
109 * part of the keyword) and with a
110 * simple space if they are optional
111 * (in which case the space is ALSO not
112 * part of the actual keyword).
114 * Double-quotes to protect spaces and
115 * %-encoding are NOT used internally
116 * (only in URI-strings).
119 unsigned int keywordCount;
123 GNUNET_HashCode namespace;
126 struct FileIdentifier chk;