diff options
author | Mateusz Krawczuk <krawczukmat@gmail.com> | 2020-06-17 18:29:06 +0300 |
---|---|---|
committer | Alba Mendez <me@alba.sh> | 2020-08-07 16:24:55 +0300 |
commit | 33060703cc214b4056718eaaf5738f8fc83130f7 (patch) | |
tree | cf9bf6310f4cc895a8e5c7a649c60fb6286d2e8f /src/node_constants.cc | |
parent | 46bef7b7716b377055260490bb6f713ffb593672 (diff) |
crypto: add OP flag constants added in OpenSSL v1.1.1
PR-URL: https://github.com/nodejs/node/pull/33929
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Alba Mendez <me@alba.sh>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/node_constants.cc')
-rw-r--r-- | src/node_constants.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc index 5d99fa181a0..38c8f2738b4 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -806,6 +806,10 @@ void DefineCryptoConstants(Local<Object> target) { NODE_DEFINE_CONSTANT(target, SSL_OP_ALL); #endif +#ifdef SSL_OP_ALLOW_NO_DHE_KEX + NODE_DEFINE_CONSTANT(target, SSL_OP_ALLOW_NO_DHE_KEX); +#endif + #ifdef SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION NODE_DEFINE_CONSTANT(target, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION); #endif @@ -870,10 +874,18 @@ void DefineCryptoConstants(Local<Object> target) { NODE_DEFINE_CONSTANT(target, SSL_OP_NO_COMPRESSION); #endif +#ifdef SSL_OP_NO_ENCRYPT_THEN_MAC + NODE_DEFINE_CONSTANT(target, SSL_OP_NO_ENCRYPT_THEN_MAC); +#endif + #ifdef SSL_OP_NO_QUERY_MTU NODE_DEFINE_CONSTANT(target, SSL_OP_NO_QUERY_MTU); #endif +#ifdef SSL_OP_NO_RENEGOTIATION + NODE_DEFINE_CONSTANT(target, SSL_OP_NO_RENEGOTIATION); +#endif + #ifdef SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION NODE_DEFINE_CONSTANT(target, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION); #endif @@ -902,6 +914,10 @@ void DefineCryptoConstants(Local<Object> target) { NODE_DEFINE_CONSTANT(target, SSL_OP_NO_TLSv1_2); #endif +#ifdef SSL_OP_NO_TLSv1_3 + NODE_DEFINE_CONSTANT(target, SSL_OP_NO_TLSv1_3); +#endif + #ifdef SSL_OP_PKCS1_CHECK_1 NODE_DEFINE_CONSTANT(target, SSL_OP_PKCS1_CHECK_1); #endif @@ -910,6 +926,10 @@ void DefineCryptoConstants(Local<Object> target) { NODE_DEFINE_CONSTANT(target, SSL_OP_PKCS1_CHECK_2); #endif +#ifdef SSL_OP_PRIORITIZE_CHACHA + NODE_DEFINE_CONSTANT(target, SSL_OP_PRIORITIZE_CHACHA); +#endif + #ifdef SSL_OP_SINGLE_DH_USE NODE_DEFINE_CONSTANT(target, SSL_OP_SINGLE_DH_USE); #endif |