From a748e1bd1606ff2f55bc01c6696855fd2a5e045a Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 11 May 2017 15:38:27 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Net/ClientSslConfiguration.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) 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 ,