Skip to content

Commit 53fc14c

Browse files
flyoverindutny
authored andcommitted
crypto: wrap ECDH constants in HAVE_OPENSSL
Reviewed-By: Fedor Indutny <fedor@indutny.com>
1 parent f6877f3 commit 53fc14c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/node_constants.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,12 +976,14 @@ void DefineOpenSSLConstants(Handle<Object> target) {
976976
NODE_DEFINE_CONSTANT(target, RSA_PKCS1_PSS_PADDING);
977977
#endif
978978

979+
#if HAVE_OPENSSL
979980
// NOTE: These are not defines
980981
NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_COMPRESSED);
981982

982983
NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_UNCOMPRESSED);
983984

984985
NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_HYBRID);
986+
#endif
985987
}
986988

987989
void DefineSystemConstants(Handle<Object> target) {

0 commit comments

Comments
 (0)