aboutsummaryrefslogtreecommitdiffstats
path: root/test/gost2814789test.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-05-03 17:32:05 +0100
committerDr. Stephen Henson <steve@openssl.org>2015-05-04 13:03:49 +0100
commitbdcb1a2cf553166edec0509f4bf3cd36fc964024 (patch)
tree74df1971edbcdcfc448128d33ace8583eb10ff8b /test/gost2814789test.c
parent59ef580a14a526f6dd8d86b632d67022976fabcd (diff)
downloadopenssl-bdcb1a2cf553166edec0509f4bf3cd36fc964024.tar.gz
more OSSL_NELEM cases
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'test/gost2814789test.c')
-rw-r--r--test/gost2814789test.c3
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;
}