diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-08-27 18:01:01 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-08-29 00:27:09 +0400 |
commit | 6e453fad87c51dc15327628aa75886d3fbb3fa1c (patch) | |
tree | a750ea46af04a3107132a3e21eb6047675a15178 /src/node_constants.cc | |
parent | f7d6147e43b8a80a0d627f2034271239db500d9f (diff) | |
download | node-new-6e453fad87c51dc15327628aa75886d3fbb3fa1c.tar.gz |
crypto: introduce ECDH
Diffstat (limited to 'src/node_constants.cc')
-rw-r--r-- | src/node_constants.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc index 430a09c685..118824e95d 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -33,6 +33,7 @@ #include <sys/stat.h> #if HAVE_OPENSSL +# include <openssl/ec.h> # include <openssl/ssl.h> # ifndef OPENSSL_NO_ENGINE # include <openssl/engine.h> @@ -974,6 +975,13 @@ void DefineOpenSSLConstants(Handle<Object> target) { #ifdef RSA_PKCS1_PSS_PADDING NODE_DEFINE_CONSTANT(target, RSA_PKCS1_PSS_PADDING); #endif + + // 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); } void DefineSystemConstants(Handle<Object> target) { |