diff --git a/include/openssl/sha.h b/include/openssl/sha.h index f4253ec4..42875f15 100644 --- a/include/openssl/sha.h +++ b/include/openssl/sha.h @@ -98,11 +98,8 @@ 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(ANDROID) - uint32_t h[5]; -#else /* wpa_supplicant accesses |h0|..|h4| so we must support those names - * for compatibility with it until it can be updated. */ + * for compatibility. */ union { uint32_t h[5]; struct { @@ -113,7 +110,7 @@ struct sha_state_st { uint32_t h4; }; }; -#endif + uint32_t Nl, Nh; uint32_t data[16]; unsigned int num;