From 6cc190f988c8d41407e562d426f90722706fd8b3 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Wed, 22 Feb 2017 15:38:09 -0500 Subject: Backport OSSL_NELEM Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/2713) --- crypto/ec/ec_asn1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/ec/ec_asn1.c b/crypto/ec/ec_asn1.c index cf81841035..b0cd3e1788 100644 --- a/crypto/ec/ec_asn1.c +++ b/crypto/ec/ec_asn1.c @@ -62,6 +62,8 @@ #include #include +#define OSSL_NELEM(x) (sizeof(x)/sizeof(x[0])) + int EC_GROUP_get_basis_type(const EC_GROUP *group) { int i; -- cgit v1.2.3