From 53fc14c5691151d85e7a337e94202e84b004ab7c Mon Sep 17 00:00:00 2001 From: Isaac Burns Date: Fri, 29 Aug 2014 14:47:42 -0500 Subject: [PATCH] crypto: wrap ECDH constants in HAVE_OPENSSL Reviewed-By: Fedor Indutny --- src/node_constants.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node_constants.cc b/src/node_constants.cc index 118824e95d..45840d8653 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -976,12 +976,14 @@ void DefineOpenSSLConstants(Handle target) { NODE_DEFINE_CONSTANT(target, RSA_PKCS1_PSS_PADDING); #endif +#if HAVE_OPENSSL // NOTE: These are not defines NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_COMPRESSED); NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_UNCOMPRESSED); NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_HYBRID); +#endif } void DefineSystemConstants(Handle target) {