* Updated to the latest HttpServer which includes several SSL fixes for client and server certificates

* CapsBase (CapsClient) now accepts all server SSL certificates. The actual security logic will be implemented in the HTTP handler, but this is currently a TODO

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2865 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-06-09 08:13:36 +00:00
parent 79f0534e5c
commit 662c06f0db
2 changed files with 15 additions and 7 deletions

View File

@@ -86,7 +86,7 @@ namespace OpenMetaverse.Http
this.rootCA = rootCA;
serverOwned = true;
capsHandler = BuildCapsHandler(@"^/caps/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$");
server = HttpListener.Create(log4netLogWriter.Instance, address, port, sslCertificate, ClientCertCallback, SslProtocols.Default, requireClientCertificate);
server = HttpListener.Create(log4netLogWriter.Instance, address, port, sslCertificate, SslProtocols.Default, requireClientCertificate);
}
public CapsServer(HttpListener httpServer, string handlerPath)
@@ -262,12 +262,6 @@ namespace OpenMetaverse.Http
response.Send();
}
bool ClientCertCallback(Object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
{
// FIXME: Implement this
return true;
}
HttpRequestHandler BuildCapsHandler(string path)
{
// All responses have to be send with response.Send() manually to allow proper handling of event queue