• Juan Castillo's avatar
    TBB: build 'cert_create' with ECDSA only if OpenSSL supports it · ed2a76ea
    Juan Castillo authored
    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
    ed2a76ea
main.c 22.6 KB