|
|
|
@ -1,6 +1,6 @@
|
|
|
|
#region License
|
|
|
|
#region License
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* ClientSslAuthConfiguration.cs
|
|
|
|
* ClientSslConfiguration.cs
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* The MIT License
|
|
|
|
* The MIT License
|
|
|
|
*
|
|
|
|
*
|
|
|
|
@ -43,7 +43,7 @@ namespace WebSocketSharp.Net
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Stores the parameters used to configure a <see cref="SslStream"/> instance as a client.
|
|
|
|
/// Stores the parameters used to configure a <see cref="SslStream"/> instance as a client.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public class ClientSslAuthConfiguration
|
|
|
|
public class ClientSslConfiguration
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#region Private Fields
|
|
|
|
#region Private Fields
|
|
|
|
|
|
|
|
|
|
|
|
@ -59,20 +59,20 @@ namespace WebSocketSharp.Net
|
|
|
|
#region Public Constructors
|
|
|
|
#region Public Constructors
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="ClientSslAuthConfiguration"/> class with
|
|
|
|
/// Initializes a new instance of the <see cref="ClientSslConfiguration"/> class with
|
|
|
|
/// the specified <paramref name="targetHost"/>.
|
|
|
|
/// the specified <paramref name="targetHost"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="targetHost">
|
|
|
|
/// <param name="targetHost">
|
|
|
|
/// A <see cref="string"/> that represents the name of the server that shares
|
|
|
|
/// A <see cref="string"/> that represents the name of the server that shares
|
|
|
|
/// a secure connection.
|
|
|
|
/// a secure connection.
|
|
|
|
/// </param>
|
|
|
|
/// </param>
|
|
|
|
public ClientSslAuthConfiguration (string targetHost)
|
|
|
|
public ClientSslConfiguration (string targetHost)
|
|
|
|
: this (targetHost, null, SslProtocols.Default, false)
|
|
|
|
: this (targetHost, null, SslProtocols.Default, false)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="ClientSslAuthConfiguration"/> class with
|
|
|
|
/// Initializes a new instance of the <see cref="ClientSslConfiguration"/> class with
|
|
|
|
/// the specified <paramref name="targetHost"/>, <paramref name="clientCertificates"/>,
|
|
|
|
/// the specified <paramref name="targetHost"/>, <paramref name="clientCertificates"/>,
|
|
|
|
/// <paramref name="enabledSslProtocols"/>, and <paramref name="checkCertificateRevocation"/>.
|
|
|
|
/// <paramref name="enabledSslProtocols"/>, and <paramref name="checkCertificateRevocation"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
@ -91,7 +91,7 @@ namespace WebSocketSharp.Net
|
|
|
|
/// <c>true</c> if the certificate revocation list is checked during authentication;
|
|
|
|
/// <c>true</c> if the certificate revocation list is checked during authentication;
|
|
|
|
/// otherwise, <c>false</c>.
|
|
|
|
/// otherwise, <c>false</c>.
|
|
|
|
/// </param>
|
|
|
|
/// </param>
|
|
|
|
public ClientSslAuthConfiguration (
|
|
|
|
public ClientSslConfiguration (
|
|
|
|
string targetHost,
|
|
|
|
string targetHost,
|
|
|
|
X509CertificateCollection clientCertificates,
|
|
|
|
X509CertificateCollection clientCertificates,
|
|
|
|
SslProtocols enabledSslProtocols,
|
|
|
|
SslProtocols enabledSslProtocols,
|