diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-14 22:15:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-14 22:15:55 +0000 |
commit | 6c8fa85819a2b02b3c4a175a08c1779283eda209 (patch) | |
tree | 3d635a2aa58f321fbb8779b6e086113558dc1c52 /src/fs/fs.h | |
parent | 6d7c1dd00a193fc054d1f1588ae7c98dc95b6257 (diff) | |
download | gnunet-6c8fa85819a2b02b3c4a175a08c1779283eda209.tar.gz gnunet-6c8fa85819a2b02b3c4a175a08c1779283eda209.zip |
fix key management issue with LOC signing identified in #3559
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r-- | src/fs/fs.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h index ae6ca489a..5fa4261b2 100644 --- a/src/fs/fs.h +++ b/src/fs/fs.h | |||
@@ -66,6 +66,77 @@ struct ContentHashKey | |||
66 | 66 | ||
67 | GNUNET_NETWORK_STRUCT_BEGIN | 67 | GNUNET_NETWORK_STRUCT_BEGIN |
68 | 68 | ||
69 | |||
70 | /** | ||
71 | * Message sent from a GNUnet (fs) publishing activity to sign | ||
72 | * a LOC URI. | ||
73 | */ | ||
74 | struct RequestLocSignatureMessage | ||
75 | { | ||
76 | |||
77 | /** | ||
78 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_REQUEST_LOC_SIGN. | ||
79 | */ | ||
80 | struct GNUNET_MessageHeader header; | ||
81 | |||
82 | /** | ||
83 | * Requested signature purpose. For now, always | ||
84 | * #GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT. | ||
85 | */ | ||
86 | uint32_t purpose GNUNET_PACKED; | ||
87 | |||
88 | /** | ||
89 | * Requested expiration time. | ||
90 | */ | ||
91 | struct GNUNET_TIME_AbsoluteNBO expiration_time; | ||
92 | |||
93 | /** | ||
94 | * Information about the shared file (to be signed). | ||
95 | */ | ||
96 | struct ContentHashKey chk; | ||
97 | |||
98 | /** | ||
99 | * Size of the shared file (to be signed). | ||
100 | */ | ||
101 | uint64_t file_length; | ||
102 | }; | ||
103 | |||
104 | |||
105 | /** | ||
106 | * Message sent from the service with the signed LOC URI. | ||
107 | */ | ||
108 | struct ResponseLocSignatureMessage | ||
109 | { | ||
110 | |||
111 | /** | ||
112 | * Message type will be | ||
113 | * #GNUNET_MESSAGE_TYPE_FS_REQUEST_LOC_SIGNATURE. | ||
114 | */ | ||
115 | struct GNUNET_MessageHeader header; | ||
116 | |||
117 | /** | ||
118 | * Purpose of the generated signature. For now, always | ||
119 | * #GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT. | ||
120 | */ | ||
121 | uint32_t purpose GNUNET_PACKED; | ||
122 | |||
123 | /** | ||
124 | * Expiration time that was actually used (rounded!). | ||
125 | */ | ||
126 | struct GNUNET_TIME_AbsoluteNBO expiration_time; | ||
127 | |||
128 | /** | ||
129 | * The requested signature. | ||
130 | */ | ||
131 | struct GNUNET_CRYPTO_EddsaSignature signature; | ||
132 | |||
133 | /** | ||
134 | * Identity of the peer sharing the file. | ||
135 | */ | ||
136 | struct GNUNET_PeerIdentity peer; | ||
137 | }; | ||
138 | |||
139 | |||
69 | /** | 140 | /** |
70 | * Message sent from a GNUnet (fs) publishing activity to the | 141 | * Message sent from a GNUnet (fs) publishing activity to the |
71 | * gnunet-fs-service to initiate indexing of a file. The service is | 142 | * gnunet-fs-service to initiate indexing of a file. The service is |