diff options
author | Rich Salz <rsalz@openssl.org> | 2017-02-22 15:38:09 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-02-23 09:12:07 -0500 |
commit | 6cc190f988c8d41407e562d426f90722706fd8b3 (patch) | |
tree | cf20d7484fc5c78469562cb5935eda0b2dbf6ded /crypto/ec | |
parent | 6161c5d81b66f38a8a65b78379182a42a9819cc6 (diff) |
Backport OSSL_NELEM
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2713)
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ec_asn1.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <openssl/asn1t.h> #include <openssl/objects.h> +#define OSSL_NELEM(x) (sizeof(x)/sizeof(x[0])) + int EC_GROUP_get_basis_type(const EC_GROUP *group) { int i; |