private static QUIC_ALLOWED_CIPHER_SUITE_FLAGS CipherSuitePolicyToFlags(CipherSuitesPolicy cipherSuitesPolicy)
{
QUIC_ALLOWED_CIPHER_SUITE_FLAGS flags = QUIC_ALLOWED_CIPHER_SUITE_FLAGS.NONE;
-
+#pragma warning disable CA1416 // not supported on all platforms
foreach (TlsCipherSuite cipher in cipherSuitesPolicy.AllowedCipherSuites)
{
switch (cipher)
// ignore
break;
}
+#pragma warning restore
}
if (flags == QUIC_ALLOWED_CIPHER_SUITE_FLAGS.NONE)
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
+using System.Runtime.Versioning;
namespace System.Net.Security
{
/// <summary>
/// Specifies allowed cipher suites.
/// </summary>
+ [UnsupportedOSPlatform("windows")]
+ [UnsupportedOSPlatform("android")]
public sealed partial class CipherSuitesPolicy
{
internal CipherSuitesPolicyPal Pal { get; private set; }
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;
+using System.Runtime.Versioning;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
public override Task FlushAsync(CancellationToken cancellationToken) => InnerStream.FlushAsync(cancellationToken);
+ [SupportedOSPlatform("linux")]
+ [SupportedOSPlatform("windows")]
+ [SupportedOSPlatform("freebsd")]
public virtual Task NegotiateClientCertificateAsync(CancellationToken cancellationToken = default)
{
ThrowIfExceptionalOrNotAuthenticated();