summaryrefslogtreecommitdiff
path: root/ext/digest/sha1/sha1ossl.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/sha1/sha1ossl.h')
-rw-r--r--ext/digest/sha1/sha1ossl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/digest/sha1/sha1ossl.h b/ext/digest/sha1/sha1ossl.h
index c2e19d66e8..8a5b9cfc02 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);