File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,9 @@ void LogSecret(
87
87
}
88
88
89
89
bool SetALPN (const SSLPointer& ssl, std::string_view alpn) {
90
- return SSL_set_alpn_protos (
91
- ssl.get (),
92
- reinterpret_cast <const uint8_t *>(alpn.data ()),
93
- alpn.length ()) == 0 ;
90
+ return SSL_set_alpn_protos (ssl.get (),
91
+ reinterpret_cast <const uint8_t *>(alpn.data ()),
92
+ alpn.length ()) == 0 ;
94
93
}
95
94
96
95
MaybeLocal<Value> GetSSLOCSPResponse (
Original file line number Diff line number Diff line change @@ -1531,7 +1531,7 @@ void TLSWrap::SetALPNProtocols(const FunctionCallbackInfo<Value>& args) {
1531
1531
1532
1532
if (w->is_client ()) {
1533
1533
ArrayBufferViewContents<char > protos (args[0 ].As <ArrayBufferView>());
1534
- CHECK (SetALPN (w->ssl_ , { protos.data (), protos.length () }));
1534
+ CHECK (SetALPN (w->ssl_ , {protos.data (), protos.length ()}));
1535
1535
} else {
1536
1536
CHECK (
1537
1537
w->object ()->SetPrivate (
You can’t perform that action at this time.
0 commit comments