Skip to content

Commit 48911b2

Browse files
committed
address PR comments
1 parent 83c31b0 commit 48911b2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/BenchmarksApps/TLS/Kestrel/Program.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509
111111
Console.WriteLine("TLS: " + tlsHandshakeFeature.Protocol);
112112
Console.WriteLine("-----");
113113
}
114-
await next();
114+
115+
await next(context);
115116
});
116117
}
117118

@@ -123,7 +124,7 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509
123124
connectionIds.Add(context.Connection.Id);
124125
Console.WriteLine($"[stats] unique connections established: {connectionIds.Count}; fetched certificates: {fetchedCertsCounter}");
125126

126-
await next();
127+
await next(context);
127128
});
128129
}
129130

@@ -143,7 +144,7 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509
143144
Console.WriteLine($"client certificate ({clientCert.Thumbprint}) already exists on the connection {context.Connection.Id}");
144145
}
145146

146-
await next();
147+
await next(context);
147148
});
148149
}
149150

@@ -206,11 +207,6 @@ static IPEndPoint CreateIPEndPoint(UrlPrefix urlPrefix)
206207
{
207208
switch (version.Trim().ToLower())
208209
{
209-
#pragma warning disable SYSLIB0039 // Type or member is obsolete
210-
case "tls11":
211-
protocols |= SslProtocols.Tls11;
212-
break;
213-
#pragma warning restore SYSLIB0039 // Type or member is obsolete
214210
case "tls12":
215211
protocols |= SslProtocols.Tls12;
216212
break;

0 commit comments

Comments
 (0)