File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ private async Task DoTestSsl(string connectionString)
103
103
Assert . True ( connection . SslIsEncrypted ) ;
104
104
Assert . True ( connection . SslIsSigned ) ;
105
105
Assert . True ( connection . SslIsAuthenticated ) ;
106
+ #if ! NET9_0_OR_GREATER
106
107
Assert . True ( connection . SslIsMutuallyAuthenticated ) ;
108
+ #endif
107
109
#endif
108
110
cmd . CommandText = "SHOW SESSION STATUS LIKE 'Ssl_version'" ;
109
111
var sslVersion = ( string ) await cmd . ExecuteScalarAsync ( ) ;
@@ -133,9 +135,11 @@ public async Task ConnectSslClientCertificateFromCertificateStore(string certFil
133
135
Assert . True ( connection . SslIsEncrypted ) ;
134
136
Assert . True ( connection . SslIsSigned ) ;
135
137
Assert . True ( connection . SslIsAuthenticated ) ;
138
+ #if ! NET9_0_OR_GREATER
136
139
Assert . True ( connection . SslIsMutuallyAuthenticated ) ;
137
140
#endif
138
- cmd . CommandText = "SHOW SESSION STATUS LIKE 'Ssl_version'" ;
141
+ #endif
142
+ cmd . CommandText = "SHOW SESSION STATUS LIKE 'Ssl_version'" ;
139
143
var sslVersion = ( string ) await cmd . ExecuteScalarAsync ( ) ;
140
144
Assert . False ( string . IsNullOrWhiteSpace ( sslVersion ) ) ;
141
145
}
You can’t perform that action at this time.
0 commit comments