[Modify] Add it
This commit is contained in:
parent
3ef3572f5e
commit
73e8d31d61
@ -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 {
|
||||||
|
@ -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"/>,
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user