[Modify] Add it

This commit is contained in:
sta 2016-10-24 16:09:41 +09:00
parent 88dedeb566
commit 0eee658e76

View File

@ -686,6 +686,28 @@ namespace WebSocketSharp.Server
: null;
}
private bool checkSslConfiguration (
ServerSslConfiguration configuration, out string message
)
{
message = null;
if (!_secure)
return true;
if (configuration == null) {
message = "There is no configuration for the secure connection.";
return false;
}
if (configuration.ServerCertificate == null) {
message = "There is no server certificate for the secure connection.";
return false;
}
return true;
}
private string getRealm ()
{
var realm = _realm;