From f26c10330ff78f27836129c9ed05ffb8ae1baa4b Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 11 Oct 2006 05:57:19 +0000 Subject: * ext/digest/sha1/sha1ossl.h: libssl 0.9.8c-3 defines no SHA_BLOCK_LENGTH. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/digest/sha1/sha1ossl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext') diff --git a/ext/digest/sha1/sha1ossl.h b/ext/digest/sha1/sha1ossl.h index c2e19d66e..8a5b9cfc0 100644 --- a/ext/digest/sha1/sha1ossl.h +++ b/ext/digest/sha1/sha1ossl.h @@ -8,7 +8,11 @@ #define SHA1_CTX SHA_CTX +#ifdef SHA_BLOCK_LENGTH #define SHA1_BLOCK_LENGTH SHA_BLOCK_LENGTH +#else +#define SHA1_BLOCK_LENGTH SHA_CBLOCK +#endif #define SHA1_DIGEST_LENGTH SHA_DIGEST_LENGTH void SHA1_Finish(SHA1_CTX *ctx, char *buf); -- cgit