diff --git a/include/openssl/sha.h b/include/openssl/sha.h index 42875f15..423510df 100644 --- a/include/openssl/sha.h +++ b/include/openssl/sha.h @@ -98,8 +98,11 @@ OPENSSL_EXPORT uint8_t *SHA1(const uint8_t *data, size_t len, uint8_t *out); OPENSSL_EXPORT void SHA1_Transform(SHA_CTX *sha, const uint8_t *block); struct sha_state_st { +#if defined(OPENSSL_WINDOWS) + uint32_t h[5]; +#else /* wpa_supplicant accesses |h0|..|h4| so we must support those names - * for compatibility. */ + * for compatibility with it until it can be updated. */ union { uint32_t h[5]; struct { @@ -110,7 +113,7 @@ struct sha_state_st { uint32_t h4; }; }; - +#endif uint32_t Nl, Nh; uint32_t data[16]; unsigned int num;