aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
diff options
context:
space:
mode:
authorUbitUmarov2016-12-09 04:32:59 +0000
committerUbitUmarov2016-12-09 04:32:59 +0000
commit30dccd57cd0e9fcc676e77cfed4214d8a1e7f85c (patch)
tree4c08a24d8a10fc8bdbce498dc2877389ec3281bd /OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
parentsuport client certificate validation per listenner, with a supplied static ca... (diff)
downloadopensim-SC-30dccd57cd0e9fcc676e77cfed4214d8a1e7f85c.zip
opensim-SC-30dccd57cd0e9fcc676e77cfed4214d8a1e7f85c.tar.gz
opensim-SC-30dccd57cd0e9fcc676e77cfed4214d8a1e7f85c.tar.bz2
opensim-SC-30dccd57cd0e9fcc676e77cfed4214d8a1e7f85c.tar.xz
provide remote SSLcommonName to xmlRpcRequest methods, but in a away it can be detected/parsed. This is used by some external modules like DTLNSLMoneyServer. But this module does need to change on this ( and it cannot override default validation rules, it needs to do it on its httplistener with method provided in previus commits
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 0492b51..d7e5123 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -1231,6 +1231,17 @@ namespace OpenSim.Framework.Servers.HttpServer
1231 1231
1232 if (gridproxy) 1232 if (gridproxy)
1233 xmlRprcRequest.Params.Add("gridproxy"); // Param[4] 1233 xmlRprcRequest.Params.Add("gridproxy"); // Param[4]
1234
1235 // reserve this for
1236 // ... by Fumi.Iseki for DTLNSLMoneyServer
1237 // BUT make its presence possible to detect/parse
1238 string rcn = request.IHttpClientContext.SSLCommonName;
1239 if(!string.IsNullOrWhiteSpace(rcn))
1240 {
1241 rcn = "SSLCN:" + rcn;
1242 xmlRprcRequest.Params.Add(rcn); // Param[4] or Param[5]
1243 }
1244
1234 try 1245 try
1235 { 1246 {
1236 xmlRpcResponse = method(xmlRprcRequest, request.RemoteIPEndPoint); 1247 xmlRpcResponse = method(xmlRprcRequest, request.RemoteIPEndPoint);