Skip to content

crypto: add OPENSSL_NO_EC guard

It is possible configure OpenSSL with no elliptic curve support using: $ ./Configure no-ec

When configuring Node and specifying the above version of OpenSSL a number of funtions will not work as they expect to have elliptic curve support (--shared-openssl).

This commit adds a guard to check the places where elliptic curve functionality is used and reduces the JavaScript API so that these functions are not exposed.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

crypto

Merge request reports

Loading