Skip to content

Commit bcc0913

Browse files
tniessenaddaleax
authored andcommitted
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 <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 007b4c1 commit bcc0913

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/node_crypto.cc

-5
Original file line numberDiff line numberDiff line change
@@ -1735,9 +1735,7 @@ void SSLWrap<Base>::AddMethods(Environment* env, Local<FunctionTemplate> t) {
17351735
GetEphemeralKeyInfo);
17361736
env->SetProtoMethodNoSideEffect(t, "getProtocol", GetProtocol);
17371737

1738-
#ifdef SSL_set_max_send_fragment
17391738
env->SetProtoMethod(t, "setMaxSendFragment", SetMaxSendFragment);
1740-
#endif // SSL_set_max_send_fragment
17411739

17421740
env->SetProtoMethodNoSideEffect(t, "getALPNNegotiatedProtocol",
17431741
GetALPNNegotiatedProto);
@@ -2096,8 +2094,6 @@ void SSLWrap<Base>::GetEphemeralKeyInfo(
20962094
// ERR_get_error())
20972095
}
20982096

2099-
2100-
#ifdef SSL_set_max_send_fragment
21012097
template <class Base>
21022098
void SSLWrap<Base>::SetMaxSendFragment(
21032099
const FunctionCallbackInfo<Value>& args) {
@@ -2111,7 +2107,6 @@ void SSLWrap<Base>::SetMaxSendFragment(
21112107
args[0]->Int32Value(w->ssl_env()->context()).FromJust());
21122108
args.GetReturnValue().Set(rv);
21132109
}
2114-
#endif // SSL_set_max_send_fragment
21152110

21162111

21172112
template <class Base>

0 commit comments

Comments
 (0)