From 8614e44afdb3fb0be2ec495c6a6be364762e2a32 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 7 May 2017 14:03:24 +0900 Subject: [PATCH] [Modify] Throw exception --- websocket-sharp/Net/ServerSslConfiguration.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/websocket-sharp/Net/ServerSslConfiguration.cs b/websocket-sharp/Net/ServerSslConfiguration.cs index e52d33df..f2738791 100644 --- a/websocket-sharp/Net/ServerSslConfiguration.cs +++ b/websocket-sharp/Net/ServerSslConfiguration.cs @@ -34,6 +34,7 @@ */ #endregion +using System; using System.Net.Security; using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; @@ -86,8 +87,14 @@ namespace WebSocketSharp.Net /// /// A from which to copy. /// + /// + /// is . + /// public ServerSslConfiguration (ServerSslConfiguration configuration) { + if (configuration == null) + throw new ArgumentNullException ("configuration"); + _checkCertRevocation = configuration._checkCertRevocation; _clientCertRequired = configuration._clientCertRequired; _clientCertValidationCallback = configuration._clientCertValidationCallback;