File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/BenchmarksApps/TLS/Kestrel Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509
111
111
Console . WriteLine ( "TLS: " + tlsHandshakeFeature . Protocol ) ;
112
112
Console . WriteLine ( "-----" ) ;
113
113
}
114
- await next ( ) ;
114
+
115
+ await next ( context ) ;
115
116
} ) ;
116
117
}
117
118
@@ -123,7 +124,7 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509
123
124
connectionIds . Add ( context . Connection . Id ) ;
124
125
Console . WriteLine ( $ "[stats] unique connections established: { connectionIds . Count } ; fetched certificates: { fetchedCertsCounter } ") ;
125
126
126
- await next ( ) ;
127
+ await next ( context ) ;
127
128
} ) ;
128
129
}
129
130
@@ -143,7 +144,7 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509
143
144
Console . WriteLine ( $ "client certificate ({ clientCert . Thumbprint } ) already exists on the connection { context . Connection . Id } ") ;
144
145
}
145
146
146
- await next ( ) ;
147
+ await next ( context ) ;
147
148
} ) ;
148
149
}
149
150
@@ -206,11 +207,6 @@ static IPEndPoint CreateIPEndPoint(UrlPrefix urlPrefix)
206
207
{
207
208
switch ( version . Trim ( ) . ToLower ( ) )
208
209
{
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
214
210
case "tls12" :
215
211
protocols |= SslProtocols . Tls12 ;
216
212
break ;
You can’t perform that action at this time.
0 commit comments