diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-20 16:23:03 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-20 16:23:03 +0000 |
commit | 8fb04b9803778bb93c7e19cc94533c21aeaa7d03 (patch) | |
tree | 343f51f058094c9c571b6e72407bdbd01768cac0 /crypto/sha/sha.h | |
parent | 8310d7df75d7633ff3039c9d6ed557f164ec5d90 (diff) | |
download | openssl-8fb04b9803778bb93c7e19cc94533c21aeaa7d03.tar.gz |
Problems with 64-bit long.
Pointed out by Andy Polyakov <appro@fy.chalmers.se>.
Diffstat (limited to 'crypto/sha/sha.h')
-rw-r--r-- | crypto/sha/sha.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/crypto/sha/sha.h b/crypto/sha/sha.h index 4cf0ea0225..a7df1d7e49 100644 --- a/crypto/sha/sha.h +++ b/crypto/sha/sha.h @@ -70,11 +70,17 @@ extern "C" { #define SHA_LENGTH_BLOCK 8 #define SHA_DIGEST_LENGTH 20 +#ifdef WIN16 +#define SHA_LONG unsigned long +#else +#define SHA_LONG unsigned int +#endif + typedef struct SHAstate_st { - unsigned long h0,h1,h2,h3,h4; - unsigned long Nl,Nh; - unsigned long data[SHA_LBLOCK]; + SHA_LONG h0,h1,h2,h3,h4; + SHA_LONG Nl,Nh; + SHA_LONG data[SHA_LBLOCK]; int num; } SHA_CTX; |