File transfer work, add identities for validation of updates.
This commit is contained in:
parent
ac4e657aaa
commit
6c63bfce69
6 changed files with 329 additions and 72 deletions
|
@ -619,12 +619,12 @@ public:
|
|||
|
||||
/* Request information about a shared file (for software updates):
|
||||
* <[1] flags, currently unused and must be 0>
|
||||
* <[2] 16-bit length of filename>
|
||||
* <[1] 8-bit length of filename>
|
||||
* <[...] name of file being requested>
|
||||
*
|
||||
* OK response payload (indicates that we have and will share):
|
||||
* <[1] flags, currently unused and must be 0>
|
||||
* <[2] 16-bit length of filename>
|
||||
* <[1] 8-bit length of filename>
|
||||
* <[...] name of file being requested>
|
||||
* <[64] full length SHA-512 hash of file contents>
|
||||
* <[4] 32-bit length of file in bytes>
|
||||
|
@ -636,6 +636,10 @@ public:
|
|||
* <[2] 16-bit length of filename>
|
||||
* <[...] name of file being requested>
|
||||
*
|
||||
* This is used for distribution of software updates and in the future may
|
||||
* be used for anything else that needs to be globally distributed. It
|
||||
* is not designed for end-user use for other purposes.
|
||||
*
|
||||
* Support is optional. Nodes should return UNSUPPORTED_OPERATION if
|
||||
* not supported or enabled.
|
||||
*/
|
||||
|
@ -657,6 +661,10 @@ public:
|
|||
* <[4] 32-bit index of desired chunk>
|
||||
* <[2] 16-bit length of desired chunk>
|
||||
*
|
||||
* This is used for distribution of software updates and in the future may
|
||||
* be used for anything else that needs to be globally distributed. It
|
||||
* is not designed for end-user use for other purposes.
|
||||
*
|
||||
* Support is optional. Nodes should return UNSUPPORTED_OPERATION if
|
||||
* not supported or enabled.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue