From: phk Date: Mon, 23 Feb 2009 10:46:07 +0000 (+0000) Subject: Add symbolic SHA256_LEN for the size of the digest. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a826f4840442eb644d6985634d5d4d2f3b3a948e;p=varnish Add symbolic SHA256_LEN for the size of the digest. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3807 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/include/vsha256.h b/varnish-cache/include/vsha256.h index 7faef930..66811d3b 100644 --- a/varnish-cache/include/vsha256.h +++ b/varnish-cache/include/vsha256.h @@ -31,6 +31,8 @@ #include +#define SHA256_LEN 32 + typedef struct SHA256Context { uint32_t state[8]; uint64_t count; @@ -39,7 +41,7 @@ typedef struct SHA256Context { 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_ */