From 25a4f6c3be430ef09c999ee00128250247d827c8 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 --- src/node_crypto.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index eae0f2e49d3c86..945584cfc4abb4 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1757,9 +1757,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); @@ -2118,8 +2116,6 @@ void SSLWrap::GetEphemeralKeyInfo( // ERR_get_error()) } - -#ifdef SSL_set_max_send_fragment template void SSLWrap::SetMaxSendFragment( const FunctionCallbackInfo& args) { @@ -2133,7 +2129,6 @@ void SSLWrap::SetMaxSendFragment( args[0]->Int32Value(w->ssl_env()->context()).FromJust()); args.GetReturnValue().Set(rv); } -#endif // SSL_set_max_send_fragment template