chiark / gitweb /
server: plumb Content-Length length hint
[hippotat.git] / PROTOCOL
index e18cf0e1554da169e6ffdcd8994ba3a727f8c17c..4c813b9dac9c072d8020e1ea78061c6ef97b05de 100644 (file)
--- a/PROTOCOL
+++ b/PROTOCOL
@@ -22,6 +22,8 @@ Client form parameters (multipart/form-data):
                        token
                        target_requests_outstanding
                        http_timeout
+                       max_batch_down          } not supplied
+                       max_batch_up            }  by older clients
  d              data (SLIP format, with SLIP_ESC and `-' swapped)
 
 
@@ -29,6 +31,7 @@ Authentication token is:
         <time_t in hex with no leading 0s> <hmac in base64>
 (separated by a single space).  The hmac is
         HMAC(secret, <time_t in hex>)
+and the hash function is SHA256
 
 
 Possible future nonce-based authentication:
@@ -39,4 +42,5 @@ meaning is:
 also server keeps bitmap of the previous ?64 nonces,
  whether client has sent them
 
-client picks.... xxx
+difficult because client-generated nonces would have to never go
+backwaards which basically means never-rewinding state on the client.