diff options
author | Tobias Nießen <tniessen@tnie.de> | 2020-07-12 16:22:26 +0300 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2020-07-19 13:32:17 +0300 |
commit | e3f8dc166a6969358821f3219bb7b2a709820887 (patch) | |
tree | 74e42499c8fe99d6653cee292ed19322519987fe /src/node_crypto.cc | |
parent | a6ba8deecf660e024b90123147019c2fd5728627 (diff) |
tls: remove setMaxSendFragment guards
Refs: https://github.com/nodejs/node-v0.x-archive/pull/6900
Refs: https://github.com/nodejs/node-v0.x-archive/issues/6889
PR-URL: https://github.com/nodejs/node/pull/34323
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_crypto.cc')
-rw-r--r-- | src/node_crypto.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 60462cc114e..b95a1b8f3e2 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1756,9 +1756,7 @@ void SSLWrap<Base>::AddMethods(Environment* env, Local<FunctionTemplate> t) { GetEphemeralKeyInfo); env->SetProtoMethodNoSideEffect(t, "getProtocol", GetProtocol); -#ifdef SSL_set_max_send_fragment env->SetProtoMethod(t, "setMaxSendFragment", SetMaxSendFragment); -#endif // SSL_set_max_send_fragment env->SetProtoMethodNoSideEffect(t, "getALPNNegotiatedProtocol", GetALPNNegotiatedProto); @@ -2117,8 +2115,6 @@ void SSLWrap<Base>::GetEphemeralKeyInfo( // ERR_get_error()) } - -#ifdef SSL_set_max_send_fragment template <class Base> void SSLWrap<Base>::SetMaxSendFragment( const FunctionCallbackInfo<Value>& args) { @@ -2132,7 +2128,6 @@ void SSLWrap<Base>::SetMaxSendFragment( args[0]->Int32Value(w->ssl_env()->context()).FromJust()); args.GetReturnValue().Set(rv); } -#endif // SSL_set_max_send_fragment template <class Base> |