Skip to content

Commit

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

PR-URL: #34323
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
tniessen authored and cjihrig committed Jul 22, 2020
1 parent ed01db6 commit 32f26c9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
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 32f26c9

Please sign in to comment.