From 30dccd57cd0e9fcc676e77cfed4214d8a1e7f85c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 9 Dec 2016 04:32:59 +0000 Subject: [PATCH] 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 --- .../Framework/Servers/HttpServer/BaseHttpServer.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 0492b5180a..d7e5123bf6 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs @@ -1231,6 +1231,17 @@ namespace OpenSim.Framework.Servers.HttpServer if (gridproxy) xmlRprcRequest.Params.Add("gridproxy"); // Param[4] + + // reserve this for + // ... by Fumi.Iseki for DTLNSLMoneyServer + // BUT make its presence possible to detect/parse + string rcn = request.IHttpClientContext.SSLCommonName; + if(!string.IsNullOrWhiteSpace(rcn)) + { + rcn = "SSLCN:" + rcn; + xmlRprcRequest.Params.Add(rcn); // Param[4] or Param[5] + } + try { xmlRpcResponse = method(xmlRprcRequest, request.RemoteIPEndPoint);