aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-08-09 17:09:37 +0000
committerJustin Clarke Casey2008-08-09 17:09:37 +0000
commitadfccd0ee02fd3276c6ff35cf3e590c66d46b202 (patch)
tree43af7083fc9ee84357c4e367bab57efb4d228554 /OpenSim/Framework
parent* Shielded against various forms of Malformed data crashes - if there is an e... (diff)
downloadopensim-SC-adfccd0ee02fd3276c6ff35cf3e590c66d46b202.zip
opensim-SC-adfccd0ee02fd3276c6ff35cf3e590c66d46b202.tar.gz
opensim-SC-adfccd0ee02fd3276c6ff35cf3e590c66d46b202.tar.bz2
opensim-SC-adfccd0ee02fd3276c6ff35cf3e590c66d46b202.tar.xz
* Add line to log notifying of inventory -> user grid server trust failure
* add code comments
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Servers/RestSessionService.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/RestSessionService.cs b/OpenSim/Framework/Servers/RestSessionService.cs
index 3c79844..1ed349f 100644
--- a/OpenSim/Framework/Servers/RestSessionService.cs
+++ b/OpenSim/Framework/Servers/RestSessionService.cs
@@ -150,7 +150,9 @@ namespace OpenSim.Framework.Servers
150 private RestDeserialiseMethod<TRequest, TResponse> m_method; 150 private RestDeserialiseMethod<TRequest, TResponse> m_method;
151 private CheckIdentityMethod m_smethod; 151 private CheckIdentityMethod m_smethod;
152 152
153 public RestDeserialiseSecureHandler(string httpMethod, string path, RestDeserialiseMethod<TRequest, TResponse> method, CheckIdentityMethod smethod) 153 public RestDeserialiseSecureHandler(
154 string httpMethod, string path,
155 RestDeserialiseMethod<TRequest, TResponse> method, CheckIdentityMethod smethod)
154 : base(httpMethod, path) 156 : base(httpMethod, path)
155 { 157 {
156 m_smethod = smethod; 158 m_smethod = smethod;
@@ -186,7 +188,18 @@ namespace OpenSim.Framework.Servers
186 public class RestDeserialiseTrustedHandler<TRequest, TResponse> : BaseRequestHandler, IStreamHandler 188 public class RestDeserialiseTrustedHandler<TRequest, TResponse> : BaseRequestHandler, IStreamHandler
187 where TRequest : new() 189 where TRequest : new()
188 { 190 {
191 /// <summary>
192 /// The operation to perform once trust has been established.
193 /// </summary>
194 /// <param name="httpMethod"></param>
195 /// <param name="path"></param>
196 /// <param name="method"></param>
197 /// <param name="tmethod"></param>
189 private RestDeserialiseMethod<TRequest, TResponse> m_method; 198 private RestDeserialiseMethod<TRequest, TResponse> m_method;
199
200 /// <summary>
201 /// The method used to check whether a request is trusted.
202 /// </summary>
190 private CheckTrustedSourceMethod m_tmethod; 203 private CheckTrustedSourceMethod m_tmethod;
191 204
192 public RestDeserialiseTrustedHandler(string httpMethod, string path, RestDeserialiseMethod<TRequest, TResponse> method, CheckTrustedSourceMethod tmethod) 205 public RestDeserialiseTrustedHandler(string httpMethod, string path, RestDeserialiseMethod<TRequest, TResponse> method, CheckTrustedSourceMethod tmethod)