diff options
Diffstat (limited to 'test/gost2814789test.c')
-rw-r--r-- | test/gost2814789test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/gost2814789test.c b/test/gost2814789test.c index 8384d66bd0..4569249e9a 100644 --- a/test/gost2814789test.c +++ b/test/gost2814789test.c @@ -26,6 +26,7 @@ int main(int argc, char *argv[]) # include <openssl/evp.h> # include <openssl/hmac.h> # include <openssl/obj_mac.h> +# include "e_os.h" # define CCGOST_ID "gost" @@ -1311,7 +1312,7 @@ int main(int argc, char *argv[]) } /* 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; } |