Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tls: remove setMaxSendFragment guards
Refs: nodejs/node-v0.x-archive#6900
Refs: nodejs/node-v0.x-archive#6889

PR-URL: #34323
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
tniessen authored and MylesBorins committed Jul 27, 2020
1 parent aef41e5 commit e9c7722
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/node_crypto.cc
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand All @@ -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>
Expand Down

0 comments on commit e9c7722

Please sign in to comment.