r3936 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Mar 16 12:58:51 CET 2009


Author: phk
Date: 2009-03-16 12:58:51 +0100 (Mon, 16 Mar 2009)
New Revision: 3936

Modified:
   trunk/varnish-cache/bin/varnishd/storage_persistent.c
Log:
Explain the signature.



Modified: trunk/varnish-cache/bin/varnishd/storage_persistent.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_persistent.c	2009-03-16 11:55:38 UTC (rev 3935)
+++ trunk/varnish-cache/bin/varnishd/storage_persistent.c	2009-03-16 11:58:51 UTC (rev 3936)
@@ -133,6 +133,11 @@
 
 /*********************************************************************
  * SIGNATURE functions
+ * The signature is SHA256 over:
+ *    1. The smp_sign struct up to but not including the length field.
+ *    2. smp_sign->length bytes, starting after the smp_sign structure
+ *    3. The smp-sign->length field.
+ * The signature is stored after the byte-range from step 2.
  */
 
 #define SIGN_DATA(ctx)	((void *)((ctx)->ss + 1))



More information about the varnish-commit mailing list