Make sha.h more "portable."
[openssl.git] / crypto / sha / sha.h
index b7773d6c21a22a76cb5bdcb9d760adf5d6aa9b2d..5a023d52b994dd63f4f3f8391c39fe0589d529e9 100644 (file)
@@ -60,6 +60,7 @@
 #define HEADER_SHA_H
 
 #include <openssl/e_os2.h>
+#include <stddef.h>
 
 #ifdef  __cplusplus
 extern "C" {
@@ -98,7 +99,7 @@ extern "C" {
 
 typedef struct SHAstate_st
        {
-       SHA_LONG h0,h1,h2,h3,h4;
+       SHA_LONG h[5];
        SHA_LONG Nl,Nh;
        SHA_LONG data[SHA_LBLOCK];
        unsigned int num;