aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2019-02-04 21:44:40 +0000
committerUbitUmarov2019-02-04 21:44:40 +0000
commitb8121ad8a2a33a48d7cac0e29f6d9036032c5fc6 (patch)
tree7927e23d045644efbdf0105b4e57432a092c4fee
parentremove references to obsolete CertificatePolicy (diff)
downloadopensim-SC-b8121ad8a2a33a48d7cac0e29f6d9036032c5fc6.zip
opensim-SC-b8121ad8a2a33a48d7cac0e29f6d9036032c5fc6.tar.gz
opensim-SC-b8121ad8a2a33a48d7cac0e29f6d9036032c5fc6.tar.bz2
opensim-SC-b8121ad8a2a33a48d7cac0e29f6d9036032c5fc6.tar.xz
prevent freswitch from messing global cert validation, more work is need on rest requests ( also for other things)
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs11
1 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs
index 533bce2..be1bd4f 100644
--- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs
@@ -183,16 +183,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
183 m_log.ErrorFormat("[FreeSwitchVoice]: plugin initialization failed: {0} {1}", e.Message, e.StackTrace); 183 m_log.ErrorFormat("[FreeSwitchVoice]: plugin initialization failed: {0} {1}", e.Message, e.StackTrace);
184 return; 184 return;
185 } 185 }
186
187 // THIS IS WRONG need to remove later
188
189 try
190 {
191 ServicePointManager.ServerCertificateValidationCallback += CustomCertificateValidation;
192 }
193 catch (NotImplementedException)
194 {
195 }
196 } 186 }
197 187
198 public void PostInitialise() 188 public void PostInitialise()
@@ -529,6 +519,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
529 forwardreq.Method = method; 519 forwardreq.Method = method;
530 forwardreq.ContentType = contenttype; 520 forwardreq.ContentType = contenttype;
531 forwardreq.KeepAlive = false; 521 forwardreq.KeepAlive = false;
522 forwardreq.ServerCertificateValidationCallback = CustomCertificateValidation;
532 523
533 if (method == "POST") 524 if (method == "POST")
534 { 525 {