Browse Source

crypto: wrap ECDH constants in HAVE_OPENSSL

Reviewed-By: Fedor Indutny <fedor@indutny.com>
v0.11.14-release
Isaac Burns 10 years ago
committed by Fedor Indutny
parent
commit
53fc14c569
  1. 2
      src/node_constants.cc

2
src/node_constants.cc

@ -976,12 +976,14 @@ void DefineOpenSSLConstants(Handle<Object> target) {
NODE_DEFINE_CONSTANT(target, RSA_PKCS1_PSS_PADDING); NODE_DEFINE_CONSTANT(target, RSA_PKCS1_PSS_PADDING);
#endif #endif
#if HAVE_OPENSSL
// NOTE: These are not defines // NOTE: These are not defines
NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_COMPRESSED); NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_COMPRESSED);
NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_UNCOMPRESSED); NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_UNCOMPRESSED);
NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_HYBRID); NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_HYBRID);
#endif
} }
void DefineSystemConstants(Handle<Object> target) { void DefineSystemConstants(Handle<Object> target) {

Loading…
Cancel
Save