Hi. I have patched libfreenet-0.3.0 so that HTL=0 causes it to generate the CHK
but not insert the file. Attached patch.

--
Always hardwire the explosives
        -- Fiona Dexter quoting Monkey, J. Gregory Keyes, Dark Genesis
-------------- next part --------------
diff -u -r tmp/libfreenet-0.3.0/client.c tmp2/libfreenet-0.3.0/client.c
--- tmp/libfreenet-0.3.0/client.c       Wed Mar 28 00:26:10 2001
+++ tmp2/libfreenet-0.3.0/client.c      Fri Apr  6 16:23:55 2001
@@ -1533,6 +1533,12 @@
   content_len = len + FN_HEADER_SIZE;
   total_len = content_len + (num_parts * FN_TRAILER_LEN) + 1;

+  if(!htl)
+  {
+    return FNS_SUCCESS;
+    /* all finished */
+  }
+
   status = freenet_connect(&(state->connection), address, port);
   if (status != FNS_SUCCESS) {
     return status;

Reply via email to