more OSSL_NELEM cases
[openssl.git] / test / gost2814789test.c
index 8384d66bd09e7194d9ef0b1904a9238834c8fd23..4569249e9ab41596ae1c8abcddbb3fb3bde7700f 100644 (file)
@@ -26,6 +26,7 @@ int main(int argc, char *argv[])
 # include <openssl/evp.h>
 # include <openssl/hmac.h>
 # include <openssl/obj_mac.h>
 # include <openssl/evp.h>
 # include <openssl/hmac.h>
 # include <openssl/obj_mac.h>
+# include "e_os.h"
 
 # define CCGOST_ID "gost"
 
 
 # define CCGOST_ID "gost"
 
@@ -1311,7 +1312,7 @@ int main(int argc, char *argv[])
     }
 
     /* Test cases */
     }
 
     /* Test cases */
-    for (t = 0; t < sizeof(tcs) / sizeof(tcs[0]); t++) {
+    for (t = 0; t < OSSL_NELEM(tcs); t++) {
         if (NULL == tcs[t].szDerive) {
             continue;
         }
         if (NULL == tcs[t].szDerive) {
             continue;
         }