From: Rich Salz Date: Wed, 22 Feb 2017 20:38:09 +0000 (-0500) Subject: Backport OSSL_NELEM X-Git-Tag: OpenSSL_1_0_2l~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cc190f988c8d41407e562d426f90722706fd8b3;p=openssl Backport OSSL_NELEM Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/2713) --- 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;