From e3f8dc166a6969358821f3219bb7b2a709820887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sun, 12 Jul 2020 15:22:26 +0200 Subject: [PATCH] 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 Reviewed-By: James M Snell --- src/node_crypto.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 60462cc114e6ef..b95a1b8f3e24df 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1756,9 +1756,7 @@ void SSLWrap::AddMethods(Environment* env, Local 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::GetEphemeralKeyInfo( // ERR_get_error()) } - -#ifdef SSL_set_max_send_fragment template void SSLWrap::SetMaxSendFragment( const FunctionCallbackInfo& args) { @@ -2132,7 +2128,6 @@ void SSLWrap::SetMaxSendFragment( args[0]->Int32Value(w->ssl_env()->context()).FromJust()); args.GetReturnValue().Set(rv); } -#endif // SSL_set_max_send_fragment template