[Modify] Add it
This commit is contained in:
parent
3793b4112e
commit
a748e1bd16
@ -34,6 +34,7 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Net.Security;
|
||||
using System.Security.Authentication;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
@ -79,6 +80,29 @@ namespace WebSocketSharp.Net
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copies the parameters from the specified <paramref name="configuration"/> to
|
||||
/// a new instance of the <see cref="ClientSslConfiguration"/> class.
|
||||
/// </summary>
|
||||
/// <param name="configuration">
|
||||
/// A <see cref="ClientSslConfiguration"/> from which to copy.
|
||||
/// </param>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// <paramref name="configuration"/> is <see langword="null"/>.
|
||||
/// </exception>
|
||||
public ClientSslConfiguration (ClientSslConfiguration configuration)
|
||||
{
|
||||
if (configuration == null)
|
||||
throw new ArgumentNullException ("configuration");
|
||||
|
||||
_checkCertRevocation = configuration._checkCertRevocation;
|
||||
_clientCertSelectionCallback = configuration._clientCertSelectionCallback;
|
||||
_clientCerts = configuration._clientCerts;
|
||||
_enabledSslProtocols = configuration._enabledSslProtocols;
|
||||
_serverCertValidationCallback = configuration._serverCertValidationCallback;
|
||||
_targetHost = configuration._targetHost;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ClientSslConfiguration"/> class
|
||||
/// with the specified <paramref name="targetHost"/>,
|
||||
|
Loading…
Reference in New Issue
Block a user