[Modify] Add it

This commit is contained in:
sta 2017-05-06 15:24:51 +09:00
parent 3ef3572f5e
commit 73e8d31d61
3 changed files with 18 additions and 2 deletions

View File

@ -352,7 +352,7 @@ namespace WebSocketSharp.Net
public ServerSslConfiguration SslConfiguration { public ServerSslConfiguration SslConfiguration {
get { get {
CheckDisposed (); CheckDisposed ();
return _sslConfig ?? (_sslConfig = new ServerSslConfiguration (null)); return _sslConfig ?? (_sslConfig = new ServerSslConfiguration ());
} }
set { set {

View File

@ -79,6 +79,22 @@ namespace WebSocketSharp.Net
{ {
} }
/// <summary>
/// Copies the parameters from the specified <paramref name="configuration"/> to
/// a new instance of the <see cref="ServerSslConfiguration"/> class.
/// </summary>
/// <param name="configuration">
/// A <see cref="ServerSslConfiguration"/> from which to copy.
/// </param>
public ServerSslConfiguration (ServerSslConfiguration configuration)
{
_checkCertRevocation = configuration._checkCertRevocation;
_clientCertRequired = configuration._clientCertRequired;
_clientCertValidationCallback = configuration._clientCertValidationCallback;
_enabledSslProtocols = configuration._enabledSslProtocols;
_serverCert = configuration._serverCert;
}
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ServerSslConfiguration"/> class /// Initializes a new instance of the <see cref="ServerSslConfiguration"/> class
/// with the specified <paramref name="serverCertificate"/>, /// with the specified <paramref name="serverCertificate"/>,

View File

@ -583,7 +583,7 @@ namespace WebSocketSharp.Server
public ServerSslConfiguration SslConfiguration { public ServerSslConfiguration SslConfiguration {
get { get {
if (_sslConfig == null) if (_sslConfig == null)
_sslConfig = new ServerSslConfiguration (null); _sslConfig = new ServerSslConfiguration ();
return _sslConfig; return _sslConfig;
} }