[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 {
get {
CheckDisposed ();
return _sslConfig ?? (_sslConfig = new ServerSslConfiguration (null));
return _sslConfig ?? (_sslConfig = new ServerSslConfiguration ());
}
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>
/// Initializes a new instance of the <see cref="ServerSslConfiguration"/> class
/// with the specified <paramref name="serverCertificate"/>,

View File

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