diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-11 05:57:19 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-11 05:57:19 +0000 |
commit | f26c10330ff78f27836129c9ed05ffb8ae1baa4b (patch) | |
tree | 0e3ee427847ac3b29d8cea63bc402e9ae9231f26 /ext/digest | |
parent | 50938caee55064722c2aebda177ddb463aaed58c (diff) | |
download | ruby-f26c10330ff78f27836129c9ed05ffb8ae1baa4b.tar.gz ruby-f26c10330ff78f27836129c9ed05ffb8ae1baa4b.tar.xz ruby-f26c10330ff78f27836129c9ed05ffb8ae1baa4b.zip |
* 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
Diffstat (limited to 'ext/digest')
-rw-r--r-- | ext/digest/sha1/sha1ossl.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |