diff --git a/websocket-sharp/Net/ClientSslConfiguration.cs b/websocket-sharp/Net/ClientSslConfiguration.cs
index 523b8e54..714aab62 100644
--- a/websocket-sharp/Net/ClientSslConfiguration.cs
+++ b/websocket-sharp/Net/ClientSslConfiguration.cs
@@ -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
{
}
+ ///
+ /// Copies the parameters from the specified to
+ /// a new instance of the class.
+ ///
+ ///
+ /// A from which to copy.
+ ///
+ ///
+ /// is .
+ ///
+ 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;
+ }
+
///
/// Initializes a new instance of the class
/// with the specified ,