Make sha.h more "portable."
authorAndy Polyakov <appro@openssl.org>
Fri, 22 Dec 2006 15:42:06 +0000 (15:42 +0000)
committerAndy Polyakov <appro@openssl.org>
Fri, 22 Dec 2006 15:42:06 +0000 (15:42 +0000)
crypto/sha/sha.h

index b7773d6..5a023d5 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;