r3807 - trunk/varnish-cache/include
phk at projects.linpro.no
phk at projects.linpro.no
Mon Feb 23 11:46:08 CET 2009
Author: phk
Date: 2009-02-23 11:46:07 +0100 (Mon, 23 Feb 2009)
New Revision: 3807
Modified:
trunk/varnish-cache/include/vsha256.h
Log:
Add symbolic SHA256_LEN for the size of the digest.
Modified: trunk/varnish-cache/include/vsha256.h
===================================================================
--- trunk/varnish-cache/include/vsha256.h 2009-02-23 10:07:51 UTC (rev 3806)
+++ trunk/varnish-cache/include/vsha256.h 2009-02-23 10:46:07 UTC (rev 3807)
@@ -31,6 +31,8 @@
#include <stdint.h>
+#define SHA256_LEN 32
+
typedef struct SHA256Context {
uint32_t state[8];
uint64_t count;
@@ -39,7 +41,7 @@
void SHA256_Init(SHA256_CTX *);
void SHA256_Update(SHA256_CTX *, const void *, size_t);
-void SHA256_Final(unsigned char [32], SHA256_CTX *);
+void SHA256_Final(unsigned char [SHA256_LEN], SHA256_CTX *);
void SHA256_Test(void);
#endif /* !_SHA256_H_ */
More information about the varnish-commit
mailing list