|
|
|
|
@ -76,8 +76,9 @@ namespace WebSocketSharp.Net
|
|
|
|
|
/// will share a secure connection.
|
|
|
|
|
/// </param>
|
|
|
|
|
public ClientSslConfiguration (string targetHost)
|
|
|
|
|
: this (targetHost, null, SslProtocols.Default, false)
|
|
|
|
|
{
|
|
|
|
|
_targetHost = targetHost;
|
|
|
|
|
_enabledSslProtocols = SslProtocols.Default;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
@ -103,41 +104,6 @@ namespace WebSocketSharp.Net
|
|
|
|
|
_targetHost = configuration._targetHost;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="ClientSslConfiguration"/> class
|
|
|
|
|
/// with the specified <paramref name="targetHost"/>,
|
|
|
|
|
/// <paramref name="clientCertificates"/>,
|
|
|
|
|
/// <paramref name="enabledSslProtocols"/>,
|
|
|
|
|
/// and <paramref name="checkCertificateRevocation"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="targetHost">
|
|
|
|
|
/// A <see cref="string"/> that represents the name of the server that
|
|
|
|
|
/// will share a secure connection.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="clientCertificates">
|
|
|
|
|
/// A <see cref="X509CertificateCollection"/> that contains client certificates.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="enabledSslProtocols">
|
|
|
|
|
/// The <see cref="SslProtocols"/> enum values that represent the protocols
|
|
|
|
|
/// used for authentication.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="checkCertificateRevocation">
|
|
|
|
|
/// <c>true</c> if the certificate revocation list is checked during
|
|
|
|
|
/// authentication; otherwise, <c>false</c>.
|
|
|
|
|
/// </param>
|
|
|
|
|
public ClientSslConfiguration (
|
|
|
|
|
string targetHost,
|
|
|
|
|
X509CertificateCollection clientCertificates,
|
|
|
|
|
SslProtocols enabledSslProtocols,
|
|
|
|
|
bool checkCertificateRevocation
|
|
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
_targetHost = targetHost;
|
|
|
|
|
_clientCerts = clientCertificates;
|
|
|
|
|
_enabledSslProtocols = enabledSslProtocols;
|
|
|
|
|
_checkCertRevocation = checkCertificateRevocation;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Public Properties
|
|
|
|
|
|