summaryrefslogtreecommitdiff
path: root/crypto/sha
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-05-25 20:27:41 +0000
committerBodo Möller <bodo@openssl.org>1999-05-25 20:27:41 +0000
commit9890b00082caa33aa90957361e8edd8d117b6946 (patch)
tree7dd89a749001b31fc751b539dd1c820e84d50751 /crypto/sha
parent58dc480ffd18007960569db728b93bab499d5deb (diff)
downloadopenssl-new-9890b00082caa33aa90957361e8edd8d117b6946.tar.gz
Temporary workaround for IRIX64 build.
Submitted by: Andy Polyakov <appro@fy.chalmers.se>
Diffstat (limited to 'crypto/sha')
-rw-r--r--crypto/sha/sha1dgst.c4
-rw-r--r--crypto/sha/sha_dgst.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/crypto/sha/sha1dgst.c b/crypto/sha/sha1dgst.c
index de8fa84e24..af8d9aed8a 100644
--- a/crypto/sha/sha1dgst.c
+++ b/crypto/sha/sha1dgst.c
@@ -216,7 +216,7 @@ void SHA1_Update(SHA_CTX *c, const register unsigned char *data,
data+=SHA_CBLOCK;
sha1_block(c,p=c->data,1);
len-=SHA_CBLOCK;
-#else /* little-endian */
+#elif defined(L_ENDIAN)
#define BE_COPY(dst,src,i) { \
l = ((SHA_LONG *)src)[i]; \
Endian_Reverse32(l); \
@@ -280,7 +280,7 @@ void SHA1_Transform(SHA_CTX *c, unsigned char *b)
memcpy(p,b,SHA_CBLOCK);
sha1_block(c,p,1);
return;
-#else
+#elif defined(L_ENDIAN)
if (((unsigned long)b%sizeof(SHA_LONG)) == 0)
{
SHA_LONG *q;
diff --git a/crypto/sha/sha_dgst.c b/crypto/sha/sha_dgst.c
index 7504fb7c08..f4aa5a5144 100644
--- a/crypto/sha/sha_dgst.c
+++ b/crypto/sha/sha_dgst.c
@@ -211,7 +211,7 @@ void SHA_Update(SHA_CTX *c, const register unsigned char *data,
data+=SHA_CBLOCK;
sha_block(c,p=c->data,1);
len-=SHA_CBLOCK;
-#else /* little-endian */
+#elif defined(L_ENDIAN)
#define BE_COPY(dst,src,i) { \
l = ((SHA_LONG *)src)[i]; \
Endian_Reverse32(l); \
@@ -275,7 +275,7 @@ void SHA_Transform(SHA_CTX *c, unsigned char *b)
memcpy(p,b,SHA_CBLOCK);
sha_block(c,p,1);
return;
-#else
+#elif defined(L_ENDIAN)
if (((unsigned long)b%sizeof(SHA_LONG)) == 0)
{
SHA_LONG *q;