TBB: build 'cert_create' with ECDSA only if OpenSSL supports it
Some Linux distributions include an OpenSSL library which has been
built without ECDSA support. Trying to build the certificate
generation tool on those distributions will result in a build error.

This patch fixes that issue by including ECDSA support only if
OpenSSL has been built with ECDSA. In that case, the OpenSSL
configuration file does not define the OPENSSL_NO_EC macro. The tool
will build successfully, although the resulting binary will not
support ECDSA keys.

Change-Id: I4627d1abd19eef7ad3251997d8218599187eb902
1 parent 84f95be commit ed2a76eab4842652408e483e5779a9d657e8d786
@Juan Castillo Juan Castillo authored on 30 Jun 2015
Showing 3 changed files
View
tools/cert_create/include/key.h
View
tools/cert_create/src/key.c
View
tools/cert_create/src/main.c