apps/speed.c: skip binary curves when compiling with OPENSSL_NO_EC2M
authorVitezslav Cizek <vcizek@suse.com>
Tue, 5 Mar 2019 16:14:33 +0000 (17:14 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 19 Mar 2019 10:30:27 +0000 (10:30 +0000)
commit958beb89b34aafe16b62416099e099ce0eb3e5e4
tree5129956085a49a92dfc3233be578b128fde6e2f6
parent5f702f16e7ed108b2098042c2488fb5b86ac83c2
apps/speed.c: skip binary curves when compiling with OPENSSL_NO_EC2M

openssl speed doesn't take into account that the library could be
compiled without the support for the binary curves and happily uses
them, which results in EC_GROUP_new_by_curve_name() errors.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8422)

(cherry picked from commit d61f489b5a8d8369e75ee1e4991b3d4db95d7c7c)
apps/speed.c